Open Bug 1457759 Opened 8 years ago Updated 2 years ago

High CPU on macOS with animated SVG

Categories

(Core :: Graphics, enhancement, P2)

60 Branch
x86
macOS
enhancement

Tracking

()

Tracking Status
firefox116 --- affected

People

(Reporter: alberts, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: nightly-community)

Testing "Window on Earth" https://addons.mozilla.org/en-US/firefox/addon/window-on-earth/ - which features animated theme/background images, my fans' RPM started to go up. Checking the CPU, Dev Edition main process is on ~120%.
Component: Theme → WebExtensions: Themes
Product: Firefox → Toolkit
Hmm, yeah that's something that might just happen. But perhaps we can do something about this becoming a real footgun and check out whether we can optimize something with this addon in mind? Least we can do is check out its source code. Tim, is that something you'd be interested in doing?
Priority: -- → P2
Whiteboard: [ntim-backlog]
Seems like this theme uses an animated SVG, so that might be what hogs the CPU.
Product: Toolkit → WebExtensions
Whiteboard: [ntim-backlog]
Component: Themes → Graphics
Product: WebExtensions → Core
Severity: normal → S3

I have got a new test case for this: https://www.svgator.com/

Tested hardware: 2021 MBP Apple M1 Pro

The current animation on the front page causes 220-230% CPU in Firefox 116.0b2 main thread (while tab active; main thread normalises if tab in background)

to compare

  • Safari 16.5.1 : Web Content thread ~130-140%
  • Chrome 114.0.x: Helper (GPU) thread ~75-90% + Helper (Renderer) thread ~30-35% --> 105-125%
Summary: High CPU on macOS with animated background (dynamic theme) → High CPU on macOS with animated SVG
You need to log in before you can comment on or make changes to this bug.