Hi,
I am just starting with smartfox server (with unity). I have to send around 20 messages per client to/from server. We have a max of 4 clients. What protocol would be better? JSON or raw strings?
Thank you in advance.
Raw string or JSON format?
Raw format is more compact and it's probably best for fast messages, as in your case.
Take into consideration that probably 20 messages/second is the almost the most you can get out of the network as 20msg/sec == 1msg every 50ms.
In other words a player will need a network lag <= 50ms in order to fully enjoy the game, and 50ms is a very good average ping time. Not everyone has that. Good values range from 50 to 100ms, 100-150 is considered not-too-good and 200+ms is usually bad for realtime games, or at least the game is likely to show some "stuttering".
Take into consideration that probably 20 messages/second is the almost the most you can get out of the network as 20msg/sec == 1msg every 50ms.
In other words a player will need a network lag <= 50ms in order to fully enjoy the game, and 50ms is a very good average ping time. Not everyone has that. Good values range from 50 to 100ms, 100-150 is considered not-too-good and 200+ms is usually bad for realtime games, or at least the game is likely to show some "stuttering".
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: Google [Bot] and 101 guests