summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-07-08 12:41:10 +0200
committerGitHub <noreply@github.com>2025-07-08 12:41:10 +0200
commit8f948827a69499c0b112043debad35f82a312b6b (patch)
tree6d2c678a61db60e64c8cd1160267e2803f89066b /src/Compositor.cpp
parent9856563f8966856871a95f70757362f694ff22a6 (diff)
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 <mihai@fufexan.net>
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 2 insertions, 1 deletions
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 <hyprutils/string/String.hpp>
#include <aquamarine/input/Input.hpp>
@@ -3097,7 +3098,7 @@ void CCompositor::onNewMonitor(SP<Aquamarine::IOutput> 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");