Change: Ignore refresh_rate setting when vsync is enabled

This commit is contained in:
Charles Pigott 2021-10-17 18:44:39 +01:00
parent e09f251fc6
commit 86c295bb3b
1 changed files with 2 additions and 0 deletions

View File

@ -316,6 +316,8 @@ protected:
std::chrono::steady_clock::duration GetDrawInterval()
{
/* If vsync, draw interval is decided by the display driver */
if (_video_vsync && _video_hw_accel) return std::chrono::microseconds(0);
return std::chrono::microseconds(1000000 / _settings_client.gui.refresh_rate);
}