mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-18 14:11:16 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user