View Full Version : Framerate ?
How can I measure the performance of my PC, how can I measure the FPS in my opengl program ?
Calculate the time taken for a frame to reder, and then fps = 1.0 / time.
timeGetTime() usually works OK on Win32. It will return the time in milliseconds since Windows was last started.
05-02-2001, 02:58 AM
I think it's better to measure the time it takes to draw, for example, 50 frames and then do that calculation. So you'll have the fps updated about every seconds without a different number flashing on the screen 60 times a second.
I do it in this way.
Sure, thats another way to do it. In that case, fps = 50 / time. Or in general, fps = number_of_frames / time, just in case Tebo didn't knew it.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.