Open Bug 1708971 Opened 4 years ago Updated 5 months ago

Up to 160% CPU load due to SVG animations on https://feedly.com

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

People

(Reporter: whimboo, Unassigned)

References

(Blocks 4 open bugs, )

Details

(Keywords: power)

Attachments

(4 files)

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0 ID:20210429214231

After opening https://feedly.com you will be presented with a lot of animations on that page. But if you slowly scroll down, and end stop scrolling around the privacy section the CPU load stays high at around 160% even with not a single animation visible in the viewport.

While the CPU load for the main process is the highest (up to 90%) it is split-up across all the different webrender threads. The affected web content process shows most of the CPU load (up to 70%) on the main thread. Here some SVG animation take up a lot of time.

I wonder why we still render these animations even with them not being visible in the current viewport.

Here a recorded profile:
https://share.firefox.dev/3nGdwcx

Also during the the 8s or recording the memory usage of the content process constantly grows and at the end extra 50MB have been allocated.

Blocks: wr-perf
Severity: -- → S3

There is a feComponentTransfer filter that appears to give the blob rasterization a bad time.

Blocks: wr-blob-perf, wr-svg-filter-perf
No longer blocks: wr-perf

The second one is now much faster since gfx.webrender.svg-filter-effects was enabled (Bug 1906212), the other two are unaffected - we're still doing software SVG path rendering.

Depends on: 1906212
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: