From c5550d78302e9464e1118783a112b6d02ab84d79 Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 16 May 2026 09:25:26 +0300 Subject: [PATCH] fix(docs): add fullRedrawNeeded to frame skip example in RENDER-PIPELINE.md Match actual code at desktop/desktop.go:191-194. --- docs/RENDER-PIPELINE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/RENDER-PIPELINE.md b/docs/RENDER-PIPELINE.md index 7d8397b..853f952 100644 --- a/docs/RENDER-PIPELINE.md +++ b/docs/RENDER-PIPELINE.md @@ -24,7 +24,8 @@ User interaction (click, hover, signal change) Before doing any work, the render loop checks: ```go -if !w.HasDirtyBoundaries() && !w.NeedsRedraw() && !w.NeedsAnimationFrame() { +needsAnyWork := rl.fullRedrawNeeded || win.NeedsRedraw() || win.HasDirtyBoundaries() || win.NeedsAnimationFrame() +if !needsAnyWork { return // nothing changed — 0% GPU } ```