From cdc1aaaf0da4534a106e6e56f0fb8c943f44cdc0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 9 Aug 2019 23:13:58 +0200 Subject: Set video player ui vsync, to change cpu usage from 20% to 1% --- src/QuickMedia.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index a57c522..ba9abf7 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -388,6 +388,7 @@ namespace QuickMedia { XFlush(disp); video_player_ui_window = std::make_unique(ui_window); + video_player_ui_window->setVerticalSyncEnabled(true); }; // This variable is needed because calling play_video is not possible in onPlaybackEndedCallback -- cgit v1.2.3