mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-28 17:09:33 +02:00
Removed debug FPS code.
This commit is contained in:
@@ -158,8 +158,6 @@ void RetroFE::Run()
|
|||||||
Item *nextPageItem = NULL;
|
Item *nextPageItem = NULL;
|
||||||
bool adminMode = false;
|
bool adminMode = false;
|
||||||
bool selectActive = false;
|
bool selectActive = false;
|
||||||
float frameCount = 0;
|
|
||||||
float fpsStartTime = 0;
|
|
||||||
RETROFE_STATE state = RETROFE_IDLE;
|
RETROFE_STATE state = RETROFE_IDLE;
|
||||||
|
|
||||||
Config.GetProperty("attractModeTime", attractModeTime);
|
Config.GetProperty("attractModeTime", attractModeTime);
|
||||||
@@ -266,25 +264,6 @@ void RetroFE::Run()
|
|||||||
SDL_Delay(static_cast<unsigned int>(sleepTime));
|
SDL_Delay(static_cast<unsigned int>(sleepTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
++frameCount;
|
|
||||||
|
|
||||||
if(CurrentTime - fpsStartTime > 1.0)
|
|
||||||
{
|
|
||||||
// don't print the first framerate, it's likely inaccurate
|
|
||||||
bool logFps = false;
|
|
||||||
Config.GetProperty("debug.logfps", logFps);
|
|
||||||
|
|
||||||
if(fpsStartTime != 0 && logFps)
|
|
||||||
{
|
|
||||||
std::stringstream fpsstream;
|
|
||||||
fpsstream << frameCount/(CurrentTime - fpsStartTime) << " FPS";
|
|
||||||
Logger::Write(Logger::ZONE_DEBUG, "RetroFE", fpsstream.str());
|
|
||||||
}
|
|
||||||
|
|
||||||
fpsStartTime = CurrentTime;
|
|
||||||
frameCount = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
Attract.Update(deltaTime, *page);
|
Attract.Update(deltaTime, *page);
|
||||||
|
|
||||||
page->Update(deltaTime);
|
page->Update(deltaTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user