diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 8ac6af652..0c4c43b44 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -6468,19 +6468,20 @@ bool FurnaceGUI::loop() { drawTimeEnd=SDL_GetPerformanceCounter(); swapTimeBegin=SDL_GetPerformanceCounter(); if (!settings.vsync || !rend->canVSync()) { - unsigned int presentDelay=SDL_GetPerformanceFrequency()/settings.frameRateLimit; - if ((nextPresentTime-swapTimeBegin)0) { + unsigned int presentDelay=SDL_GetPerformanceFrequency()/settings.frameRateLimit; + if ((nextPresentTime-swapTimeBegin)present();