FPS Counter
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
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement