Closed Bug 799663 Opened 12 years ago Closed 9 years ago

High CPU usage on SVG animations

Categories

(Core :: SVG, defect)

16 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ed.rooth, Assigned: jwatt)

References

()

Details

(Keywords: perf, Whiteboard: [in-the-wild] [external-report])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4

Steps to reproduce:

Vist any website that has complex SVG animation. 
Such as: 
http://mbostock.github.com/d3/talk/20111116/force-collapsible.html


Actual results:

CPU instantly spikes to 100%, animations are slow and jagged.


Expected results:

Should behave more like Chrome/Safari. Smoother faster animations. CPU usage is moderate, rarely goes about 50%-80%.
Keywords: perf
Hardware: x86 → x86_64
Component: Untriaged → SVG
Product: Firefox → Core
Have you tried Firefox 18 Aurora? Is it better there?
I tried Firefox 17 Aurora and the latest nightly (Aurora 19). Both exhibit the same behavior.

I did not try Firefox 18 Aurora b/c I couldn't find a link to download it.
I don't see any issues with latest Nightly. Can you retest, please?
I do see high CPU usage, actually.

This example just moves lots of circles around by changing their cx/cy attributes, and lots of lines by changing their x1/y1/x2/y2 attributes. So really this mostly depends on us drawing faster. Implementing Quartz content on Mac will hopefully help reduce CPU usage here.
Depends on: 836130, 715722
Summary: Slow SVG Rendering - spikes CPU on OSX → High CPU usage on animation on OSX
Whiteboard: [in-the-wild] [external-report]
Mozilla/5.0 (X11; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:26.0) Gecko/20100101 Firefox/26.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

This behavior also reproduces on Firefox 26 beta 7 (Build ID: 20131122094025) for the following URL's:

- http://www.carto.net/papers/svg/samples/jumping_cubes.svg
- http://svg.kvalitne.cz/worldlandmarks/worldlandmarks.svg
- http://svg-wow.org/audio/animated-lyrics.svg

Animations are very slow and the CPU load is extremely high.
Marking as NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
QA Contact: cornel.ionce
Hardware: x86_64 → All
Summary: High CPU usage on animation on OSX → High CPU usage on SVG animations
Depends on: 1090934
I think once bug 1090934 is fixed we can probably just call this done.

Cornel, regarding comment 5, those should be filed as separate bugs.
Assignee: nobody → jwatt
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.