Skip to content

Merge damage rectangles into row spans in one sweep - #69

Merged
trissim merged 4 commits into
mainfrom
perf/native-damage-band-reduction-20261005
Oct 5, 2026
Merged

trissim merged 4 commits into
mainfrom
perf/native-damage-band-reduction-20261005

Conversation

@trissim

@trissim trissim commented Oct 5, 2026 •

Copy link
Copy Markdown

Compositor._regions_to_spans used to list every row of every region and then sort and merge the ranges per row. It now records where each rectangle starts and ends vertically, sweeps the rows in order with a running count of active spans, and merges overlapping spans when the set changes. It uses Counter. One test file is updated.

@trissim
trissim marked this pull request as ready for review October 5, 2026 14:06
Copilot AI balanced review requested due to automatic review settings October 5, 2026 14:06
@trissim
trissim merged commit c1bcc8d into main Oct 5, 2026
3 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 Reduce native damage intervals once per vertical band Merge damage rectangles into row spans in one sweep Oct 11, 2026
@trissim
trissim deleted the perf/native-damage-band-reduction-20261005 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