rendering: add retained render layers and replay lifecycle - #55
Open
tritao wants to merge 24 commits into
Open
Conversation
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
2 times, most recently
from
August 15, 2026 12:55
a2e2165 to
60751d2
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 15, 2026 13:07
60751d2 to
bc2d160
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 15, 2026 15:51
bc2d160 to
dcb7aa1
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 15, 2026 17:03
dcb7aa1 to
5ef85f6
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
2 times, most recently
from
August 15, 2026 17:30
149b8a3 to
85a1505
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
2 times, most recently
from
August 15, 2026 23:53
3efedcd to
7c245c8
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 16, 2026 00:00
7c245c8 to
1e15bea
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 16, 2026 00:03
1e15bea to
b2fc3f2
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 16, 2026 00:25
b2fc3f2 to
bcbe7af
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 16, 2026 09:49
bcbe7af to
91c0fd2
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
from
August 16, 2026 10:00
91c0fd2 to
05d5f80
Compare
tritao
force-pushed
the
stack/drawlist-layers-rebuilt
branch
2 times, most recently
from
August 16, 2026 20:20
26b7f51 to
366c218
Compare
This was referenced Aug 17, 2026
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 #54 and completes the retained renderer's semantic and lifecycle
foundation before the performance work begins.
Purpose
Real scenes are not rendered as one uninterrupted list. They contain overlays,
ordered layers, local viewport or camera changes, and explicit depth clears.
Some nodes also delay work until traversal state would normally have gone out
of scope. The retained renderer therefore needs a single authoritative model
for ordering that work and for deciding which state survives until replay.
This PR introduces retained render layers and makes the render plan the source
of truth for visual drawing, selection, and picking. It also defines how
backend resources are released during normal shutdown and discarded after
context loss.
What changed
SoRenderLayerGroupfor stage-aware layer traversal and scoped depthclears.
expired action state.
needed by manager and application integrations.
Ownership and scope
The planner owns execution order. The backend owns OpenGL resources. The
manager orchestrates the pipeline, while selection policy remains outside it.
This layer defines renderer semantics and lifecycle only. Benchmark tooling
and performance optimizations start in #67.
Validation
boundaries for non-exported implementation fixtures.