Enterprise Render Pipeline — Layer Tree, O(1) dirty, multi-rect damage (v0.1.20)#97
Merged
Conversation
…istent tree Rewrite render loop to Layer Tree walk with per-boundary GPU textures. Add DirtyBoundaryRegistrar interface for O(1) boundary tracking, persistent Layer Tree with incremental updates, damage-aware blit with multi-rect support, and overlay-aware hit testing.
Overlay container now returns content as Children() and wires AddChild in constructor. Dropdown menu removes redundant ctx.InvalidateRect calls (RepaintBoundary isolation handles repainting). Dropdown widget overlay push adapted for new boundary pipeline.
ADR-028 Phase 2: convert 54 ctx.Invalidate() calls to granular SetNeedsRedraw(true) + InvalidateRect(Bounds()) for visual-only state changes (hover, press, selection highlight). Widgets no longer trigger full window layout+redraw for paint-only mutations. Deprecate state.Bind in favor of direct signal subscription with SetNeedsRedraw.
Add comprehensive test coverage for retained-mode render pipeline: flat dirty list O(1) operations, Layer Tree construction and overlay append, boundary visibility culling, overlay damage tracking and hover blocking, damage-aware blit with multi-rect scissor, GPU work verification, and end-to-end software backend rendering. Includes state binding regression test for deprecated Bind path.
Update core ecosystem dependencies for v0.1.20 release.
Update public documentation for v0.1.20 release: retained-mode render pipeline with Layer Tree compositor, damage-aware blit, granular invalidation (ADR-028), and per-boundary GPU textures.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Summary
Enterprise Render Pipeline — Layer Tree compositor, O(1) dirty tracking, damage-aware multi-rect blit.
Architecture (ADR-007 Phase D + ADR-028 + ADR-030)
compositor/package drives render loop (OffsetLayer, PictureLayer, ClipRectLayer, OpacityLayer)UpdateLayerTree()reuses layer objects across frames (97.9% fewer allocations for 200 boundaries)NeedsRedrawInTreeNonBoundarytree walk (45× faster)LoadOpLoad + scissorproven 48×48 at HAL level via software backend StatsTests
Fixes
Dependencies
Research
Test plan
go build ./...— PASSgo test ./... -count=1— 56 packages, 0 FAILgolangci-lint run --timeout=5m— 0 issues