From 86c295bb3b4833126fe18be8947df38b51cec35b Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sun, 17 Oct 2021 18:44:39 +0100 Subject: Change: Ignore refresh_rate setting when vsync is enabled --- src/video/video_driver.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp index b87dc7052..458c67402 100644 --- a/src/video/video_driver.hpp +++ b/src/video/video_driver.hpp @@ -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); } -- cgit v1.2.3-70-g09d2