How do i display Frames Per Sec?
How can I display the number of Frames Per Sec, or put the FPS into a variable ?
November 03, 2000 06:14 AM
Time each frame, average this out over a few frames, and take the reciprocal.
Got any source code?
Also, how would i use the GLprint fun used in the nehe tuts to print the value of a variable?
Also, how would i use the GLprint fun used in the nehe tuts to print the value of a variable?
my site for sex and source code !!!!! (ok scrub the first bit)
http://members.xoom.com/myBollux
http://members.xoom.com/myBollux
http://glvelocity.gamedev.net has a class that does everything you need. Check it out in his Code repository section.
fs
http://www.CornflakeZone.com
//-- Modelling and animation in every dimension --//
fs
http://www.CornflakeZone.com
//-- Modelling and animation in every dimension --//
I would also look on this page. It has an excellent class for text display. Works just like a printf().
____________________________________________________
"Two wrongs do not make a right; it usually takes 3 or more."
____________________________________________________
"Two wrongs do not make a right; it usually takes 3 or more."
Some mistakes are too much fun to only make once.
Never anger a dragon, for you are crunchy and you go well with brie.
i wrote a small function/tutorial to do this which uses nehe's timer function from lesson 21
it displays the fps as a bar at the bottom of the screen (which i find easier to read than a constantly changing number)
alistair
Edited by - alistair b on November 3, 2000 5:47:55 PM
it displays the fps as a bar at the bottom of the screen (which i find easier to read than a constantly changing number)
alistair
Edited by - alistair b on November 3, 2000 5:47:55 PM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement