From 8f948827a69499c0b112043debad35f82a312b6b Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Tue, 8 Jul 2025 12:41:10 +0200 Subject: Renderer: Implement new render scheduling (#10936) Implements a new render scheduling method, where we triple buffer when necessary. Enabled by default, improves FPS on underpowered devices. --------- Co-authored-by: Mihai Fufezan --- src/Compositor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 64583b1c..3c0a4ec3 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -62,6 +62,7 @@ #include "hyprerror/HyprError.hpp" #include "debug/HyprNotificationOverlay.hpp" #include "debug/HyprDebugOverlay.hpp" +#include "helpers/MonitorFrameScheduler.hpp" #include #include @@ -3097,7 +3098,7 @@ void CCompositor::onNewMonitor(SP output) { } g_pHyprRenderer->damageMonitor(PNEWMONITOR); - PNEWMONITOR->onMonitorFrame(); + PNEWMONITOR->m_frameScheduler->onFrame(); if (PROTO::colorManagement && shouldChangePreferredImageDescription()) { Debug::log(ERR, "FIXME: color management protocol is enabled, need a preferred image description id"); -- cgit v1.2.3