Closed Bug 1775508 Opened 2 years ago Closed 2 years ago

Slow scrolling and too many draw calls on stackoverflow survey bar graphs

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mstange, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Scrolling across the bar graph at https://survey.stackoverflow.co/2022/#technology-top-paying-technologies is sluggish on my M1 Max Macbook Pro.

The WR profiler shows 700 alpha passes, 2500 draw calls, and ~25,000 vertices.
The Gecko profiler shows a lot of CPU time in Renderer::draw_clip_batch_list.

Profile: https://share.firefox.dev/3nblWJq

Severity: -- → S3
Blocks: wr-batching
No longer blocks: wr-perf
Blocks: 1782834

This runs well when I tested locally - the draw calls and alpha passes seem fine. Is it still occurring for you locally?

Flags: needinfo?(mstange.moz)

I suspect this was fixed by a patch that allows shared surfaces for tasks that span >1 render pass (which landed a month or two ago).

I can confirm that this is fixed now! Very nice.

(In reply to Markus Stange [:mstange] from comment #0)

The WR profiler shows 700 alpha passes, 2500 draw calls, and ~25,000 vertices.

Now it shows 1 alpha pass and 180 draw calls, with the same number of vertices.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(mstange.moz)
Resolution: --- → WORKSFORME
Depends on: 1780321
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: