diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-03-24 19:23:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-24 19:23:16 +0000 |
| commit | a80f8f257f05480a3a91e9da14715cb160ed2e0a (patch) | |
| tree | 6b81c6bdb87b3f472a88224b67b0576d84e8ad99 /src/helpers/Monitor.hpp | |
| parent | b3a70b565e67ebf00bcf4ecbae54fc96e527828e (diff) | |
Feat: Introduce render_ahead_of_time (#1863)
Diffstat (limited to 'src/helpers/Monitor.hpp')
| -rw-r--r-- | src/helpers/Monitor.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp index 9ad6d917..0707d79f 100644 --- a/src/helpers/Monitor.hpp +++ b/src/helpers/Monitor.hpp @@ -6,6 +6,7 @@ #include <vector> #include <array> #include <memory> +#include "Timer.hpp" struct SMonitorRule; @@ -45,6 +46,10 @@ class CMonitor { bool pendingFrame = false; // if we schedule a frame during rendering, reschedule it after bool renderingActive = false; + wl_event_source* renderTimer = nullptr; // for RAT + bool RATScheduled = false; + CTimer lastPresentationTimer; + // mirroring CMonitor* pMirrorOf = nullptr; std::vector<CMonitor*> mirrors; |
