diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-03-18 08:48:53 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-03-18 08:48:53 +0100 |
commit | 5f022066684f8ed6c4b827fabf8554d8730add2f (patch) | |
tree | 92da081dc0e81c2593571d62e8ee4b75369287c2 /src | |
parent | 69db4f3116fcbabae354d6c40ebced80de7a4884 (diff) |
Re-enable vsync
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 3e1e61a..e515c7a 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -411,7 +411,7 @@ namespace QuickMedia { XSetErrorHandler(x_error_handler); XSetIOErrorHandler(x_io_error_handler); - window.setVerticalSyncEnabled(false); + window.setVerticalSyncEnabled(true); monitor_hz = get_monitor_max_hz(disp); window.setFramerateLimit(FPS_IDLE); idle = true; @@ -1754,6 +1754,9 @@ namespace QuickMedia { } } + window.setFramerateLimit(FPS_IDLE); + idle = true; + time_watched_timer.restart(); std::unique_ptr<VideoPlayer> video_player; |