Skip to content

Reuse unchanged child geometry in compositor subtree captures - #126

Merged
trissim merged 4 commits into
mainfrom
refactor/compositional-subtree-source-20261008
Oct 8, 2026
Merged

trissim merged 4 commits into
mainfrom
refactor/compositional-subtree-source-20261008

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown

When an ancestor's geometry was captured again, the compositor copied every descendant placement into a new flat snapshot. In _compositor.py a capture now holds unchanged child captures as they are, through a new SubtreeGeometryPlacement that records the child's placement, clip and captured parent. Membership, parent lookup, spatial queries and held-widget handling read through those child captures. Tests are added in test_subtree_geometry_cache.py and adjusted in test_viewport_geometry_targets.py.

@trissim
trissim marked this pull request as ready for review October 8, 2026 15:15
Copilot AI balanced review requested due to automatic review settings October 8, 2026 15:15
@trissim
trissim merged commit f859cb8 into main Oct 8, 2026
0 of 22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim trissim changed the title Borrow child geometry sources in retained subtree captures Reuse unchanged child geometry in compositor subtree captures Oct 11, 2026
@trissim
trissim deleted the refactor/compositional-subtree-source-20261008 branch October 11, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants