Menu

Example of a tight Game Loop?

Using GLFW
Anonymous
2011-04-21
2012-11-08
  • Anonymous

    Anonymous - 2011-04-21

    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

    elmindreda - 2011-04-22

    Have you tried using glfwSwapInterval?

     
  • Anonymous

    Anonymous - 2011-04-22

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