View Full Version : Controlling Framerate

08-08-2012, 10:24 PM
Hi everybody. I just finished programming an OpenGL screensaver for Windows and I like the speed it runs at on my computer. But my computer is six years old. I'm concerned it may run a little too fast on newer computers. What's the best way to control the framerate?

08-09-2012, 04:43 AM
Use a timer and only refresh the screen when the timer fires.

08-09-2012, 08:16 AM
er... the screen should be refreshed every cycle. It's the animation/movement computations which should be increamented according to the time delta since the last animation.