Example of a tight Game Loop?

anonymous wrote on Thursday, April 21, 2011:

I’m having problems with my game loop. Basically I want an upper bounds on
number of updates/renders done. Say 60/second. For some reason it keeps
bouncing around by a fairly large amount (everything is basically empty
though). This is Win XP & Win 7 on Intel Core2 duo.

Anyone have a tight loop that keeps a constant rate?

elmindreda wrote on Friday, April 22, 2011:

Have you tried using glfwSwapInterval?

anonymous wrote on Friday, April 22, 2011:

Thanks, that is working. For some reason I had it messed up earlier.