From 0840103ae06e9d6ab4a8692ff18dc45e2e95e5c9 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 17 Aug 2025 17:14:29 +0100 Subject: renderer: improve modeset timings (#11461) some CRTCs will just happily eat frames and we can't do much. Some will eat one. Adds a 5-frame buffer to DPMS and Added animations. Better than nothing. --- src/helpers/Monitor.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/helpers/Monitor.hpp') diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp index 1fa3d67d..14a72a9c 100644 --- a/src/helpers/Monitor.hpp +++ b/src/helpers/Monitor.hpp @@ -183,12 +183,15 @@ class CMonitor { // for dpms off anim PHLANIMVAR m_dpmsBlackOpacity; - bool m_pendingDpmsAnimation = false; + bool m_pendingDpmsAnimation = false; + int m_pendingDpmsAnimationCounter = 0; PHLANIMVAR m_cursorZoom; // for initial zoom anim PHLANIMVAR m_zoomAnimProgress; + CTimer m_newMonitorAnimTimer; + int m_zoomAnimFrameCounter = 0; struct { bool canTear = false; -- cgit v1.2.3