From e40857fc8ac93961769f6ac3e5776ab9b5b5ad32 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 4 Apr 2026 15:08:38 +0100 Subject: render/pass: optimize simplification and blur calculations --- src/render/pass/PassElement.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render/pass/PassElement.hpp') diff --git a/src/render/pass/PassElement.hpp b/src/render/pass/PassElement.hpp index 9b939f11..a3715b2f 100644 --- a/src/render/pass/PassElement.hpp +++ b/src/render/pass/PassElement.hpp @@ -34,4 +34,8 @@ class IPassElement { virtual std::optional boundingBox(); // in monitor-local logical coordinates virtual CRegion opaqueRegion(); // in monitor-local logical coordinates virtual bool disableSimplification(); + + // cached results, computed once per frame in CRenderPass::render() + bool needsLiveBlurCached = false; + bool needsPrecomputeBlurCached = false; }; -- cgit v1.2.3