From 6622c2a0b74dfe23d8be8d0203de20a48e24ae3f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 9 Jul 2023 19:23:01 +0200 Subject: Set fps limit (even when vsync is enabled) for retards who disable vsync system-wide --- include/QuickMedia.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 0f8837d..ea814e4 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -242,5 +242,8 @@ namespace QuickMedia { int video_max_height = 0; std::mutex login_inputs_mutex; const char *yt_dl_name = nullptr; + + mgl::Clock update_monitor_max_fps_timer; + int monitor_max_fps = 0; }; } -- cgit v1.2.3