Closed Bug 486059 Opened 16 years ago Closed 15 years ago

Animated javascript background causes Minefield to hog the CPU (or 1 core) while tab is active.

Categories

(Core :: Graphics, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: geeknik, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4pre) Gecko/20090330 Shiretoko/3.5b4pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4pre) Gecko/20090330 Shiretoko/3.5b4pre Visiting http://www.dseffects.com/scriptsfx/DS_BGScroll/DS_BGScroll.html causes the latest build of Firefox 3.5b4pre to use 100% of the CPU while the tab is active. When the tab is in the background, CPU usage drops off to almost nothing. Reproducible: Always Steps to Reproduce: 1. Visit http://www.dseffects.com/scriptsfx/DS_BGScroll/DS_BGScroll.html 2. Open Task Manager 3. Watch firefox.exe use 100% of the CPU. Actual Results: Firefox 3.5b4pre uses 100% of the CPU. Expected Results: Firefox should not hog the CPU while executing javascript.
Hmm, this also seems ok on the trunk.
These make good benchmarks, though
Runs at about 30% on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b4pre) Gecko/20090330 Shiretoko/3.5b4pre
Robert, thanks for letting me know. Boris told me over @ my other bug, https://bugzilla.mozilla.org/show_bug.cgi?id=470831, that I should submit a bug for each site that exhibits a performance issue, so here I am. Good to know javascript is being worked on for the trunk builds and hopefully we'll see some more branch landings soon.
Brian, What platform are you using? We should check this out just to make sure. Be as specific as possible.
Windows Vista Ultimate SP2, Core2Quad Q9450 (Overclocked from 2.66ghz to 3.0ghz per core), 4GB DDR2, etc. IE8 and Chrome 2.0.x exhibit the same behavior as 3.5b4pre.
Firefox 3 and 3.6 are using more CPU than Firefox 2 but they don't hang.
3.5b4pre build 20090402045633 still exhibits this behavior despite all the TM landings earlier this week. Also the behavior of the script is incorrect under Firefox 3.5b4pre, as the scrolling doesn't change direction based on your mouse movement, but I can file that as a separate bug if need be.
Behavior is still wrong, and CPU usage is still very high while this is running, 3.5b4pre Build 20090416044319 on XP SP3. Same hardware as comment #6, just a different OS.
Component: General → GFX: Thebes
Product: Firefox → Core
Version: unspecified → 1.9.1 Branch
QA Contact: general → thebes
This issue is still present in 3.7a1pre, build 20091015051159. It's using 100% of 1 core on my Q6600 when I have the tab active. Win7 Pro x64.
OS: Windows Vista → Windows 7
Hardware: x86 → x86_64
Version: 1.9.1 Branch → Trunk
Unable to replicate this in the latest hourly build of Minefield.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Summary: Animated javascript background causes Firefox 3.5b4pre to use 100% of the CPU while tab is active. → Animated javascript background causes Minefield to hog the CPU (or 1 core) while tab is active.
You need to log in before you can comment on or make changes to this bug.