syncobj: restore SHM buffer reset (#9675)

reset shm buffers early to mitigate stuttering animations, also reuse
the monitors eglSync and store the eglsync per monitor. this however
reintroduces flickering in dbeaver nonsyncobj application.
This commit is contained in:
Tom Englund
2025-03-20 11:39:55 +01:00
committed by GitHub
parent 155eba57d8
commit f6ca4bac51
3 changed files with 11 additions and 13 deletions

View File

@@ -57,6 +57,7 @@ struct SMonitorRule {
class CMonitor;
class CSyncTimeline;
class CEGLSync;
class CMonitorState {
public:
@@ -141,6 +142,7 @@ class CMonitor {
SP<CSyncTimeline> inTimeline;
SP<CSyncTimeline> outTimeline;
Hyprutils::OS::CFileDescriptor inFence;
SP<CEGLSync> eglSync;
uint64_t commitSeq = 0;
PHLMONITORREF self;