Skip to content

Publish only the visible part of cached subtree geometry - #63

Merged
trissim merged 4 commits into
mainfrom
perf/viewport-subtree-projection-20261004
Oct 5, 2026
Merged

trissim merged 4 commits into
mainfrom
perf/viewport-subtree-projection-20261004

Conversation

@trissim

@trissim trissim commented Oct 5, 2026 •

Copy link
Copy Markdown

When the compositor reused a cached subtree arrangement for a viewport, it published every entry. SubtreeGeometry.project_into now takes visible_only, the kept widgets and the viewport bounds, and skips entries that are offscreen and not required before resolving their clips. A region property is added to SubtreeMapGeometry. The change is in _compositor.py with a test update.

@trissim
trissim marked this pull request as ready for review October 5, 2026 05:40
Copilot AI balanced review requested due to automatic review settings October 5, 2026 05:40

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 merged commit c96eca4 into main Oct 5, 2026
3 of 22 checks passed
@trissim trissim changed the title Project cached subtree geometry for the current viewport Publish only the visible part of cached subtree geometry Oct 11, 2026
@trissim
trissim deleted the perf/viewport-subtree-projection-20261004 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