Frames Per Second
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/
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/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement