Animated Personas can cause a high cpu load

NEW
Unassigned

Status

()

Core
General
--
major
7 years ago
2 months ago

People

(Reporter: whimboo, Unassigned)

Tracking

({perf, regression})

Trunk
perf, regression
Points:
---

Firefox Tracking Flags

(blocking2.0 -)

Details

(Whiteboard: [4b2], URL)

(Reporter)

Description

7 years ago
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b2) Gecko/20100720 Firefox/4.0b2

Having an animated Personas (as the one given in the URL field) installed, the browser constantly has a cpu load of 40% on my dual core MBP. With Firefox 3.6 I only see a cpu load of 25%. People can also see this on other platforms.

Steps:
1. Open task manager and check the cpu load of Firefox
2. Install or preview: http://www.getpersonas.com/en-US/persona/241274

After step 2 you should notice a drastic increase of the cpu load. It will be persist until you select another Persona or the default theme.

Even those Personas are pretty neat, mobile users will be disappointed of short battery cycles and probably don't know what's causing it.
(Reporter)

Updated

7 years ago
Whiteboard: [4b2]

Updated

7 years ago
Component: Theme → General
Product: Firefox → Core
QA Contact: theme → general
Do we end up repainting the entire window (including the content area) on every animation frame here or something?
blocking2.0: --- → ?
Keywords: regression
We can look into this, but frankly expecting decent battery life with an animated persona sounds misguided.

Comment 3

7 years ago
I can confirm that Firefox 4.0b3pre is much slower (25-30%) than Firefox 3.6 (18-20%) when using this theme. That's on Windows XP, dual core laptop.
(Reporter)

Updated

7 years ago
Keywords: regressionwindow-wanted
(Reporter)

Comment 4

7 years ago
On OS X Firefox 4.0 beta 2 uses 70% of my cpu. While starting to dig into the regression range finding, I have found that a big spike happened in builds between 20100211 and 20100216. I will further work on getting the changeset ids for the range. During that time Firefox has been used about 99% of the cpu. So we constantly are getting better.
(Reporter)

Comment 5

7 years ago
Regression window is 2010021103 and 2010021207:

http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=af0f0615944e&tochange=4b18d31e83f4

Benjamin, could it be related to the IPC or Lorentz changes which have been checked in during this time frame?
Keywords: regressionwindow-wanted

Comment 6

7 years ago
Not obviously. You're of course welcome to make a smaller regression range if you think it will help. I suspect it would be easier to answer bz's question. I presume there aren't actually any plugins involved.

Updated

7 years ago
blocking2.0: ? → -
You need to log in before you can comment on or make changes to this bug.