So I found my answer in the XNA forum, it's kind of easy actually:
- Server starts a timer and sends a message to all clients to start their timer also
- When the clients receives this message they start their timers too and sends a message back telling the server they have started their timers
- When the server receives these messages it checks it's timer and calculates how long it took to get this responds. This time divided by two is the time it took for the first message to be sent, and also how much the clients timer needs to be adjusted.
- Server sends a new message to each client to adjust their timer by the time calculated above.
- Clients adjusts their timers
No comments:
Post a Comment