mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-08 15:10:14 +01:00
Removed debug FPS code.
This commit is contained in:
parent
b3ed451e4f
commit
450789b94c
@ -158,8 +158,6 @@ void RetroFE::Run()
|
||||
Item *nextPageItem = NULL;
|
||||
bool adminMode = false;
|
||||
bool selectActive = false;
|
||||
float frameCount = 0;
|
||||
float fpsStartTime = 0;
|
||||
RETROFE_STATE state = RETROFE_IDLE;
|
||||
|
||||
Config.GetProperty("attractModeTime", attractModeTime);
|
||||
@ -266,25 +264,6 @@ void RetroFE::Run()
|
||||
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);
|
||||
|
||||
page->Update(deltaTime);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user