Search found 12 matches

by JohnHacker
10 Feb 2020, 08:43
Forum: SFS2X Questions
Topic: Bottleneck on sending UDP packets
Replies: 9
Views: 11131

Re: Bottleneck on sending UDP packets

Hi! I sent an e-mail :D
by JohnHacker
30 Jan 2020, 11:22
Forum: SFS2X Questions
Topic: Bottleneck on sending UDP packets
Replies: 9
Views: 11131

Re: Bottleneck on sending UDP packets

Thanks!
by JohnHacker
29 Jan 2020, 15:05
Forum: SFS2X Questions
Topic: Bottleneck on sending UDP packets
Replies: 9
Views: 11131

Re: Bottleneck on sending UDP packets

It's over 30k users, each receiving 12-18 UDP packets per second. All the UDP packets are being sent through the same socket and there's a semaphore on the Java implementation of the UDP socket (DatagramChannelImpl), so it can't send more than 60-80 kpps, no matter the number of cores you use.
by JohnHacker
29 Jan 2020, 14:30
Forum: SFS2X Questions
Topic: Bottleneck on sending UDP packets
Replies: 9
Views: 11131

Re: Bottleneck on sending UDP packets

We use the last version, 2.14. All the other questions have nothing to do with the problem.
by JohnHacker
29 Jan 2020, 06:36
Forum: SFS2X Questions
Topic: Bottleneck on sending UDP packets
Replies: 9
Views: 11131

Bottleneck on sending UDP packets

Hello, After lot of research we just found we were bottlenecked because we were using UDP packets to thousands of users and SFS is using just one DatagramChannel to send all of them, so even using lots of threads for the SocketWriter, they are all blocked waiting for the synchronized inside Datagram...
by JohnHacker
18 Dec 2019, 17:59
Forum: Server Side Extension Development
Topic: user.getJoinedRooms() and room.getUserList() performance
Replies: 3
Views: 8553

Re: user.getJoinedRooms() and room.getUserList() performance

Yes, this was for SFS 2X, I'm sorry for posting it on the wrong forum. I am expert on optimization and this is not near close to insignificant. You can't know the cases this could be used for. That's why I wrote about the iterator, which would allow to iterate without the memory copy. I'll need to m...
by JohnHacker
18 Dec 2019, 15:23
Forum: Server Side Extension Development
Topic: user.getJoinedRooms() and room.getUserList() performance
Replies: 3
Views: 8553

user.getJoinedRooms() and room.getUserList() performance

Hello, I have no real way to test it, but the tests I could do throw that these methods make a copy of the lists, so there's a lot of garbage created when calling them. It would be so great to have a way to access these methods without making in-memory copies, or at least an iterator that doesn't ma...
by JohnHacker
04 Dec 2018, 13:01
Forum: SFS2X Questions
Topic: Wrong update instructions
Replies: 1
Views: 3148

Wrong update instructions

Hi! The patch update instructions say this: Unzip the patch and copy the decompressed folder inside your SmartFoxServer_2X/ installation folder. But it didn't work until I executed it from the SmartFoxServer_2X/SFS2X/ folder. Could you change it on the instructions so other people don't pass through...
by JohnHacker
22 Nov 2018, 11:10
Forum: SFS2X Questions
Topic: UDP on Unity
Replies: 4
Views: 6231

Re: UDP on Unity

Hi! It works now. Thanks for the help!
by JohnHacker
22 Nov 2018, 09:06
Forum: SFS2X Questions
Topic: UDP on Unity
Replies: 4
Views: 6231

Re: UDP on Unity

Hi! The server is 2.13.1 and the API I had the 1.7.4 or 1.7.5. I've just tested with the last one, 1.7.10 and sfs.UdpAvailable keeps returning false. The WebSocket library is not even compiling so it shouldn't return false due to that. Unity version is 2018.2.0f2.

Thanks!
by JohnHacker
20 Nov 2018, 09:10
Forum: SFS2X Questions
Topic: UDP on Unity
Replies: 4
Views: 6231

UDP on Unity

Hi! sfs.UdpAvailable is returning false on Unity. Also if I still force sfs.InitUDP() it isn't connecting. I'm doing it on the OnLogic callback according http://docs2x.smartfoxserver.com/AdvancedTopics/using-udp-protocol but it still doesn't work. I couldn't find any information on similar problems ...
by JohnHacker
12 Jul 2018, 08:59
Forum: SFS2X Questions
Topic: Joining more than one MMORoom
Replies: 1
Views: 3058

Joining more than one MMORoom

Hi! I was trying to make the game I'm working on with the following design: - The world is divided in different regions, each of one have a MMORoom. - A player can be in 1, 2 or 3 MMORooms at the sime time. When a player is going to cross from one room to another, there's a time he is in the two roo...

Go to advanced search