Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Frames Per Second

Started by Lukerd Jan 23, 2001 at 6:29 AM 1 replies 250+ views
Original Post
Lukerd
Lukerd
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"
Null and Void
Null and Void
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/
soreno
soreno
I would use http://glvelocity.gamedev.net/files/framecountersource.zip to get fps.

Mvh
Sรธren Olesen

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.