Closed Bug 1333195 Opened 7 years ago Closed 7 years ago

AccumulateEventRegions has scalability problems

Categories

(Core :: Panning and Zooming, defect, P3)

53 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1363423

People

(Reporter: jrmuizel, Unassigned)

References

()

Details

(Keywords: perf, Whiteboard: [gfx-noted])

https://people-mozilla.org/~jmuizelaar/webrender/synthetic/moving-balls.html spends most of it's time in AccumulateEventRegions.

There's a bunch of options for how we can do better.
If we were to use TiledRegion we'd probably need a version that has different semantics. The current TiledRegion takes the bounds of the rects in a tile. We'd want something that uses the largest contained rectangle.
I feel like in the default webrender configuration we shouldn't really be doing anything in AccumulateEventRegions, because APZ is off and layout.event-regions.enabled is false by default. So we shouldn't be building event regions at all. Is that not the case?
Should this run any faster if the window size excludes most of the objects? (e.g. a 300x200 window) It performs just as poor for me, which is unintuitive.
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #2)
> I feel like in the default webrender configuration we shouldn't really be
> doing anything in AccumulateEventRegions, because APZ is off and
> layout.event-regions.enabled is false by default. So we shouldn't be
> building event regions at all. Is that not the case?

This was profiled in a regular Nightly build without WebRender.
Ah, ok. I was thrown off by the URL.
Keywords: perf
Priority: -- → P3
Whiteboard: [gfx-noted]
Version: unspecified → 53 Branch
See Also: → 1363423
The patch in bug 1363423 reduces the paint time of this page from ~2500ms to ~300ms. Forward-duping.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.