diff --git a/Source/RetroFE.cpp b/Source/RetroFE.cpp index 27ac8c1..92807df 100644 --- a/Source/RetroFE.cpp +++ b/Source/RetroFE.cpp @@ -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(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);