View Full Version : What is FPS ?

07-11-2001, 04:35 AM
What is FPS ?
How can I estimate the speed of my OpenGL

07-11-2001, 04:49 AM
BWAHAHAHAHAHAHAHAHA, sorry, no offense, but I never imagined anybody would ask such a question. Frames Per Second. Surely you know what one frame is, right?

07-11-2001, 04:51 AM
Frames per second. To get that number, simply count how many frames have been drawn in a fixed amount of time, or do the opposite and see measure how much time has passed after drawing a fixed number of frames. You divide the number of frames by the amount of time required to draw those frames and thats your FPS, assuming you are using seconds as your time unit. However, expect that number to jump around. To stabilize the FPS reading, you can use real time averaging.

[This message has been edited by DFrey (edited 07-11-2001).]

07-11-2001, 05:04 AM
Mind you, FPS also stands for First Person Shooter...


Kilam Malik
07-11-2001, 08:19 AM
Another one in ISDN-communication field:

Fast Packet Switching


Pete Bassett
07-13-2001, 02:55 AM
No no no.

Furry Pet Stroking.

07-14-2001, 07:03 PM
Does anyone have code for displaying the FPS in an OpenGL program, or atleast computing it?

07-14-2001, 09:04 PM
oh come on! you can code your own fps counter... it's not hard at all!!

here's the pseudo code

start=current time
draw frame
end=current time
timeToRender=end-start //difftime()

07-15-2001, 09:10 AM
Thank you, but I am still brushing up on my Win32 skills and I am not too familiar with WM_TIMING. What function would I use to get the current time? Could you possibly post an actual code snippet for an FPS renderer?

07-15-2001, 09:22 AM
It took me about 5 seconds using the "Search" feature of this board to come up with:

Why don't people believe in using Search engines anymore?