Skip to content

compositor: Fix a performance regression from #39583#39684

Merged
mrobinson merged 1 commit intoservo:mainfrom
mrobinson:fix-performance-regresssion
Oct 6, 2025
Merged

compositor: Fix a performance regression from #39583#39684
mrobinson merged 1 commit intoservo:mainfrom
mrobinson:fix-performance-regresssion

Conversation

@mrobinson
Copy link
Copy Markdown
Member

When processing new WebRender frames after handling messages in the
compositor, only do that when we actually receive
NewWebRenderFrameReady messages. This isn't an issue unless there are
active animations. When there are, every spin of the event loop was
triggering a repaint.

Testing: This should fix the performance regression on the Speedometer Bencher
benchmarks.
Fixes: #39641

When processing new WebRender frames after handling messages in the
compositor, only do that when we actually receive
`NewWebRenderFrameReady` messages. This isn't an issue unless there are
active animations. When there are, every spin of the event loop was
triggering a repaint.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Delan Azabani <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 6, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 6, 2025
@mrobinson mrobinson enabled auto-merge October 6, 2025 09:50
@mrobinson mrobinson added this pull request to the merge queue Oct 6, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 6, 2025
Merged via the queue into servo:main with commit 1ca1a9d Oct 6, 2025
28 checks passed
@mrobinson mrobinson deleted the fix-performance-regresssion branch October 6, 2025 11:14
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 6, 2025
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.

Speedometer regression from 6ffc0cd

4 participants