Controlling Framerate

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?

Use a timer and only refresh the screen when the timer fires.

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.