Only check FPS while gaming, so menus do not make maxFPS useless.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3362 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
55aa2dd525
commit
43ce2014cc
@ -225,7 +225,7 @@ void MainLoop::run()
|
|||||||
int fps = irr_driver->getDevice()->getVideoDriver()->getFPS();
|
int fps = irr_driver->getDevice()->getVideoDriver()->getFPS();
|
||||||
bool printFPS = false;
|
bool printFPS = false;
|
||||||
// First reports seem to be always 1, so not useful
|
// First reports seem to be always 1, so not useful
|
||||||
if (fps > 1) {
|
if ((race_manager->raceIsActive()) && (fps > 1)) {
|
||||||
// More than +-5 range is interesting to report (otherwise noise)
|
// More than +-5 range is interesting to report (otherwise noise)
|
||||||
if ((lastFPS+5 <= fps) || (lastFPS-5 >= fps)) {
|
if ((lastFPS+5 <= fps) || (lastFPS-5 >= fps)) {
|
||||||
lastFPS = fps;
|
lastFPS = fps;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user