Skip to content

Conversation

@nabijaczleweli
Copy link
Member

Closes #63

@TheCatPlusPlus
Copy link
Member

The problem with this is that the framerate is not guaranteed to be constant, hence why requestAnimationFrame callback gives you a timestamp and why the stub had a delta calculation which was supposed to be used for this. The server needs something like that, too. Multiplying real time values by a constant is only really valid when time step is fixed (but you still need real time deltas to know how many times to update physics in a frame), otherwise they should be multiplied by the real time delta.

@nabijaczleweli
Copy link
Member Author

nabijaczleweli commented Apr 25, 2016

I guess timestamps in Game.frame are respected now?
If that's not it I'm not quite sure what you're on about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants