Sign in to follow this  

What is a basic example of a seperated update/render game loop?

Recommended Posts

I've trying to replicate XNA's game timing system but I'm having trouble and my brain doesn't want to cooperate. Here is a detailed explained of the game loop: Here is the basic premise of the XNA game loop: * Call Update as many times as needed to catch up to the current time * Call Draw once * Wait until it is time for the next Update This uses a user-defined fixed timestep (eg. 20 ms). There is also a variable that gets set if the update can't keep up with the timestep amount (the variable is called IsRunningSlow, I think). Does anybody have an example of this type of system?

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