Open Bug 1113279 Opened 10 years ago Updated 1 year ago

Animated Gif using too much CPU

Categories

(Core :: Graphics: ImageLib, defect)

34 Branch
x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: Skeptical.Bright, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0
Build ID: 20141125180439

Steps to reproduce:

Set Animated GIF to my home page on both Safari 7.1.2 (9537.85.11.5) and Firefix 34.0. Safari showed little or no cpu usage. Firefox usage was 55%.


Actual results:

I set an anmiated gif as my home page in Firefox (attached). When I looked at the Activity Monitor, Firefox was taking 54%
10-12% on Win 7.
Component: Untriaged → ImageLib
Product: Firefox → Core
Rough average usage based on a single thread and core of a 1st generation i7 CPU:
~8% usage with GPU acceleration
~12% usage without GPU acceleration

Tested on Windows 7 as well. Maybe it only applies to OSX systems or certain driver-hardware configurations?
This is a huge problem for me. Any page with a few animated gifs creates a ridiculously high load on my system. Macbook gets *hot* and the fan goes to max. Energy drain goes through the roof.

The attached gif consistently increases CPU load by 4%.

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0) Gecko/20100101 Firefox/54.0

Model Name:	MacBook Pro
Model Identifier:	MacBookPro11,5
Processor Name:	Intel Core i7
Processor Speed:	2.5 GHz
Number of Processors:	1
Total Number of Cores:	4
L2 Cache (per Core):	256 KB
L3 Cache:	6 MB
Memory:	16 GB

Graphics
--------

Compositing: OpenGL
GPU #1
Active: Yes
Vendor ID: 0x8086
Device ID: 0x0d26
Right now, we decode the full GIF animation right away, and that could keep a thread busy for a while if the animation is long.  In 54 we also never discarded animated images from the cache (bug 686905), so it is possible the situation got somewhat better in 55 (currently in beta).  If you have a chance to check Firefox beta or nightly build, it may give us more info on this.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: