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.?
¿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