EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 419 forks source link

How to control ping amount? #96

Closed trex22091995 closed 9 years ago

trex22091995 commented 9 years ago

Hey there! I have a problem with KryoNet: my server sends around 50 pings per milliseconds to the client. This leads to a serious lag in game.

So here is my question: How do I can control the amount of pings, the server sends to the clients?

trex22091995 commented 9 years ago

Nevermind: i used updateReturnTripTime() i my update methode....