Frame Rate
Hi there,
How do I go about calculating the frame rate of my code? Obviously it''s the number of frames updated per second, but where-abouts (and how) in my game loops is this figure calculated.
Also, can anyone point me at some information about locking the frame-rate down to a fixed level.
Many thanks,
Eight
You can calculate your framerate like this, in pseudo-code:
NEVER lock your frame rate! Just have it so that everything moves/happens at a rate perportional to the time that has passed. If you lock your framerate, to give crappy looking performance to good computers, and you cause even bigger problems for the people who can''t keep up with that locked frame rate.
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
|
NEVER lock your frame rate! Just have it so that everything moves/happens at a rate perportional to the time that has passed. If you lock your framerate, to give crappy looking performance to good computers, and you cause even bigger problems for the people who can''t keep up with that locked frame rate.
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement