Reputation: 303
I've made a gameserver using the TCP protocol. I'm using the KryoNet framework if that have anything to say.
It's broadcasting players positions and names once every half second right now, however i'm not sure how low i could put this while still being reasonable.
How often would it be recommended to have a gameserver broadcasting?
Upvotes: 1
Views: 131
Reputation: 23550
This depends totally on the kind of game you are making. For many games a periodical broadcast is stictly inferior to an on-change or query approach. But if you decide for the periodical broadcast you can determine the correct time very easily: Ask yourself how precise the player-positions are needed on the client (as opposed to how much the client can interpolate) and divide the location-difference by the maximum speed a player's position can change at.
Upvotes: 2