Sign in to follow this  
Angus Hollands

How to synchronise game time with varying frame rates.

Recommended Posts

Angus Hollands    869
Hello everyone!
So, I'm working on multiplayer (just another day!) and I've gotten a system which I believe works quite well. However, I understand that when I implement this into a real game, I can't expect everyone to play at 60 frames per second.
Thus, I am a little stuck with how to proceed:
I can no longer get away with using game ticks as a base measure of elapsed time, because if the tick rate changes, so does the duration of time that a "tick" represents. Therefore i cannot treat a server tick as a client tick.
However, if I were to use purely time based approaches, it would be unlikely that I would be able to compare events processed on ever so slightly differing timings (i can compare gamestates at tick X, but not at time X because time X is very unlikely to be indentical, thus i'd have to interpolate or something).
How do commercial games circumvent such issues?

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