Scroll performance

Discussion about official Mozilla Firefox builds
Locked
njuzovi
Posts: 10
Joined: May 6th, 2008, 5:07 am

Scroll performance

Post by njuzovi »

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008050506 Minefield/3.0pre

From Firefox 3 betas I noticed poor scroll performance on some sites.

For example, on site www.fm-zagorje.org scrolling isn't fluid as it used to be in 2.0.x. When scrollling CPU usage jumps to 90%-100%. Similar poor scroll performance can be noticed on other sites and all them scrolled fine in Firefox 2.0.
Another example on this site is when user clicks red boxes under "IZ DRUGIH MEDIJA" and resizing occurs. In Firefox 3 animation is pretty slow compared to Firefox 2.0. CPU usage is 100%.

If I disable images, scrolling and animation is fluid.

I tried to search bugzilla, but i couldn't find anything relevant.

I'm testing this on laptop with centrino 1.5GHz processor so I assume that this is related to relatively slow computer speed.
maxmcn
Posts: 1
Joined: April 24th, 2008, 3:46 pm

Post by maxmcn »

this one http://sga.gatech.edu/ even worse.
cdev
Posts: 88
Joined: January 29th, 2008, 12:05 pm

Post by cdev »

That's not bad. This page even hangs my browser after a bit of slowscrolling:
http://icanhascheezburger.com/
njuzovi
Posts: 10
Joined: May 6th, 2008, 5:07 am

Post by njuzovi »

maxmcn wrote:this one http://sga.gatech.edu/ even worse.

Yes, terrible...

If you remove 'fixed' from HTML code:

Code: Select all

body style="background: url(images/backgrid.gif) fixed repeat-x" onLoad="menuInit()"

It helps a lot...

Or, if you remove this background image completely scrolling gets normal again.

EDIT: https://bugzilla.mozilla.org/show_bug.cgi?id=90198
Last edited by njuzovi on May 6th, 2008, 6:03 am, edited 1 time in total.
njuzovi
Posts: 10
Joined: May 6th, 2008, 5:07 am

Post by njuzovi »

cdrev wrote:That's not bad. This page even hangs my browser after a bit of slowscrolling:
http://icanhascheezburger.com/

Uh, Firefox went from 200MB to 600 in just couple of minutes...
MonztA51
Posts: 55
Joined: August 22nd, 2006, 9:33 am

Post by MonztA51 »

maxmcn wrote:this one http://sga.gatech.edu/ even worse.


this one http://www.gameswelt.de/ too
ShadowFusion
Posts: 1
Joined: May 6th, 2008, 8:32 am
Location: Sydney, Australia

Post by ShadowFusion »

Same...

Try this table from W3.org CSS ref

http://www.w3.org/TR/CSS21/propidx.html
bomfog
Posts: 455
Joined: November 7th, 2002, 3:22 pm
Location: the palouse, SE. WA, USA

Post by bomfog »

cdrev wrote:That's not bad. This page even hangs my browser after a bit of slowscrolling:
http://icanhascheezburger.com/

Bug 430573 – lolcats website makes firefox use 1GB+ of RAM
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Post by Omega X »

www.fm-zagorje.org scrolls pretty fine for me.

That other sites with the fixed backgrounds is pretty bad. Though, Firefox and other browsers has always had a problem with fixed backgrounds.
Faruk
Posts: 94
Joined: May 6th, 2008, 11:00 am
Location: Turkey

Post by Faruk »

Omega X wrote:www.fm-zagorje.org scrolls pretty fine for me.


This site not pretty fine for me...and my problem is @njuzovi's problem same too...What are we doing ?!

This is bug or not ?!
cody01
Posts: 22
Joined: March 13th, 2008, 11:57 am

Post by cody01 »

@Omega X
"Though, Firefox and other browsers has always had a problem with fixed backgrounds."

Which other browsers? IE, Maxthon and Opera don't have any problems at all with fixed backgrounds.
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Post by Omega X »

cody01 wrote:@Omega X
"Though, Firefox and other browsers has always had a problem with fixed backgrounds."

Which other browsers? IE, Maxthon and Opera don't have any problems at all with fixed backgrounds.


Yes, IE's and Opera's scrolling does take a hit on my PC with sites that have fixed backgrounds. ITs not as bad as Firefox but its still there. The scrolling goes from smooth to choppy and is even worse when Flash is on the same page.
njuzovi
Posts: 10
Joined: May 6th, 2008, 5:07 am

Post by njuzovi »

Faruk wrote:
Omega X wrote:www.fm-zagorje.org scrolls pretty fine for me.


This site not pretty fine for me...and my problem is @njuzovi's problem same too...What are we doing ?!

This is bug or not ?!

Yes, I would really like to know.

It has something to do with image backgrounds (if I turn images off, everything seems to work fine). In bugzilla there is an entry mentioning scrolling performance in relation with transparent images, but on www.fm-zagorje.org there are no transparent image backgrounds.

I would also like to know if there is some kind of workaround that doesn't include turning off images ;)
GSkRC33NJ9US
Posts: 239
Joined: January 10th, 2008, 8:13 am

Post by GSkRC33NJ9US »

Is Firefox hardware accelerated?

Does it make use of proper acceleration, or is there no change in that department?
User avatar
kindofabuzz
Posts: 3859
Joined: July 20th, 2003, 1:13 am
Location: Memphis, TN
Contact:

Post by kindofabuzz »

Disable smooth srolling and your problem is pretty much solved. pretty ironic huh?
Collapse unwanted MozillaZine forum sections ** Give a man a fish and he will eat for a day; teach a man to fish and he will eat for a lifetime; give a man religion and he will die praying for a fish.
Locked