Constant Program Speed in C++ and OpenGL

Does anyone know how to get a constant speed for an OpenGL program in C++, something that is constant that can be used for physics or game updates.
In other words, in an average GLUT or general OpenGL program that I make, rotation speed and movement increase as the resolution drops. Is there a way to make this speed constant regardless of the framerate or resolution?

What about locking the framerate to 60,50,75 etc.?

Thanks in Advance.
Last edited on
¿Did you tried glutTimerFunc ?
Keep in mind that it will take at least that time, so you better capture the time elapsed and use that to make your updates
I don't always use glut though, at the moment I'm working on an OpenGL program without it.
What would I do then?
Would clock() work?
Last edited on
Topic archived. No new replies allowed.