SFML community forums
Help => Network => Topic started by: Daffern on March 02, 2014, 02:55:34 pm
-
Hi everyone. Im currently trying to make a multiplayer action game, and i figured it would be a good thing to measure latency somehow in order to place bulllets for example. Is there a way to measure latency in sfml?
-
No, but its relatively simple. Send a ping request from the client to the server and then time how long it takes for the server to respond with a pong. Of course you need to code on the server side to respond to ping commands with a pong response. ;)
-
This is probably what i will do, Thanks! :)