Default drawfrequency to 0, because of frame drop issues

Very apparent when using LIGH, which only stays on screen for one frame. Sometimes LIGH rendering is skipped entirely.
This commit is contained in:
jacob1
2021-07-11 18:04:51 -04:00
parent 05f722b397
commit 54a2abce3b

View File

@@ -201,12 +201,6 @@ void SDLOpen()
desktopWidth = rect.w;
desktopHeight = rect.h;
}
SDL_DisplayMode displayMode;
if (!SDL_GetCurrentDisplayMode(displayIndex, &displayMode) && displayMode.refresh_rate >= 60)
{
ui::Engine::Ref().SetDrawingFrequencyLimit(displayMode.refresh_rate);
}
}
#ifdef WIN