RenderingManager: FPS software limiter even with VSYNC

V-sync on multiple windows is not always performing well. So limiting to 61 FPS works with both VSYNC at 60FPS or without VSYNC. This means the settings for VSYNC is useless (removed from Settings panel).
This commit is contained in:
Bruno Herbelin
2022-05-18 23:46:27 +02:00
parent cc69baf0dd
commit cb0abd51db
2 changed files with 21 additions and 21 deletions

View File

@@ -7281,9 +7281,9 @@ void Navigator::RenderMainPannelSettings()
static bool multi = (Settings::application.render.multisampling > 0);
static bool gpu = Settings::application.render.gpu_decoding;
bool change = false;
change |= ImGuiToolkit::ButtonSwitch( "Vertical synchronization", &vsync);
change |= ImGuiToolkit::ButtonSwitch( "Blit framebuffer", &blit);
#ifndef NDEBUG
change |= ImGuiToolkit::ButtonSwitch( "Vertical synchronization", &vsync);
change |= ImGuiToolkit::ButtonSwitch( "Antialiasing framebuffer", &multi);
#endif
// hardware support deserves more explanation