Sign in to follow this  

Synchronizing Server and Clients

Recommended Posts

I'm learning some basic networking with plans to write a game in which multiple clients connect to a server. I'm using UDP. I've got a couple questions.

1. How can I effectively measure the latency between the server and a newly connected client so that I can synchronize the client's timer with the server's time?

2. Once the client's timer is synched and it starts incrementing (using some high resolution timing library), does it need to be resynched with the server's time once in a while?

3. If a client does something malicious to unsync his timer, what sort of side effects could this have? (I'm not sure if this can be answered since it may be different depending on the type of game)

Thanks for reading.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this