View Full Version : Controlling Framerate
08-08-2012, 09: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, 03:43 AM
Use a timer and only refresh the screen when the timer fires.
08-09-2012, 07: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.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.