Feat: Introduce render_ahead_of_time (#1863)

This commit is contained in:
Vaxry 2023-03-24 19:23:16 +00:00 committed by GitHub
parent b3a70b565e
commit a80f8f257f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 312 additions and 230 deletions

View file

@ -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;