Advertisement

clock-synchronisation code example

Started by April 13, 2004 04:32 AM
0 comments, last by michaweyel 20 years, 10 months ago
Hi. I''m want to sync all client clocks to the one of the server they connect to (for motion prediction). I know from some articles how this is supposed to be done in theory but have problems implementing it (especially on how to check if the clocks are out of sync). Does anybody know where i can find a (simple) code example for this ? Thanks, Michael
Read this article on something called ''targeting'', a variation on dead-reckoning. I don''t think you need to exactly sync the clocks, but you still can. Keep a latency count, measure that every so often, and adjust timers that way, and project the target using that latency value. Read the article

This topic is closed to new replies.

Advertisement