diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-08-17 17:14:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-17 17:14:29 +0100 |
| commit | 0840103ae06e9d6ab4a8692ff18dc45e2e95e5c9 (patch) | |
| tree | 7ad40d8255cd25331074c7686ed601da2b618738 /src/helpers/Monitor.hpp | |
| parent | 251288ec5942b3544ad31de1299569284d80f0d7 (diff) | |
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.
Diffstat (limited to 'src/helpers/Monitor.hpp')
| -rw-r--r-- | src/helpers/Monitor.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<float> m_dpmsBlackOpacity; - bool m_pendingDpmsAnimation = false; + bool m_pendingDpmsAnimation = false; + int m_pendingDpmsAnimationCounter = 0; PHLANIMVAR<float> m_cursorZoom; // for initial zoom anim PHLANIMVAR<float> m_zoomAnimProgress; + CTimer m_newMonitorAnimTimer; + int m_zoomAnimFrameCounter = 0; struct { bool canTear = false; |
