FPS Counter

Started by
1 comment, last by Running_Wolf 23 years, 3 months ago
I am trying to add a fps counter to my program so I can see how well my computer performs. What are the headers I need to include for time? And how do the functions work? Any other help would also be appreciated.
L.I.G. == Life Is Good
Advertisement
Check out
http://glvelocity.gamedev.net/files/framecountersource.zip

Somebody has done the work for you.

Use FrameFinished() as your last piece of code in your main
render loop.

GetFrameCount() returns the fps, and you could display that on the screen (using glPrint or whatever you use).

Mvh
Søren Olesen
hey runningwolf. what do ya know, i got a class for that one too Modified from NeHe''s timer code

This topic is closed to new replies.

Advertisement