Advertisement

Frames Per Second

Started by January 23, 2001 06:29 AM
1 comment, last by Lukerd 23 years, 10 months ago
Hi Does anybody know a quick, easy and accurate way to show the FPS in an OpenGL Window?
"To err is human, to really mess up requires a computer"
You''ll have to write your own text output ruitine most likely. I based mine off of Jeff''s (Nehe''s), and had it running in less than 2 days. Of course, I added a bunch of stuff to it too .

Once you do that, there are two basic ways to figure out framerate. One is to take the number of milliseconds that have passed during the current frame and divide 1000.0 by it.

The other is to calculate how many frames you do each second, and then display that number until another full second passes, then display that one, and so on.


http://www.gdarchive.net/druidgames/
Advertisement
I would use http://glvelocity.gamedev.net/files/framecountersource.zip to get fps.

Mvh
Søren Olesen

This topic is closed to new replies.

Advertisement