rendering: reuse unchanged retained frames - #68
Open
tritao wants to merge 2 commits into
Open
Conversation
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
2 times, most recently
from
August 22, 2026 15:57
6cc3ad8 to
f8c4874
Compare
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
2 times, most recently
from
August 22, 2026 18:57
657eae6 to
e8268c1
Compare
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
2 times, most recently
from
August 23, 2026 01:44
448a442 to
d3f509d
Compare
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
2 times, most recently
from
August 23, 2026 03:19
144d18f to
5b537db
Compare
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
from
August 23, 2026 09:33
5b537db to
3c03f3a
Compare
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
2 times, most recently
from
August 23, 2026 11:13
70bee8e to
b058988
Compare
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
2 times, most recently
from
August 23, 2026 13:14
1ee4895 to
ec27e4f
Compare
tritao
force-pushed
the
stack/render-performance-instrumentation
branch
from
August 23, 2026 21:21
ec27e4f to
44c1e48
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #67.
Purpose
The first retained-renderer path still traversed the scene graph, rebuilt the
draw list and render plan, and revalidated backend resources on every frame,
even when nothing relevant had changed. That made a steady viewport pay most
of the same CPU cost as a newly constructed frame.
This PR gives
SoRenderManageran unchanged-frame reuse path. When the scene,camera, viewport, and other retained inputs are still valid, the manager can
execute the existing draw list and plan instead of rebuilding them.
What changed
before/after benchmark comparisons.
preparation and submission, GPU completion, selection, picking, and the
total frame.
cannot look like a free optimization.
Safety and scope
Reuse is conditional on the retained inputs remaining valid; otherwise the
normal construction path runs. Timing is disabled by default and no
wall-clock threshold is added to ordinary CI.
This layer handles whole-frame reuse only. Incremental mutation and interaction
optimizations are introduced later in the stack.
Validation
planning work.