View Full Version : Framerate ?

05-01-2001, 11:34 PM
How can I measure the performance of my PC, how can I measure the FPS in my opengl program ?

05-02-2001, 02:54 AM
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, 03: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.

05-02-2001, 04:43 AM
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.