Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Posted 27 June 2014 - 05:08 PM
Posted 27 June 2014 - 10:00 PM
My player would send a movement datagram, saying that he moved to the left.
The server may/may not receive this. If it does receive this, the server will then send back an acknowledgement. If the client does not receive this after a certain amount of time (I set an alarm which is equal to double the ping), then we assume the datagram was dropped and we send the exact same data (move left) to the server and the process repeats until we have an acknowledgement.
2) Is this system really necessary? In other words, do I really need to worry about datagrams being dropped?
Game Developer, C++ Geek, Dragon Slayer - http://seanmiddleditch.com
C++ SG14 "Games & Low Latency" - Co-chair - public forums
Wargaming Seattle - Lead Server Engineer - We're hiring!
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.