diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-14 17:08:42 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-14 17:08:42 +0000 |
| commit | 127e80692f78b0d91450194fcb4ce0009c2a98a4 (patch) | |
| tree | d5e730053d9daeb7639f4dfe019b730e05ffdac5 /src/events/Monitors.cpp | |
| parent | 98c95aa34d31bcbb792227d00dc37bfd627a564a (diff) | |
move no_vfr to vfr and add vrr
Diffstat (limited to 'src/events/Monitors.cpp')
| -rw-r--r-- | src/events/Monitors.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp index ee7734df..11a83073 100644 --- a/src/events/Monitors.cpp +++ b/src/events/Monitors.cpp @@ -120,6 +120,7 @@ void Events::listener_monitorFrame(void* owner, void* data) { static auto* const PDAMAGETRACKINGMODE = &g_pConfigManager->getConfigValuePtr("debug:damage_tracking")->intValue; static auto* const PDAMAGEBLINK = &g_pConfigManager->getConfigValuePtr("debug:damage_blink")->intValue; static auto* const PNODIRECTSCANOUT = &g_pConfigManager->getConfigValuePtr("misc:no_direct_scanout")->intValue; + static auto* const PVFR = &g_pConfigManager->getConfigValuePtr("misc:vfr")->intValue; static int damageBlinkCleanup = 0; // because double-buffered @@ -148,8 +149,7 @@ void Events::listener_monitorFrame(void* owner, void* data) { // checks // if (PMONITOR->ID == g_pHyprRenderer->m_pMostHzMonitor->ID || - g_pHyprRenderer->m_pMostHzMonitor->output->adaptive_sync_status == - WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED) { // unfortunately with VFR we don't have the guarantee mostHz is going to be updated all the time, so we have to ignore that + *PVFR == 1) { // unfortunately with VFR we don't have the guarantee mostHz is going to be updated all the time, so we have to ignore that g_pCompositor->sanityCheckWorkspaces(); g_pAnimationManager->tick(); @@ -204,7 +204,7 @@ void Events::listener_monitorFrame(void* owner, void* data) { pixman_region32_fini(&damage); wlr_output_rollback(PMONITOR->output); - if (*PDAMAGEBLINK || PMONITOR->output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_DISABLED) + if (*PDAMAGEBLINK || *PVFR == 0) g_pCompositor->scheduleFrameForMonitor(PMONITOR); return; @@ -311,7 +311,7 @@ void Events::listener_monitorFrame(void* owner, void* data) { if (!wlr_output_commit(PMONITOR->output)) return; - if (*PDAMAGEBLINK || PMONITOR->output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_DISABLED) + if (*PDAMAGEBLINK || *PVFR == 0) g_pCompositor->scheduleFrameForMonitor(PMONITOR); if (*PDEBUGOVERLAY == 1) { |
