MASTER - slow scroll with image as background-repeat

Bug #125970 reported by Nicolò Chieffo
96
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Confirmed
Medium
firefox (Ubuntu)
Won't Fix
Low
Mozilla Bugs
firefox-3.0 (Ubuntu)
Invalid
Low
Unassigned
firefox-granparadiso (Ubuntu)
Invalid
Undecided
Unassigned
xorg (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox

firefox 2.0.0.6+2-0ubuntu4

I've found that scrolling is slow in all sites (comparing to windows), but really slower in sites where there is a static image that does not move when I scroll
site example:
http://www.starcraft2.com/
http://railsdojo.wordpress.com/
http://www.oakparkfoundation.org/

I think that this .css is the cause of the problem
body { background-color: #fff;
background-image: url("images/rubric/gradient.gif");
background-attachment: fixed;
background-position: bottom;
background-repeat: repeat-x; }

this problem is empathized when using compiz.
The problem is present with both radeon and nvidia video cards, even when compiz is disabled

This problem is less invasive if using firefox downloaded from mozilla.com (without ubuntu patches) or swiftfox, but it is still present
Scrolling in windows XP is really faster (when I say really I mean at least 10x in the starcraft site, which is the site that has most slowdown problems), even in sites that does not have a background image

Other tests
epiphany 2.19.5-0ubuntu1: same slowdown as firefox
konqueror 3.5.7-1ubuntu10: much more reactive in http://railsdojo.wordpress.com/ and normal sites, but slower in www.starcraft2.com

Revision history for this message
In , Hhschwab (hhschwab) wrote :

WFM Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4b) Gecko/20030408

Product should be PHOENIX

Revision history for this message
In , Hhschwab (hhschwab) wrote :

WFM Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030408 Phoenix/0.5+
Athlon XP1600+ nForce

Revision history for this message
In , Jo-hermans (jo-hermans) wrote :

Well, I though it was a well-known problem, and I've seen it lots of times. I've
removed the fixed background on my website because of this. For me it's a dupe
of bug 90198.

Revision history for this message
In , Hhschwab (hhschwab) wrote :

WFM Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4b) Gecko/20030408
Celeron 333 MHz 96 MB Ram, SiS6326 Graphicscard (8 MB)

With this computer I see a difference in scroll speed, but speed is reasonable
fast in both cases. Both computers 800x600. But with both computers I had to
wait long, till all images from Phoenix Help were loaded.
On the w3.org testpage I didn´t see a remarkable effect, wouldn´t have noticed
slowness.

Revision history for this message
In , Jo-hermans (jo-hermans) wrote :

Actaully, for this particular page, it's a WFM (build 2003040910 on Mac OS X
10.2.4), even on my old 300 MHz iBook. The smooth-scrolling is the biggest
contributing factor. We've progressed immensily the last few months.

BTW: most of the urls in bug 90198 are about a fixed background. This bug is
about fixed positioning, and I think it's a dupe of another bug.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

For reference:
Athlon 800Mhz (384MB PC100)
GeForce4 Ti 4400 (128MB DDR)

After seeing the WFM comments, I checked the pages again to see if I was crazy.
I got no significant slowdown, and couldn't figure out why. I think I'm getting
there, though. I've done some more testing, and am downloading a mozilla nightly
to see if this is phoenix-specific.

I am able to reproduce the problem by having certain other programs running
(though idle) at the same time as Phoenix. It seems to be a very binary thing;
either scrolling is seriously hampered, or it isn't. (And, well, yes--fixed
elements slow down a page even when this problem isn't present, but not by
nearly as much.) This reminds me of comments 18-22 or so in Bug 90198.

The program that causes the slowdown, on my machine, is a java-based text editor
(jEdit; http://www.jedit.org/). Any time it is open, the problem is present on
pages with fixed elements. Other pages seem unaffected, but that may be just
because of the inherent performance differences.

Additionally, (and this is strange) if I set the windows Task Manager to display
as 'always on top', and leave it over a page without fixed elements, that page
suffers from the same performance drop that pages with fixed elements do. This
seems to be less true of Winamp and the windows CD player, perhaps because they
take up less screen-space. That seems like it could be windows-specific; has
anyone encountered this in unix/linux?

Additionally, can anyone recommend some other java-based GUI programs to test
against?

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

just adding that I've confirmed I run into the problem in Mozilla as well as
Phoenix.

Revision history for this message
In , Bugzilla-spray (bugzilla-spray) wrote :

I see the choppy scrolling, but that happends with and without the menu being
fixed. Also blocking the images (remove background image) doesnt help. It gets
choppy in the top, where all the thumbnails are.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

I've noticed that as well, but it's a different issue. If you are encountering
this, it'll be pretty drastic, and bad even down below the big image grid.

Revision history for this message
In , SteBo (stebo) wrote :

Marking NEW to get this somewhere. I couldn´t find a bug that explicitly deals
with fixed elements in general. I´m adding a dependency to bug 90198 which is
about fixed backgrounds.
Furthermore I believe this should block Bug 198964 ("Enable/disable smooth
scroll by default") since this bug is much worse when smooth scrolling is enabled.

Revision history for this message
In , Holyspirit (holyspirit) wrote :

Created an attachment (id=121395)
a testcase which let you choose 'fast scolling mode' and 'slow scrolling mode'
:)

I have discovered offscreen fixed div will make scrolling slow, however, if the
fixed div is in the document entirely, scolling speed is acceptable.

I hope this helps :)

Revision history for this message
In , Holyspirit (holyspirit) wrote :

On Firebird the fixed div will overpaint the scrollbar everytime the document is
scrolled, furthermore, I have tried to change it to offset to -10px to avoid
scrollbar repaint (which may account for scrolling slowness), but the scrolling
is still slow.

The slowdown is more apparent when you use 'up' or 'down' cursor key on your
keyboard to scroll :)

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

That is extremely helpful. Thanks!

Revision history for this message
In , Holyspirit (holyspirit) wrote :

roc+moz: I have just tested my testcase in (not so) nightly mozilla build on
Linux, and it seems that the problem is not as apparent, if there is any slow
downs at all, as my gtk2 phoenix build (which uses XP scrollbar...), so I
suspect my testcase is deomonstrating another problem other than general
slowness (or I have broken my source tree).

Revision history for this message
In , Holyspirit (holyspirit) wrote :

roc+moz: I have tried my testcase on Phoenix GTK2, Phoenix GTK nightly
(20030423) and Mozilla nightly (mentioned in prev. comment, 2003042307).

result:
1. my testcase
1a Phoenix GTK2: slows down (as exptected), red div overpaint on XP scrollbar.
1b Phoenix nightly (GTK): no slow down, however, red div still overpaint on GTK
scroll bar
1c Mozilla: no apperant scrolling slowdown, no red div overpaint, works perfectly.

2. texturizer theme page:
2a,b,c all three browser exhibits same problems:
1) it takes me a few clicks to get the menu locked.
2) mouse wheel is unable to scroll the page after the menu is locked (by 2+
clicks), until I have clicked empty area on document.
3) scrolling is slow, jerky, blah blah blah... after the menu has been locked.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

-> Chu: Thanks so much for doing the heavy lifting here! I feel very bad about
abandoning the bug for two weeks...

Based on comment 15, I've downloaded mozilla 1.4a (Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.4a) Gecko/200304010) and tested the attachment in it
as well as phoenix:

On my system (was Win2k, now WinXP), /both/ Firebird and Navigator have /both/
the slowdown and the scrollbar overpaint. Perhaps this is a windows/linux
difference somewhere in the lower level stuff?

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Created an attachment (id=121753)
similar patch isolating position:fixed from the scrollbar overdraw

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Actually, now that I'm looking at this, there seem to be as many as three bugs here:

(1) Like in the bug's name, any pages with fixed elements scroll noticeably
slower than those without such elements. The second patch illustrates only this
bug. Additionally, on Windows2k/XP, I can duplicate this behavior on a page
without fixed elements (such as either attachment in 'fast' mode) by having an
'always on top' window overlapping the browser window. Can this be checked in linux?

(2) In the case that such a fixed element is displayed partially offscreen, two
things happen: (i) scrolling slows drastically, and (ii) the element can
overdraw the scrollbar.

(3) This is the bug I was initially encountering/reporting, and can no longer
reproduce. While running the program jEdit 4.01, mozilla/phoenix were scrolling
at speeds of around 5-6 px/second on pages with fixed elements. If I encounter
this again, I'll make a new, more specifically targeted (and better tested!) bug.

As it stands, I think it'd be best to focus on the first of these here, perhaps
make a new bug for the second if it's unrelated, and drop the third entirely.

Revision history for this message
In , Markushuebner (markushuebner) wrote :

Don't we already have a bug for point 2?!

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

just adding some comments based on my experience in the past few weeks.

In both Mozilla and Firebird, scrolling-speed is reduced on Windows platforms if
either of the following conditions exist:

1) The page contains a fixed element.
2) Another window (set in 'always on top') is partially or wholly on top of the
browser window. (Winamp, Task Manager, etc...)

The more fixed elements present (including windows 'on top' of the browser), the
more noticeable this slowdown is.

Other comments:

I'm still thinking this may be specific to windows, and perhaps how mozilla
paints itself under the OS. Can anyone cross-test this between windows/linux or
windows/OS X? I don't really have access to linux machines or non-uberfast OS X
machines.

I've tried to see how IE behaves, but can't get mine to display anything other
than backgrounds as fixed. Having windows on top of the IE window doesn't seem
to affect its scrolling speed at all, though.

Recent builds of Firebird slow down _much_ less than before. Neither test case
produces a noticeable slowdown at all on my Athlon 500. The texturizer page is
only barely choppy. What changed?

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Just switched to the 25 August nightly of Firebird (from 6.1) and noticed that
things have slowed back down. A lot.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030825 Mozilla
Firebird/0.6.1+
on Windows 2000
Athlon XP 2100

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030825
Mozilla Firebird/0.6.1+/jtalkington-nightly
Power Mac G4
Dual processor system.

Anyway... this shows up both on Windows and OS X, so I'm betting Linux/Unix have
it too. Curiously, though, on Mac OS, having transparent or hovering windows
doesn't have much to do with it.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Created an attachment (id=133309)
shows various scrolling speeds/states

Per comment 19, I looked for other bugs for chu alan's test case and turned up
bug 186696 and bug 183495, but those both seem to focus on the scrollbar paint,
rather than the slowdown. I've made a new bug 222198 for this problem.

I'm adding an attachment to this bug allowing tests for scrolling normal,
fixed, and the above case where fixed elements are too big. Performance tests
for this page follow.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Created an attachment (id=133310)
shows performance differences for fixed/non-fixed scrolling

For this bug, I ran some performance tests to show better what I'm talking
about. While the slowdown on account of fixed elements (or a hovering window)
is hard to notice on my now fast machine, the difference in CPU use (and thus
for the user on slower machines) is very drastic! Other browsers do this much
more gracefully, so something's probably wrong.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Just downloaded Mozilla 1.5 and Firebird 0.7, and suddenly this is WFM -- CPU
use in all cases is below 10%, and scrolling's beautiful (apart from the
scrollbar overpaint).

The 1.5 Release notes said something about fixing windows GDI paint problems.
Maybe that's what this problem was? That'd make sense given the fact that having
a non-mozilla window hovering over the mozilla window caused the same problem.
What bug was that?

Revision history for this message
In , Holyspirit (holyspirit) wrote :

before closing this bug (and other related bugs), please have somebody check
other platforms as well

BTW from my distant memory, slow down occurs on GTK/Linux as well...

Revision history for this message
In , Greg Campbell (glc-bugs) wrote :

Definitely not WFM! Scrolling is still quite slow for me on pages with fixed
elements. The attachment (id=133309) (shows various scrolling speeds/states) is
no different between the "fixed menu" and "huge fixed menu" however.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031017
Firebird/0.7+ (aebrahim)

Revision history for this message
In , Markushuebner (markushuebner) wrote :

The testcase you mentiond is WFM with Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.6a) Gecko/20031028
Maybe this is due to graphic driver related problems too?

Revision history for this message
In , Bugzilla-spray (bugzilla-spray) wrote :

See Bug 222844 (a dupe i think), where reporter says position fixed is slower
with anti-aliased fonts.

Revision history for this message
In , Fondacio (fondacio) wrote :

To elaborate on comment #27: I suspect the graphics driver are relevant. I
recently replaced my Kyro-based card (Hercules Prophet 4000XT 32 MB TV-out) with
a GeForce2-based card (MX440; 64 MB) and page rendering generally appears to be
faster on some sites and this bug hardly appears anymore. The testcase scrolls
the same at both speeds. A site that used to be notoriously slow and has become
bearable, albeit still a bit slow, is djst's weblog:
http://weblogs.mozillazine.org/djst/
That page might still serve as a useful testcase.

Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031007

Revision history for this message
In , Bugzilla2005 (bugzilla2005) wrote :

*** Bug 222844 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Flo (flo51100) wrote :

http://www.lesproviders.com is very slow here. Firebird 0.7, Windows XP SP1,
PIII 1gh 256ram geforce2.

Revision history for this message
In , Bugzilla-spray (bugzilla-spray) wrote :

Perret, the page you mention does not have any element with position:fixed,
thats what this bug is about.

Both the testcases and the URL scrolls are WORKSFORME with Firebird 0.8 branch
build 20040120.

Revision history for this message
In , Gandalf-aviary (gandalf-aviary) wrote :

Also WFM with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031218
Firebird/0.7+

Revision history for this message
In , Deleeuw (deleeuw) wrote :

WFM
Mozilla 1.6
Win XP SP1
ATI Radeon 9700 TX
P4 2.53 Ghz

Revision history for this message
In , Marcos-br (marcos-br) wrote :

#32:
>Perret, the page you mention does not have any element with position:fixed,
>thats what this bug is about.

Actually, it does. Open
http://www.lesproviders.com/themes/L12_lesproviders/style.css and and you'll see:

<blockquote>background: White url(images/fond.jpg) no-repeat fixed top
left;</blockquote>

And to make things worst, it's a <a
href=http://bugzilla.mozilla.org/show_bug.cgi?id=90198>fixed background</a>.

I'm running "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5)
Gecko/20031007 Firebird/0.7" and scrolling is painfully slow here too.

ps: btw, is the above CSS declaration a valid one? It isn't supposed to be a
"background-attachment: fixed;" somewhere?

Revision history for this message
In , Marcos-br (marcos-br) wrote :

I screwed big time in my previous post. Didn't know HTML wasn't supported.

Sorry!

Revision history for this message
In , Miahzmiahz+bmo (miahzmiahz+bmo) wrote :

Created an attachment (id=139911)
test demonstrating affect of multiple fixed elements

while working on a page design, i noticed that the number of position:fixed
elements affected the scroll speed, which led me to look up this bug. at first
it seemed like any number more than one would cause a serious slow down, but
after creating and playing with this test, i'm not so sure.

it's based off the previous attached tests, but has 5 elements that can be
locked and unlocked individually. there is a definite deterioration of
performance with multiple fixed elements. the most noticeable way i've found
to test it is to turn on smoothscroll, and use the keyboard arrows one line at
a time. with everything unlocked, it scrolls almost instantly. lock one box,
and it slows down noticeably, but not terribly. each additional locked box
seems to slow it down more. another way to test is to hold down the arrow key
then see how much it "coasts" after you release. with all unlocked it should
stop instantly.

tested in firebird 0.6.1 and 0.7 on windows 2000 sp3, pII 400mhz, 384mb ram,
16mb agp riva tnt. haven't touched a new build since 0.7, so i couldn't
comment on the recent WFMs. my computer is 5 years old now, and i wouldn't be
suprised if any newer computer with sufficient horsepower never saw these
problems.

while testing, i also uncovered another issue:
increasing the text size (CTRL +) with fixed boxes destroys performance even
more. oddly, decreasing it doesn't seem to have an effect. not sure if this
is a general thing or something unique to these testcases.

Revision history for this message
In , Bugzilla-spray (bugzilla-spray) wrote :

Can anyone reproduce this with a new build and a page that actually uses
position:fixed?

Revision history for this message
In , Greg Campbell (glc-bugs) wrote :

http://www.w3.org/Style/Examples/007/scrollbars.html - scrolls at about half the
speed of a page without fixed elements.

http://firefox.bric.de/index.php - pick the "fixed menu" stylesheet; scrolls
maybe 25% of normal speed.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040210
Firebird/0.8.0+

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

My system is fast enough at this point that I don't ever _notice_ encountering
this bug. Apparently I still do, though. On this page, and on the two Greg
mentioned, I tried measuring CPU load while scrolling by holding down the arrow
keys:

On this page, CPU use capped at ~10%
On both other pages, CPU use capped at ~80%

Both appear fine from my viewpoint, but obviously mozilla's working a lot harder
when fixed elements are involved.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

Revision history for this message
In , Rp-moz (rp-moz) wrote :

In reply to #38, yes this bug is still very noticable. If you go to
http://www.tweakers.net and scroll from the bottom up you'll see sluggish
scrolling at the top of the page. It uses many abs. positioned DIV's, some are
hidden some are not so the slow scrolling may be a combination of this bug and
bug 203439 - slow scrolling due to hidden, fixed-position elements, although the
latter probably depends on this one.

Revision history for this message
In , SteBo (stebo) wrote :

*** Bug 264630 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ian Neubert (ian-twacomm) wrote :

I'm seeing this in Linux as well, I'm running Xorg 6.8.0 and dual monitors with
Xinerama.

Mozilla/5.0 (X11; U; Linux x86_64; rv:1.7.3) Gecko/20040929 Firefox/0.10.1

Revision history for this message
In , Benjamin-streeck (benjamin-streeck) wrote :

This is basically one of last major problems of the Gecko engine. Looking at
Opera 7.6 they seem to have fixed all their speed-related problems in Presto.
For me, this makes smooth scrolling not usable, which is quite sad I find.

(FYI: This page is the best (worst) example I've found showing the problem:
http://www.streeck.com/homepage.html )

Occurs in Win2k and WinME: Fx 0.10.1, Fx 1.0rc1, Moz 1.7.3, Moz 1.8a4

Revision history for this message
In , Matt Sicker (jvz) wrote :

Oh boy, you don't want to see what it looks like when you position:fixed; a
flash or shockwave object; CPU usage goes out the window at over 50% on a P4C
clocked 3.09 GHz, 1 gig RAM, GeForce FX 5900. You'd think that my box could
handle this, but it's definitely a bug.

Demonstration of flash/whatever: http://www.bungie.net
At least they plan on changing the site when Halo 2 comes out, but this is still
an annoying bug.

Revision history for this message
In , Pcmaniac (pcmaniac) wrote :

this bug was opened 2003-04-09
whats so special about it that cant be fixed in more than a YEAR?

i have a P4 2.8, 512 DDR, ATI Radeon mobility (64 DDR) and scrolling is still
too slow!
btw, this bug isnt only for win2k.. i use xp

Revision history for this message
In , Bugzilla-spray (bugzilla-spray) wrote :

*** Bug 268683 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ryanvm (ryanvm) wrote :

http://www.warp2search.net/ also exhibits this problem. I've experienced the
issue with Windows XP SP1 & SP2 and Windows 98. This is an issue for more than
just Windows 2000.

Revision history for this message
In , Dave Milford (davemilford) wrote :

This isn't just a Win2K bug, it's also evident on Windows XP and Linux. Not
sure about other platforms -- assuming they are also affected.

This is starting to become a very high profile bug, one that has turned off at
least one person I know from Firefox. I got him to switch with 1.0PR, but he's
into Halo 2 (as a huge number of my friends now). With the way Bungie.net is
designed (a very central part to Halo 2's multiplayer), it's painfully slow in
Firefox and fine in IE.

Revision history for this message
In , David-rossde (david-rossde) wrote :

This might be a symptom of bug 124150. See my comment 66 in that bug.

Revision history for this message
In , Olivier Cahagne (wolruf) wrote :

*** Bug 271573 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ozeki (turkmanzone) wrote :

Those who play Halo 2 on Xbox Live usually go check their stats on Bungie.net
(http://www.bungie.net/stats/) and by "Those" I mean this:

Halo 2 - Xbox Live Statistics
(last 24 hrs)
Unique Players: 351,639
Matches Logged: 802,034
Players Online: 71,505

Hopes you guys can fix that soon, because it's getting pretty big now. Sorry
that I can't help. :/

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

*** Bug 249880 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jfftck (jfftck) wrote :

I am using the User Agent Switcher and set my agent string to Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1) and the bungie.net stats page scrolls
much better. I am using Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0. But the page is still slow, but now it is
useable now.

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

*** Bug 273064 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mozillafirebird (mozillafirebird) wrote :

seems to be fixed in 2005-01-08-07-trunk

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050107
Firefox/1.0+

I tried this attachement
https://bugzilla.mozilla.org/attachment.cgi?id=139911

definitly NOT wfm

Revision history for this message
In , Mozillafirebird (mozillafirebird) wrote :

maybe it doesnt work for u because ur using yesterdays build, and it was only
fixed today. thats why i said it was fixed as of 2005-01-08-07-trunk. ur using
2005-01-07-?-trunk.

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

(In reply to comment #58)
> maybe it doesnt work for u because ur using yesterdays build, and it was only
> fixed today. thats why i said it was fixed as of 2005-01-08-07-trunk. ur using
> 2005-01-07-?-trunk.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050108
Firefox/1.0+

WFM

All testcases are fast

My stupidity,used the wrong build before

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

All checkins between 20050107 and 20050108 Win builds

bug 259126 [Firefox]-sites/exceptions list allows invalid hostnames [Win]
bug 187508 [Core]-Follow "full keyboard access" setting in System Preferences
for tabbing navigation [Mac]
bug 250276 [Core]-right-click, cut of BM inside folder inside PT crashes [@
nsMenuPopupFrame::SetCurrentMenuItem ] (aviary) [Lin]
bug 275828 [Toolkit]-#ifdef MOZ_THUNDERBIRD statements in Extensions Manager
hose Sunbird [All]

One of these must have fixed something...

Revision history for this message
In , Greg Campbell (glc-bugs) wrote :

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050108
Firefox/1.0+

I checked the testcases and they are close, but I still notice a subtle
slowdown. I recently upgraded my motherboard and processor and all the
fixed-element slowdowns got significantly better from the hardware upgrade.

Someone with an older/slower machine should test this since that's where the
slowdown is most noticeable.

Revision history for this message
In , Aklitzing (aklitzing) wrote :

Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.8a6) Gecko/20050108
Firefox/1.0+

I still have slowdown with the testcases. But it is faster then my
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.8a5) Gecko/20041122

P2 450 Mhz

Revision history for this message
In , Bugzilla-spray (bugzilla-spray) wrote :

www.bungie.net is still slow for me, latest trunk build, Windows XP, Pentium 4,
3,2 ghz, ATI Radeon 9800XT

Revision history for this message
In , Mozillafirebird (mozillafirebird) wrote :

mine scrolls fine

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050109
Firefox/1.0+
Windows XP Home SP2
Pentium 4 2.53 GHz
80 GB HD
512 MB DDR Ram
ATI Radeon 9200 128 MB

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

About all the recent WFM comments:

1) If you're testing this with a relatively new machine, pull your task manager
up and check CPU usage. You may be surprised how much is going on, even if you
can't see it. See Comment 40.

2) Back when I was really trying to isolate this bug, it seemed like it only
started showing up after a certain something happened--fine up to a point, and
then suddenly slow--but I could never find out what that something was.

For what it's worth, the bungie site is still ridiculously slow for my machine
using Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050107
Firefox/1.0+

Should we update the URL to http://www.bungie.net/, since the w3c scrollbar site
doesn't (visibly) show this bug on most people's machines?

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Just noticed I was using the build you were complaining about, ColdFusion.
Unfortunately, I still get this even with today's build.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050109
Firefox/1.0+

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

Created an attachment (id=170761)
testcase with 100 fixed elements

Roughly the same testcase as before, just simpler, but with 100 fixed elements.

( after discussion what causes http://www.bungie.net/ to still be slow )

Revision history for this message
In , Mozillafirebird (mozillafirebird) wrote :

i have a fast computer, and on the regular test cases, it scrolls fine and the
cpu usage is at 2% (which a bunch of other programs running). the one with 100
fixed elements scrolls somewhat slower. barely noticable, and still only 2% cpu
usage. it seems that the new builds only minimize the affect of the fixed elements.

Revision history for this message
In , Uruviel-uruviel (uruviel-uruviel) wrote :

the tescase with 100 fixed elements scrolls notably slower on my pc (P4 1,6Ghz;
512MB DDR-RAM) with 20050110 Firefox/1.0+ . But if we look practicly
http://www.bungie.net/ is a site with over 30 fixed items, you can hardly call
that efficient coding. So you might wonder if the slow behavior of FF is not the
webdesigners fault

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

Created an attachment (id=170842)
transparent image for next testcase

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

Created an attachment (id=170843)
Testcase with 100 fixed transparent images

Wanna see slow.... ?

Revision history for this message
In , Miahzmiahz+bmo (miahzmiahz+bmo) wrote :

I see no noticeable difference between 1.0 and 20050110 on my 400MHz pII, 384MB
RAM, 16MB Nvidia TNT running at 1024x768x32.

For me the Bungie site is 2-3x slower than the "100 fixed transparent images"
test with either build, taking about 10 seconds per "scroll."

Revision history for this message
In , BK (knitterb) wrote :

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0

I'm noticing HORRIBLE performance in general with FireFox. I remember this back
in the Mozilla 1.6 days. It turned out to be a memory leak on that issue. When
running Horde (www.horde.org -- a web based mail client) the site refreshes
every 5 mintues. I'm just guessing here, but perhaps the meta refresh, or
javascript refresh, just isn't releasing the memory from the previous page.

After leaving my laptop (2.4 gHz w/ 1G memory) running for 24 hours, refreshing
away at my.yahoo.com and Horde, FireFox will gobble up almost 300M of memory.
Making it perform /really/ badly. On numerous occasions I've even had to just
kill the process.

I'm not sure how to provide debug information on what's being gobbled up, but
I'd happily perform some debug steps/logging for anyone whom needs it.

Cheers!

Revision history for this message
In , Henktiggelaar (henktiggelaar) wrote :

I visited a site today which pretty much brought my Firefox to it's knees
(20050117). I made a <a href="http://www.n3t.nl/mozbug/">minimal tescase</a> and
found something weird.

When I was making the testcase with Dreamweaver MX 2004 I found out the
scrolling speed improved. Closing Dreamweaver made it go slow again. Even after
I restarted my computer this behavior continued (having Dreamweaver open in the
background / minimized improved the scrolling speed of this page in Firefox).
Can anybody who has Dreamweaver MX 2004 confirm this?

Revision history for this message
In , Ger Teunis (g-teunis) wrote :

Testcases are still slow here too.
Perhaps the bug 265610 is getting duped now by the widening of this bug
(transparant images).

Revision history for this message
In , SteBo (stebo) wrote :

*** Bug 280794 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Matt Sicker (jvz) wrote :

Alright, not only is there a significant rise in CPU usage [still], there is
most likely a memory leak along with it. If I recall correctly, multiple tabs
or subsequent viewings of pages such as bungie.net have an after-effect of
larger memory usage (and commit charge? it doesn't seem to use the memory it
creates, hinting at a leak). I'd recommend somebody make some memory dumps of
Firefox for scrolling on a normal page (like this one) and ones for pages with
massive amounts of overhead-inducing elements (such as bungie.net).

Also, if anyone could test this using a debug version of FF (enable/create the
debugs for any possible pages that include the code that may be inducing this)
and check back with us.

We should also try to find any other programs that improve or lag the
performance while doing so. This may seem like a bit of work to do (it is if
you're not used to debugging things...), but the fact that we haven't found what
is actually causing this bug yet after _almost_2_years_ calls for some major
hacking.

Primary areas to check: anything to do with page drawing, including the XUL bits
and CSS-related bits. Also, check the JavaScript core pages that include the
functions used to simulate position-fixed scrolling and the frameset-related
core bits as these two methods of pseudo position-fixed elements appear to work
in a more orderly and optimized manner.

~Matt

Also, would Mr. McCormick please add an alias to this bug, maybe
"position-fixed"? Thanks.

Revision history for this message
In , Bugs-caleb (bugs-caleb) wrote :

What about this page:
http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS_2.html

The scrolling is dead slow, in fact, it's unbearable.

Revision history for this message
In , Ivan Icin (ivanii) wrote :

(In reply to comment #78)
> What about this page:
> http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS_2.html
>
> The scrolling is dead slow, in fact, it's unbearable.

It is very smooth for me. Maybe cause I'm using more up-to-date version:
Gecko/20050326 Firefox/1.0+

Revision history for this message
In , Ask-swva (ask-swva) wrote :

The problem with declaring that a testcase works or not is that this effect is
resolution-dependent. The most recently mentioned testcase scrolls horribly for
me at 1600x1200, which I use normally, but if I resize the window to say,
800x600, it works fine. It's not a version issue since I'm using Gecko/20050404
Firefox/1.0+

Revision history for this message
In , Ozeki (turkmanzone) wrote :

(In reply to comment #78)
> What about this page:
> http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS_2.html
>
> The scrolling is dead slow, in fact, it's unbearable.

It works pretty fine with my version of FF (Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2).

I think the worse ever case is http://www.bungie.net and by far.

Revision history for this message
In , Tim Kosse (tim-kosse) wrote :

I have observed something interesting:
It only seems to happen for me if I have enabled ClearType font antialiasing.
With normal or disabled font antialiasing, scrolling speed is bad to normal,
same speed as with Internet Explorer.

Tested with FF 20050410 nightly trunk under Windows XP SP2.

Revision history for this message
In , Bugs-caleb (bugs-caleb) wrote :

(In reply to comment #79)
> (In reply to comment #78)
> > What about this page:
> > http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS_2.html
> >
> > The scrolling is dead slow, in fact, it's unbearable.
>
> It is very smooth for me. Maybe cause I'm using more up-to-date version:
> Gecko/20050326 Firefox/1.0+

In fact, you are using an outdated version.
I'm using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050410
Firefox/1.0+

And that www.bungie.net site scrolls just as slow as the link I posted.

Revision history for this message
In , Ozeki (turkmanzone) wrote :

(In reply to comment #83)
> (In reply to comment #79)
> > (In reply to comment #78)
> > > What about this page:
> > > http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS_2.html
> > >
> > > The scrolling is dead slow, in fact, it's unbearable.
> >
> > It is very smooth for me. Maybe cause I'm using more up-to-date version:
> > Gecko/20050326 Firefox/1.0+
>
> In fact, you are using an outdated version.
> I'm using:
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050410
> Firefox/1.0+
>
> And that www.bungie.net site scrolls just as slow as the link I posted.

I confirm. I just installed the latest trunk release from Burning Edge (
Gecko/20050405 Firefox/1.0+) and there is an HUGE improvement in the scrolling
of bungie.net.

But FF 1.0.2 was very slow. There's still a little lag in the scrolling of
pages, but it's definitively smoother now. :)

Revision history for this message
In , Ericeberg (ericeberg) wrote :

(In reply to comment #84)
> I confirm. I just installed the latest trunk release from Burning Edge (
> Gecko/20050405 Firefox/1.0+) and there is an HUGE improvement in the scrolling
> of bungie.net.
>
> But FF 1.0.2 was very slow. There's still a little lag in the scrolling of
> pages, but it's definitively smoother now. :)

I can vouch for this as well. The scrolling on the pages referenced (bungie.net,
euronet.nl, testcases) is very smooth now, and better than comparable to IE6.
Using Gecko/20050413 Firefox/1.0+

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Who knows why, but the last two comments are absolutely right!
Current trunk builds are displaying these much, much better than previous ones.
Bungie and the euronet.nl site both still consume 100% CPU on my machine, but
scroll (relatively) smoothly.

The original test cases all scroll beautifully, with negligible (~2%) CPU use. I
would probably have to consider this fixed :)

Oddly enough, though... I did some testing using variations of the 100-div test
case (11 divs, 22, 33, etc) and found that CPU use stays that low until about 25
fixed divs are present. After that, I get odd spikes, until at 30 I have pretty
much solid 50% or above usage. From there it rapidly hits 100%, but (as seen in
the bungie site) even with huge numbers of such elements, the 100% usage doesn't
translate to poor performance. Yay!

I wonder why CPU use is behaving so oddly... I'd have expected something more
linear. It feels like it's having to "clean up" after drawing a certain number
of frames, and as you increase the amount of drawing it has to keep track of,
that cleanup becomes less erratic and more constant. Then again, I have no idea
what I'm talking about. =P

In other news, I think the change comes from bug 205893, and after reading
through that one and bug 284978, I think I have an idea of what's going on in
the above two paragraphs, too. That's all I have time for tonight though. I
guess I would consider this resolved.

Revision history for this message
In , Ericeberg (ericeberg) wrote :

On the other side of the coin, the latest Mac builds of Firefox and Camino (the
20050413 builds) are still horrendously slow on these sites (this is a 700MHz G4
iMac with 10.3.8), so I wouldn't resolve this bug just yet. This could be
related to issues with Quickdraw; nevertheless, I think this bug deserves more
investigation. Even sites like Gamespot (http://www.gamespot.com/) lag a bit due
to all the multimedia (graphics, flash, etc.).

Revision history for this message
In , Steve-england (steve-england) wrote :

Is position:fixed is the same as background-attachment:fixed?

I only ask because www.warp2search.net is a scrolling nightmare (make sure you
are not blocking ads if you want to observe the poor scrolling). But on removing
background-attachment : fixed;
from body { ) definition in style.css - the page goes from scrolling nightmare
to fast & responsive.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

That would be bug 90198. Since they've shown up (and not shown up!)
independently of each other, I think they're two entirely different problems.

Revision history for this message
In , Jfftck (jfftck) wrote :

Created an attachment (id=192468)
Testcase that shows how the fixed elements should act

I think this should stay open until fixed elements act the same as elements
objects with a scrolling element under it. This testcase will also work in IE
and shows that normal scrolling can happen with elements that don't move.

Revision history for this message
In , Jfftck (jfftck) wrote :

It is like the fixed elements are on a different paint event compaired to all
other elements. I don't know anything else that would cause fixed elements to
lag behind all other elements. I also would not write-off this bug just because
faster computers don't show this bug being that bad. Right now Microsoft is
writing-off all OSs under XP, we should not do the same.

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

We understand exactly what the issues are here. They're just not going to be
fixed for 1.8. 1.9 should be a lot better.

Revision history for this message
In , Marcia-mozilla (marcia-mozilla) wrote :

Seen using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) Gecko/2007050903 Firefox/2.0.0.4. I have seen this before during testing on Vista as well.

1. Navigate to amazon.com front page
2. Scroll up and down and pay particular attention to the alignment of the text on the right hand side of the page.

As I scroll up and down, the text loses it alignment. When the scrolling stops, everything realigns fine.

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

I can't reproduce this with a branch build on Windows. Does this happen on the trunk?

Revision history for this message
In , Marcia-mozilla (marcia-mozilla) wrote :

I can't recall if I tried it on the trunk, but I will. It is a funny bug in that it is difficult to reproduce, but Gerv was actually standing over my shoulder the least time I reproduced it on Vista.

(In reply to comment #1)
> I can't reproduce this with a branch build on Windows. Does this happen on the
> trunk?
>

Revision history for this message
In , Milan-burda (milan-burda) wrote :

I am experiencing this problem, as seen on this screenshot:
http://img.photobucket.com/albums/v647/mu-lan/scrolling.png

It happens both in Firefox 2.0.4 and in the lastest trunk build of Firefox 3.0

It is very obvious on this page:
http://trainofthoughts.org/blog/2007/06/24/openpkg-apache2/

System: Windows XP SP2, Athlon XP 2600+, 1.5 GB RAM, ATI Radeon 9600 XT

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

Milan, I don't think this is the same bug. Actually, I think you're basically experiencing bug 201307.

Revision history for this message
In , Milan-burda (milan-burda) wrote :

Hi, I've been redirected from
https://bugzilla.mozilla.org/show_bug.cgi?id=380181

to this bug regarding a problem with text scrolling on a page with fixed background, where part of the text on the right side is aligned incorrectly in the vertical direction while scrolling and after stopping the scrolling, it gets back to the correct position as seen on the screenshot:
https://bugzilla.mozilla.org/show_bug.cgi?id=380181

this can be observed in both Firefox 2.0.4 and in the latest trunk build
on this page for e.g.:
http://trainofthoughts.org/blog/2007/06/24/openpkg-apache2/

System: Windows XP SP2, Athlon XP 2600+, 1.5 GB RAM, ATI Radeon 9600 XT

Revision history for this message
In , Milan-burda (milan-burda) wrote :

(In reply to comment #4)
> Milan, I don't think this is the same bug. Actually, I think you're basically
> experiencing bug 201307.
>

I'm sorry. I posted it into bug bug 201307 now.

Revision history for this message
In , Mak77 (mak77) wrote :

WFM
Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Revision history for this message
Nicolò Chieffo (yelo3) wrote : slow scroll

Binary package hint: firefox

firefox 2.0.0.4+2-0ubuntu3

I've found that scrolling is slow in all sites (comparing to windows), but really slower in sites where there is a static image that does not move when I scroll
this is a css example

body { background-color: #fff;
background-image: url("images/rubric/gradient.gif");
background-attachment: fixed;
background-position: bottom;
background-repeat: repeat-x; }

site example:
www.starcraft2.com
http://railsdojo.wordpress.com/

this problem is empathized when using compiz.
The problem is present with both radeon and nvidia video cards, even when compiz is disabled

This problem is less invasive if using firefox downloaded from mozilla.com (without ubuntu patches) or swiftfox, but it is still present
Scrolling in windows XP is really faster (when I say really I mean at least 10x in the starcraft site, which is the site that has most slowdown problems), even in sites that does not have a background image

Other tests
konqueror 3.5.7-1ubuntu10: much more reactive in http://railsdojo.wordpress.com/ and normal sites, but slower in www.starcraft2.com
epiphany 2.19.5-0ubuntu1: same slowdown as firefox

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I've just installed fedora 7 and scrolling is very smooth in all sites except starcraft2.com
I think that there is an ubuntu patch that increases the heaviness of scrolling!

Nicolò Chieffo (yelo3)
Changed in firefox:
status: New → Confirmed
Changed in firefox:
status: Unknown → New
Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

http://www.oakparkfoundation.org/

look at this site:
granparadiso and firefox downloaded from mozilla site can scroll it
really faster!

There should really be a problem with an ubuntu patch at all!

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Using MOZ_DISABLE_PANGO=1 the situation really improves much

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: slow scroll with image in the background

(But it is still not windows like)

Changed in firefox:
status: Unknown → New
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

none of the subscribers see this problem?

Revision history for this message
Santiago Pontiroli (santiagomp) wrote :

I agree that the scrolling is really jerky and slow. I have NVIDIA card and firefox 2.0.0.6.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

not sure if it is an xorg or a firefox problem, so adding xorg to the packages

Nicolò Chieffo (yelo3)
description: updated
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

going back to new, to see if I can get some developer attention

Changed in firefox:
status: Confirmed → New
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I would also like to tell you that the same problem happens if I have multiple frames, and I scroll in one of them!

Revision history for this message
John Vivirito (gnomefreak) wrote :

If running "MOZ_DISABLE_PANGO=1" to launch firefox and it improves this is most likely not an X org issue its more of a "pango slowing ffox down"
Assigning mozilla-bugs to this, People are seeing this in firefox 3.0?

Revision history for this message
John Vivirito (gnomefreak) wrote :

Marking this as confirmed as it is being triaged upstream.
Importantce to low as it isnt causing other issues like crashing.
Assigning mozilla-bugs

Changed in firefox:
assignee: nobody → mozilla-bugs
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

Who is seeing this on firefox 3.0? Where did you get firefox 3.0? do you see this with upstream firefox3.0?

Changed in firefox-granparadiso:
assignee: nobody → mozilla-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
John Vivirito (gnomefreak) wrote :

I see nothing that makes this an xorg issue at all.

Changed in xorg:
status: New → Invalid
Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

Hello John, I see this with firefox 3 too, either downloaded from
ubuntu or the mozilla website.
running it with MOZ_DISABLE_PANGO=1 does NOT fix the problem, just a
little performance increase.

I also think it is a firefox bug, since it happens with nvidia and ati hardware.
upstream has not yet replied to by bug.

Revision history for this message
John Vivirito (gnomefreak) wrote : Re: slow scroll with image in the background

ok thank you for the response i will finish up workinng what im on and see wha ti cant find out sometime this week about this issue, is the inscrease in proformance differetn from 2.0 and ffox3.0?
We (the ubuntu-mozillateam are getting ready to launch the latest firefox 3.0 to ubuntu repos so i would really like people to test this, but not sure when it will be pushed to repos.

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

First of all: do you have this problem?

secondly, the only difference between 3.0 and 2.0 is that 3.0 is really slower!
you can't almost scroll in this site... http://www.oakparkfoundation.org/

in both versions the cpu usage is pushed to 100% for the duration of
the scrolling

Revision history for this message
H5N1 (h5n1-vir) wrote : Re: slow scroll with image in the background

Hi everybody,
I'm new here.
I'm developing pages with background images and I can confirma that background images slow down the rendering of the pages while scrolling it down.
Maybe some information can be of use:
1 - no matter if the image is png or gif: the CPU usage while scrolling grows up...
2 - no matter if the background is tiled or absolute or fixed: i tried with a 800x1 px tiled gif and png image (with transparency) and increase vertical size to 1024 and next to 2048 px to avoid tiling... the problem didn't fix
3 - no matter if the background is attached to the body or a subtree DOM element (such a DIV): if it fullfill the page the problem occurs

I think this is a Gecko problem because I tried several kind of Gecko based browser without notice differences.
I'm sad to admit that Opera and IE can render my page more and more speedly...

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

I'm sure that the problem is not only caused by a background image.
Could you try with frames? in my cese frames are slow too, but this
might be another problem. I whould like to know if you have this too.

Revision history for this message
H5N1 (h5n1-vir) wrote : Re: slow scroll with image in the background

Are there images in the frames?
No need to try: Firefox runs at normal speed in websites using frames and iframes too.
I don't use frames and iframes 'cause I develop my pages in XHTML 1.1 and they're depracated (fortunally: one less problem)
Scrolldown is not affected by this "symptoms" if the scrolling frames has no background image and little number of images.
Problems come out when the use of images are conspicuous or if you have a background image.

Maybe the problem can be connected to images no matter if they're backgrounds or not: simply a background big image (or a tiled one) require too much resource to run at a normal speed just like many images on the page.

Revision history for this message
H5N1 (h5n1-vir) wrote :

I forgot to say that I check and tested this issue on Windows Xp Sp2 (patched), Ubuntu 7.04 and Slackeware 12.0 (patched).
I een tryed Firefox 2.0.0.7 (on Slack an unofficial reease) and Deerpark Alpha 2.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

On Sat, Oct 13, 2007 at 06:09:01PM -0000, H5N1 wrote:
> I forgot to say that I check and tested this issue on Windows Xp Sp2 (patched), Ubuntu 7.04 and Slackeware 12.0 (patched).
> I een tryed Firefox 2.0.0.7 (on Slack an unofficial reease) and Deerpark Alpha 2.
>

If this is a gecko bug then it has probably been improved in firefox
3.0. We provide a (not stable) preview package in gutsy universe
now. Try to install the firefox-3.0 package in latest gutsy and let us
know if the peformance is better.

Thanks,

 - Alexander

Revision history for this message
Linus Mannervik (glitter) wrote : Re: slow scroll with image in the background

I can confirm the same problem with firefox-3.0.

Revision history for this message
H5N1 (h5n1-vir) wrote :

I'm now sure it's not an Ubuntu issue: probably it's a Gecko images-related-memory-leak.
I tried also using other Desktop Environment (lighter ones like XFCE) to avoid graphic memory usage, and also with Firefox lite (no plugins, no addons, nothing alse than Gecko UI): problem's still here! :)

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

Yes, ff-3.0 has the same problem, as epiphany, as swiftfox (firefox optimized)

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I want to add a thing: the problem is not related to images (in the
sense of .gif .jpeg .png...) but also for things that appear, and do
not move during scrolling. an example of this is when in gmail, you
open the first post of a very long series of emails with the same
subject: at bottom right there is a small box with the name of the
sender of the following email. here's a screenshot.

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: slow scroll with image in the background
Revision history for this message
In , calmar (mac-calmar) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007101704 Minefield/3.0a9pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007101704 Minefield/3.0a9pre

Simple scrolling takes very long and 100% CPU

Reproducible: Always

Steps to Reproduce:
1. try to scroll on the example page mentioned
2.
3.
Actual Results:
takes 100% cpu and is very slow (therefore)

Expected Results:
(normal) fast scrolling without 100% CPU usage just for that

Revision history for this message
Tinos (tinos-nitsopoulos) wrote : Re: slow scroll with image in the background

I've solved the problem as far as I'm concerned. I just disabled smooth scrolling in Edit > Preferences > Advanced > General > Browsing. I think Konqueror and Epiphany worked fine for me because they don't have smooth scrolling.

Revision history for this message
H5N1 (h5n1-vir) wrote :

This is a good workaround, but... a workaround! :)
I think that renouncing some features or functions of a program couldn't be assumed as a solution.
But I think also that, for now, it's the only thing working.

From my PointOfView the problem is still there because I'm a kind of developer.
I cannot ask to the visitors of a site to disable a feature of the Browser for a better view! :D

Revision history for this message
Tinos (tinos-nitsopoulos) wrote :

It seems I was mistaken...

That third link, the oakparkfoundation one, goes slow whether you enable or disable smooth scrolling (actually it seems to run better with it on!). However it works fine in Konqueror.

Just out of curiosity I booted up the xp virtual machine (using VMWare) and installed Firefox. The smooth scrolling is disabled by default on the Windows version. The oakparkfoundation link runs fine with the default settings, but when you enable smooth scrolling it goes a bit slow (but still not as slow as in ubuntu Firefox).

Ironically the site has a "viewable with any web browser" logo on it haha. Hopefully this isn't too common, or else I'll be switching to Konqueror!

Revision history for this message
H5N1 (h5n1-vir) wrote :

OT:
     I'm waiting for the porting of KDE4 apps to Win! :D
     I've just installed Firefor, Opera, IE6 (eolas version), IE7, Safari and lynx on WIN and
     Konqueror (obviously), Oakpark, Firefox and Opera on both Ubuntu and Slackware 12...

Back to the point: "viewable with any web browser"? Yesssss, it's "viewable" but not gentle :)
Sorry for the little misunderstand, even if I think it was only partial: this bug, aniway, keep me away from building richness website in graphics terms :)
So I have to surrender and leave my beautiful backgrounds :)

Revision history for this message
In , Nicolò Chieffo (yelo3) wrote :

*** Bug 394005 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Nicolò Chieffo (yelo3) wrote :

I run firefox 2.0.0.8 in ubuntu gutsy. I have both radeon and nvidia cards, and I tried opensource and proprietary drivers. This problem is very annoying and it is present in GMAIL, with the fixed element that shows the name of the following sender, when opening a long discussion.

Revision history for this message
André Klitzing (misery) wrote : Re: slow scroll with image in the background
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
In , Fondacio (fondacio) wrote :

I've been following this bug for quite a long time. I used to experience it a lot, but after some hardware upgrades many of the pages linked here, as well as the testcases, scroll at an acceptable speed (current setup: WinXP Pro SP2, P4 3.0 GHz with hyperthreading, GF 6600GT, 1.5 GB RAM (although no difference with when I had 512 MB)). However, the following page is still extremely slow:

http://forum.viva.nl/forum/list_topics/1

Both IE7 and Safari hardly have problems with it. In IE7 the text jumps up and down similar to in Firefox, but not as much. Safari is really smooth. I'll try my Linux partition later but expect the same results.

Revision history for this message
In , Milan-burda (milan-burda) wrote :

I think that someone should actually start solving this nasty problem,
as it is obvious that it is a problem...
I don't see a point in posting even more reports that oh I can see it too...
It is a bug in the code, It doesn't matter which graphics card you have, ... etc.
As Windows XP is the biggest platform (Vista is afftected) too, it's quite serious.

Revision history for this message
wkatze (wkatze) wrote : Re: slow scroll with image in the background

I've had a similar problem: The site had a few elements with a 1x1 pixel transparent background png and was not scrolling but jumping, continued to scroll a bit (was "laggy") and the cpu load jumped up to 100%. Changing the image size to 50x50 pixel fixed the problem.

Revision history for this message
In , Mara-chlup (mara-chlup) wrote :

Created an attachment (id=303709)
Firefox 3b3 very very slow scrolling!!! (Firefox 2 scrolling fast)

"position: fixed;" is very importan for top menu on intranets. Browser is not good for intranets, when scrolling very very slow.

Revision history for this message
In , Bugzilla3 (bugzilla3) wrote :

(In reply to comment #98)
I'm afraid this testcase will be worksforme for many users. I, for, one, see the same behaviour (i.e. no problem) with FF 2.0.12 and FF 3.0b3 on Win XP, Core Duo 1.8GHz, Nvidia Geforce 7600GS (a run of the mill machine, for today's standards)

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008021623 Minefield/3.0b4pre ID:2008021623

all testcase WFM except the last one with the large/huge table, which isn't really this bug

Revision history for this message
In , Joh-walt (joh-walt) wrote :

Huh? Ok, no testcase but realworld page--what about: http://www.assoziations-blaster.de/info/Physiker.html
It's slooow in Seamonkey and FF (both recent trunk) and blazingly fast in Opera.

Revision history for this message
In , Gandalf-aviary (gandalf-aviary) wrote :

Huh?
Peter: how can you call it "not a bug"? The last testcase works extremely slow on Gecko trunk, and very well on Firefox 2.

If that's not a regression bug than what? "feature"?

Revision history for this message
In , Pascalc (pascalc) wrote :

the one with 100 positionned elements is definitely choppy and eats 100% CPU while scrolling (tested with Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9b4pre) Gecko/2008021404 Minefield/3.0b4pre ID:2008021404). Works perfectly on the same machine which has decent current hardaware (core 2 duo 2Ghz, 2GB ram, Nvidia 8400M card) with Firefox 2, so this is a performance regression.

Revision history for this message
In , Peter-vanderwoude (peter-vanderwoude) wrote :

(In reply to comment #102)
> Huh?
> Peter: how can you call it "not a bug"? The last testcase works extremely slow
> on Gecko trunk, and very well on Firefox 2.
>
> If that's not a regression bug than what? "feature"?
>
That testcase is a bug, but not this one.
Large tables suck when scrolled, it has nothing to do with position:fixed

Revision history for this message
In , Pascalc (pascalc) wrote :

The testcase that is performing badly for me is the one with 100 positionned transparent images, not the one with 100 positionned empty so it looks like it is not due to the positionning of elements but to the alpha channel of images.

Revision history for this message
In , Gandalf-aviary (gandalf-aviary) wrote :

(In reply to comment #104)
> That testcase is a bug, but not this one.
> Large tables suck when scrolled, it has nothing to do with position:fixed

Let me repeat. The testcase with huge tables works very well and smooth on Fx2. It scrolls choppy on recent trunk.
I call it a regression and even if there are other issues with big tables, this one is another to put on the stack.

Revision history for this message
In , Gandalf-aviary (gandalf-aviary) wrote :

I also tried to turn off position:fixed on the huge table testcase and it does help.

Revision history for this message
In , Mara-chlup (mara-chlup) wrote :

Created an attachment (id=303996)
Firefox 3b3 very very slow scrolling!!! (Firefox 2 scrolling fast)

Now, I attach new version - table is bigger and scrolling is slower. See Cpu usage and compare Firefox 3b3 with Firefox 2.

For user with ~1.5GHz CPU it is big problem! For Linux terminal server it is big problem!

"position: fixed;" is very importan for top menu on intranets. Browser is not
good for intranets, when scrolling very very slow.

Revision history for this message
In , Zurtex (zurtex) wrote :

Shouldn't a regression like this be blocking or something? It seems like a pretty big step back.

I'm told this is A LOT worse than Firefox 2...

Revision history for this message
In , Bugzilla3 (bugzilla3) wrote :

Indeed FF3 shows a scrolling performance regression for very large tables but it has nothing to do with THIS bug, as other posters already noted. Please look at bug #54542 which is a 'meta' bug for all large table perfomance issues. There are decent test cases in bug #54542 that would stress even modern machines. Perhaps you may open a new bug and make bug #54542 depend on it. I'm obsoleting the last unrelated testcase.

Revision history for this message
In , U-contact-rowanw-com (u-contact-rowanw-com) wrote :

I've discovered that the height of my browser window affects the scrolling performance, the shorter the window is the smoother the scrolling, the taller the window is the slower the scrolling.

I decided to try changing the height of my Firefox window by a few pixels at a time until the performance dropped to an unacceptable level (noticeable jerkiness), this ended up being roughly 820 pixels.

This was my test page: http://www.developmentseed.org/

Specs:
Minefield 3.0b4pre (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008030206 Minefield/3.0b4pre)
Windows XP SP2
Celeron CPU 3.06GHz
2GB of RAM
GeForce 7300 GS
Screen resolution: 1280x1024

Revision history for this message
Alexander Sack (asac) wrote : Re: slow scroll with image in the background

is this still happening in firefox-3.0 beta 3 (hardy)?

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

Yes

Revision history for this message
Ryan Stonecipher-Fisher (ryan-stonecipher-fisher) wrote : Re: slow scroll with image in the background

As far as hardware variants go, I am experiencing this problem on an intel 915g chipset. It does not seem to be a problem unique to specific video card. It is occurring for me in Firefox 3 Beta 4 on hardy heron on a machine that ran Firefox 2 in gutsy gibbon quite well.

Revision history for this message
ligaard (kasperligaard) wrote :

I have the same problem. As a few extra examples where it is really bad for me, try the following urls (which are smooth in Firefox on Windows and Mac, but slow in Ubuntu):

- http://simile.mit.edu/exhibit/examples/presidents/presidents-2.html
- http://simile.mit.edu/timeline/examples/dinosaurs/dinosaurs2.html

But just scrolling a webpage using the arrow up/down keys is quite a jerky experience.

Revision history for this message
ligaard (kasperligaard) wrote :

I just installed Opera in Hardy Heron. It works perfectly with the 'presidents' and 'dinosaurs2' examples given above. Firefox 3 is still slow and jerky. So it seems to be an issue isolated in Firefox, not a OS platform issue.

Revision history for this message
ligaard (kasperligaard) wrote :

Could this be a GTK issue? I just observed that opening 'Gnome System Monitor', then chosing it's 'Resources' tab (the one showing graphs of load and memory usage) shoots X load to 50% (from 5-10%). At the same time Firefox becomes very jerky, e.g. scrolling is jerky, typing in textareas is jerky etc. Switching away from the 'Resources' tab in 'System Monitor' makes everything nice again.

I have a theory, that this could be a Cairo issue: Since the graphs in the new 'System Monitor' uses Cairo. Opera does not use Cairo and it works perfectly. It might be a driver/Cairo combination issue. I use the Nvidia 'restricted' drivers.

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

Is there a way to disable cairo in firefox with an environmental variable?

Revision history for this message
ligaard (kasperligaard) wrote : Re: slow scroll with image in the background
Revision history for this message
ligaard (kasperligaard) wrote :

In this Mozilla developers blog[1], he talk about pixman library being slow and being optimized at the moment. He says Linux will have to wait for the speed improvements until the X server is upgraded.

I am guessing here, but at least it could explain why Firefox is fast in Windows and not in Ubuntu, and also why Opera is fast on Linux as they use their own pixel manipulation code.

[1] Blog entry http://blog.vlad1.com/2008/03/18/a-little-more-cairo-just-for-you/

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image in the background

On Fri, Feb 22, 2008 at 01:27:01PM -0000, Wouter Stomp wrote:
> ** Changed in: firefox-3.0 (Ubuntu)
> Sourcepackagename: firefox-granparadiso => firefox-3.0
>

Does this happen with all images in the background or just with
tiled-images ?

 - Alexander

Revision history for this message
In , Dave (fehe) wrote :

Here's a site that's really bad: http://www.theloudspeakerkit.com/shop/

Revision history for this message
In , Bugzilla3 (bugzilla3) wrote :

(In reply to comment #112)
> Here's a site that's really bad: http://www.theloudspeakerkit.com/shop/

The above testcase is worth examining and doesn't seem to be affected by factors unrelated to this bug.

Revision history for this message
FriedChicken (domlyons) wrote : Re: slow scroll with image in the background

In wondered why scolling in GMail was so slow. As I found out, it uses fixed-tables. So it is not only a problem with images.

Revision history for this message
FriedChicken (domlyons) wrote :

Only the new GMail interface https://mail.google.com/mail/?ui=2 has got this problem. The old interface https://mail.google.com/mail/?ui=1 scrolls faster but the rendering isn't correct ...

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

We can use gdk_window_move_region to scroll partial rects on GTK2 to speed up fixed-pos painting the same way we do on Windows. See discussion in bug 382392.

Revision history for this message
In , Hans L (thehans) wrote :

I can confirm this issue with Firefox 2.0.0.13 on Ubuntu Gutsy 7.10.

Previous attachment: https://bugzilla.mozilla.org/attachment.cgi?id=133309 is a good simple example that exhibits this issue for me.

Revision history for this message
In , Hans L (thehans) wrote :

I forgot to mention, I came across this bug after having issues mainly in Gmail, with the box showing the name of the sender in the next reply (mentioned in comment # 95), and also the "Loading..." box that shows at the top of the screen while loading a long thread.

Sorry for the double post.

Revision history for this message
Fabien Tassin (fta) wrote : Re: slow scroll with image in the background

For gmail ui=2, this seems fixed upstream since today: https://bugzilla.mozilla.org/show_bug.cgi?id=424915

Revision history for this message
John Vivirito (gnomefreak) wrote :

Marking 3.0 as confirmed due to upstream comments.

Changed in firefox-3.0:
status: Incomplete → Confirmed
Revision history for this message
In , Johan Douma (johandouma) wrote :

Created an attachment (id=315511)
Demonstration: html file with big tables + css file

Revision history for this message
In , Johan Douma (johandouma) wrote :

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9pre) Gecko/2008041306 Minefield/3.0pre
But it's been like this on at least the few last builds.
I'm using Vista SP1, Core 2 Duo T7500 2.2, 2gig of ram, 8400gt.

I just added a new attachments which demonstrates the slow down.

The html file contains very large tables but speed is very good if there isn't a fixed div, so I don't think this is related to bug #54542.

With only one (unlike comment #105) fixed div in the page 2008041306 Minefield/3.0pre is really slow, whereas Firefox 2 doesn't have any trouble displaying this page, not slow down at all compared to minefield. Safari and Opera are faster than Firefox 2 on this page as expected.
Even if there is a lot of code, Minefield stops using resources as soon as the position of this div is changed. It's h2#dateTitle{ on line 424 in the css file.
Firefox 2 is a bit slower if that div has a fixed position but it's nothing compared to the slow down occurring in minefield.

I first thought it was the transparent png used as background but removing it didn't change anything (bug #105).

As Rowan said in comment #111, there is a big improvement when the window is resized to a smaller size, but with a lower height, about 500px, but that's probably normal as it's a lot smaller window and faster to generate.

I don;;t have any problem in gmail, as other poeple talk about it early but that's probably not related. Probably Bug #424915.
I don't know about minefield on mac, I'll have a look tomorrow.

Revision history for this message
Adam Niedling (krychek) wrote : Re: slow scroll with image in the background

Scrolling was very slow for me until today. maps.google.com was really slow. I just noticed today that it's working nice now. There was about a 70 packages update today.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image in the background
  • unnamed Edit (827 bytes, application/pgp-signature; name="signature.asc")

On Fri, Apr 11, 2008 at 12:09:46PM -0000, John Vivirito wrote:
> Marking 3.0 as confirmed due to upstream comments.
>
> ** Changed in: firefox-3.0 (Ubuntu)
> Status: Incomplete => Confirmed
>

ffox 2 won't see fixes in this direction anymore. closing target ...

 affects ubuntu/firefox
 status wontfix

 - Alexander

Changed in firefox:
status: Confirmed → Won't Fix
Revision history for this message
Bastiaan (kweetwel) wrote : Re: slow scroll with image in the background

Even when the page has been loaded correctly and fully, even this page is scrolling down slow. I'm using Firefox 3 beta 5.

Revision history for this message
ligaard (kasperligaard) wrote :

It seems that Firefox for Linux just has a bad implementation, but that GDK provides the needed primitives to fix the problem. See: https://bugzilla.mozilla.org/show_bug.cgi?id=382392#c34 and it's follow-up
https://bugzilla.mozilla.org/show_bug.cgi?id=427431.

As a work-around you can run Firefox in Windows XP on vmware on Ubuntu 8.04 and it will be WAY FASTER than using it directly in Ubuntu! :-p

Revision history for this message
John Vivirito (gnomefreak) wrote :

A better work around would be to use another browser until it is fixed and most important bugs will be fixed before release and we are getting close to that.

Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
Lulu58e2 (cwmaguire) wrote : Re: slow scroll with image as background-repeat

I re-installed my proprietary video drivers (fglrx - Catalyst 8.4 for Linux x86_64) for ATI HD 2600 and now firefox is scrolling smoothly.

Revision history for this message
ligaard (kasperligaard) wrote :

At Lulu58e2:

Did you try out these to links:
- http://simile.mit.edu/exhibit/examples/presidents/presidents-2.html
- http://simile.mit.edu/timeline/examples/dinosaurs/dinosaurs2.html

The "timeline"-widgets scroll smoothly in Opera (any platform) and Firefox on Windows. Do they scroll smoothly for you?

Revision history for this message
ligaard (kasperligaard) wrote :

The demos here: http://ejohn.org/blog/processingjs/ work smoothly on Firefox in Windows (run on a Windows XP inside a VMWare on top of Ubuntu 8.04).

In Ubuntu 8.04, Firefox 3 spikes to processor to almost 100% and the movement it jerky.

Furthermore, when running in Firefox in a virtualized Windows on top of Ubuntu, it uses half the CPU resources compared to Firefox running directly in Ubuntu..!

Revision history for this message
Darik Horn (dajhorn) wrote :

My fix for the Firefox 3 slow scrolling glitch on Ubuntu 8.04 Hardy was to re-add this section to my /etc/X11/xorg.conf file after running in safe mode:

Section "Module"
        Load "dbe"
        Load "extmod"
        Load "fbdevhw"
        Load "glx"
        Load "record"
        Load "freetype"
        Load "type1"
        Load "dri"
EndSection

The module section may be absent if the xorg.conf file is regenerated during safe mode or some other event. Modules like DRI should be automatically loaded, but I needed to force them in to get the necessary acceleration.

The slow scrolling happens for me on Dell Latitude laptop computers with ATI Radeon video chipsets using the default xorg.conf configuration.

Revision history for this message
ligaard (kasperligaard) wrote :

It is a Firefox issue on Linux (Ubuntu) only. Graphics handling on my Ubuntu 8.04 machine works great, a few examples:

1) Google Earth 4.2 render smoothly - even with sunsets over 3D-textured houses in Munich (Germany).
2) Opera renders the examples given above fluently.
3) Firefox running virtualized in Windows on VMWare on Ubuntu renders the demo-pages fluently.
4) Compiz effects - full bells'n'whistles - renders fluently.

To conclude: This issue can not be solved by adding a module section to xorg.conf. The culprit is Firefox on Linux (maybe just Ubuntu, cf. 1st comment in this issue).

Revision history for this message
André Klitzing (misery) wrote :

No, I have the same issue on Arch Linux, too. It isn't only an Ubuntu problem.
Tested: Firefox 3 Beta 5 (vanilla; no patches) on amd64

Revision history for this message
John Vivirito (gnomefreak) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

André Klitzing wrote:
> No, I have the same issue on Arch Linux, too. It isn't only an Ubuntu problem.
> Tested: Firefox 3 Beta 5 (vanilla; no patches) on amd64
>
>
This is an upstream issue its a GFX i just cant seem to find the right
bug anymore but vlad was working on it upstream. When i find it i will
add it to bug.

--
Sincerely Yours,
    John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

Revision history for this message
Alexander Sack (asac) wrote :

On Fri, May 09, 2008 at 11:01:41PM -0000, John Vivirito wrote:
> André Klitzing wrote:
> > No, I have the same issue on Arch Linux, too. It isn't only an Ubuntu problem.
> > Tested: Firefox 3 Beta 5 (vanilla; no patches) on amd64
> >
> >
> This is an upstream issue its a GFX i just cant seem to find the right
> bug anymore but vlad was working on it upstream. When i find it i will
> add it to bug.
>

This is a pretty generic bug title so for some it might not be the
border bug. That bug would be
https://bugzilla.mozilla.org/show_bug.cgi?id=424423.

Another reason for slow rendering might be the well-known bugginess of
drivers that use XAA accelleration.

Last but not least performance could be improved by
https://bugzilla.mozilla.org/show_bug.cgi?id=427431 which is linked to
this bug.

 - Alexander

Revision history for this message
Peter Lombardo (pglombardo) wrote : Re: slow scroll with image as background-repeat

The scrolling improves alot if you set general.smoothScroll to false in about:config.

I hit this issue at http://www.timothysykes.com/ with Firefox 3.0b5 unmasked Gentoo package. (I run Gentoo)

The performance was atrocious to the point of unusable - disabling smooth scrolling makes it alot faster but not perfect.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008042814 (Gentoo) Firefox/3.0b5

Regards

Revision history for this message
In , Kp-watzlawek (kp-watzlawek) wrote :

I realized this bug in Firefox 3 RC1. The scrolling speed of Firfox 3 RC1 is very catastrophic if you use the "Fixed" attribute in a stylesheet after a big background image (1680x1050 Pixels).

I include 3 examples, which show the bug!

http://abiads08.ab.funpic.de/test123/index.html <-- attribut: Fixed, big background image --> slow

http://abiads08.ab.funpic.de/test123/index2.html <-- attribut: Fixed, samll background image --> fast

http://abiads08.ab.funpic.de/test123/index3.html <-- only big background image --> fast

<style type="text/css">

 body { background:#09aeff url(bg.jpg) fixed center; }

</style>

As you can see the problem appears only if you are using big background images with fixed attribute in CSS.

Revision history for this message
In , Eugene Miller (theerm) wrote :

For the record, I've had this problem in Firefox 2, 3b5 and 3rc1

In firefox 2.0.0.* if there is a fixed image like blog.the-erm.com has. Scrolling barely takes a hit, however in 3b5 scrolling speed is slowed down dramatically, and it's jerky in 3rc1 it gets much much worse. I couldn't handle using it for more than 5 min before I realized I better get used to 2. because I can't upgrade to 3 with this kind of performance hit. It's a pitty too, because I improvements to the browser bar. The net is my income, and one of the pages I have that makes me the $$ has such a div, If I started using 3, I'd loose hours out of my year waiting for the screen to update, and considering I don't get paid until the job is done. I'd be loosing time & money if I used 3.

I'm running kubuntu linux 8.04 in (kde 3.5.9). I haven't tested it in gnome.

But a fixed div with bottom:0; right:0; *really* makes it slow in 3rc1 so much so that I would consider running firefox3 to be a downgrade over firefox2. Some pages have this problem in firefox 2 because people are being stupid and have a big fixed background image on their page like myspace user always do.

Revision history for this message
In , Johan Douma (johandouma) wrote :

True, this is defenitly a regression, there is a huge difference between 2 and 3RC I posted here 6 weeks ago and nothing has happenned since. Worse Firefox is now RC... I hope this is going to be fixed. If not I'll be using Safari for a part of my work as one of the tools I used has a lot of tables+cells and fixed elements.
Please, I really like Firefox, don't leave this unfixed.

Revision history for this message
In , Unknown W. Brackets (unknownbrackets) wrote :

I really hate "me too" comments, and don't mean to make one here... but I have to say I cannot imagine Firefox 3 going out with this bug.

A lot of sites, including MySpace pages as some have noted, blogs, etc. are affected by this bug. While it's true some may change things to workaround this bug - that's really bad from an evangelism perspective.

I know that it's already RC1, and I'm figuring honestly there's no chance for this bug. Worse, I'd try to help and make a patch or at least troubleshoot the code, but I really don't have time in the next few weeks to do so - just to complain. Still, I wish this was getting more attention - even if it has to be for 3.1... then I could tell people of the light at the end of the tunnel.

Thanks,
-[Unknown]

Revision history for this message
In , Madjik (madjik) wrote :

I don't see big problem on the exemple you give. But it seems that position:fixed causes FF3 a lot of troubles! 100% CPU and a big lag. :-(

We discuss it on a french board: http://www.geckozone.org/forum/viewtopic.php?t=65654

Try the given exemples:
http://actu.c4.fr/
http://csszengarden.com/?cssfile=http://www.s427.ch/divers/cssZenGarden/v02/sample.css
http://www.thestyleworks.de/quickref/index.shtml

Revision history for this message
In , calmar (mac-calmar) wrote :

It seems indeed to be much better now compared to how it was on that narrenschiff page - hardly to detect now even.

(in fact on http://actu.c4.fr/ the delay is obvious).

Revision history for this message
In , Bugzilla-gtalbot (bugzilla-gtalbot) wrote :
Download full text (4.9 KiB)

To those who comment(ed) and/or complain(ed) about this bug:

1- How many of you have smooth scrolling on?

2- "dead slow", "horrible", "unbearable", etc.. are very subjective adjectives which do not give any kind of accurate measurement, objective measurement, quantifiable data, comparable data like a performance profile comparison. 0.3sec could be deadly slow to you while 0.4sec could be just fast enough to person_B. We have no idea here. How big is the gap between horribly slow and fast enough in milliseconds? We have no clue, no idea, not even an hint. And we have to compare (and to assess) all these measurements regarding respective hardware, configuration, os, settings, etc... involved.

3- How long is a long table or a very long table? "very long" is still vague, not quantifiable, non comparable, non-specific, not really useful ... and I'm not even mentioning nested tables, deeply nested tables and over-excessively formated tables for layout purpose here..
"scrolling performance regression for very large tables but it has nothing to do with THIS bug". Dimitrios, comment #110

4- How many of you are mentioning webpages which have hundreds of validation markup errors, CSS errors, regarding webpages which can not in any way constitute a reduced testcase highlighting the issue in this bug?

5- How many of you are mentioning webpages that have lots of images, which are Flash-intensive, Flash-dependent, with a very large and deep DOM tree of nodes, with divitis and classitis, with thousands of javascript lines of code spread into several script files and functions, abusing setTimeout and setInterval, with generated content (like ads rotating, iframe refreshed), in over-constrained layout, over-excessively defined constraining stylesheets for pixel-perfect layout, etc.?

6- How many of you are mentioning webpages which would be considered - anyway and regardless - CPU-demanding, RAM-demanding, video-memory-demanding and user-system-resources demanding according to today's standards? How many of those webpages are already pushing the limits a bit far to begin with?

7- "'position: fixed;' is very importan for top menu on intranets": Do intranet webpage require 100 fixed elements?

8- How many of you are referring to characteristics which should be reported in other bugs (bug 90198, bug 64401, bug 202718, bug 54542, etc...) and not in this bug?

9- How many of you have read
What is a Simplified Test Case, and How Do I Make One?
http://www.mozilla.org/newlayout/bugathon.html#testcase

10- How many of you have read
How to Really, Really Help Developers on Bugs -- Minimal Testcases
http://wiki.mozilla.org/MozillaQualityAssurance:Triage#How_to_Really.2C_Really_Help_Developers_on_Bugs_--_Minimal_Testcases

11- How many background images (tiled) constitute the fixed background regarding the mentioned webpages? You do understand that one big image in the background is quite different from having 1px by 1px image repeated+tiled all over the canvas... Anyway, why such issue is mentioned in this bug and not instead bug 90198 .. if that is needed?

12- How many of you have actually read the Bug writing guidelines?
http://developer.mozilla.org/en/docs/Bug...

Read more...

Revision history for this message
In , Madjik (madjik) wrote :

> 1- How many of you have smooth scrolling on?

Without, it's a little better, but 100% CPU anyway.

I think this bug https://bugzilla.mozilla.org/show_bug.cgi?id=400230 is a duplicate. I posted a few examples of lagging sites in it.

Revision history for this message
In , Madjik (madjik) wrote :

For me the worst is http://www.thestyleworks.de/quickref/index.shtml
Very, very slow!

Revision history for this message
In , Unknown W. Brackets (unknownbrackets) wrote :

(In reply to comment #122)
> To those who comment(ed) and/or complain(ed) about this bug:
>
> 1- How many of you have smooth scrolling on?
>
> 2- "dead slow", "horrible", "unbearable", etc.. are very subjective adjectives
> which do not give any kind of accurate measurement, objective measurement,
> quantifiable data, comparable data like a performance profile comparison.
> 0.3sec could be deadly slow to you while 0.4sec could be just fast enough to
> person_B. We have no idea here. How big is the gap between horribly slow and
> fast enough in milliseconds? We have no clue, no idea, not even an hint. And we
> have to compare (and to assess) all these measurements regarding respective
> hardware, configuration, os, settings, etc... involved.

Your comments are very long and I cannot answer all of the points, but I can answer these.

Let's use for a test case "http://www.tuaw.com/". The following builds of Minefield and Bon Echo will be used for comparison:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008052308 Minefield/3.0pre
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15pre) Gecko/20080520 BonEcho/2.0.0.15pre

1. general.smoothScroll greatly aggrevates this bug. Since there is UI to turn this on, let's test with it enabled in both Bon Echo and Minefield, please. (note that the problem occurs with it off.)

2. Let us measure how long it takes to scroll to the bottom of this same page in Minefield and Bon Echo. I'm using a not-as-modest AMD 64 X2 3800+ w/2.0 gig of ram, a GeForce 7600 GT at 1280x1024, and XP SP2. We will preform this test by consistently scrolling the mousewheel. I'm timing using my iPhone manually.

Minefield (smoothScroll OFF): 00:08.2
Minefield (smoothScroll ON): 00:14.0
BonEcho (smoothScroll OFF): 00:07.1
BonEcho (smoothScroll ON): 00:07.2

However, Minefield in both cases gets a lot of shearing (a very distinct and definable phenonemon), whereas BonEcho is fine.

Now, this is not a reduced testcase as you say. Good point. Let's make it one. Go ahead and install Firebug in both browsers. For best results, use the same version of Firebug (1.1 or 1.2).

Open Firebug on the website, click "HTML", and then on "<body>". On the right, select the "Style" tab. Look for "background:", and click on it.

Change the value from:
#477CBD url(http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-bg.jpg) no-repeat fixed 50% 0pt

To:
#477CBD url(http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-bg.jpg) no-repeat scroll 50% 0pt

This removes the "fixed" scrolling being discussed here. Now, run the above tests again. You will notice a difference.

I imagine this may have to do with possible any of the following factors:
A. Screen resolution/browser size.
B. Length of page and number of elements overlaying background (most likely just height of elements.)
C. Size of background image (width/height.)
D. Positioning of the background image.

This is clearly a regression from Bon Echo (which had no problems here.)

-[Unknown]

Revision history for this message
In , Bugzilla-gtalbot (bugzilla-gtalbot) wrote :

@Unknown,

I commend your efforts to bring more formal steps to reproduce and more objective data/measurements (including possibly performance profiling) into this bug...

> Look for "background:", and click on it.
>
> Change the value from:
> #477CBD url(http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-bg.jpg)
> no-repeat fixed 50% 0pt
>
> To:
> #477CBD url(http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-bg.jpg)
> no-repeat scroll 50% 0pt
>
> This removes the "fixed" scrolling being discussed here.

... but all this is about background-position: fixed which is bug 90198, not this bug 201307. This 201307 bug shouldn't be far from being fixed if bug 203439 has been fixed. Again, I still think this bug should be resolved as WFM... unless someone can bring something real, concrete, reproducible, good testcase, etc... Who here experienced "slow scrolling" with attachment 139911 and with provided URL (http://www.w3.org/Style/Examples/007/scrollbars.html)?

Your post also identified how you scrolled (which is very good from a reproducibility perspective): you roll the mousewheel. You see, it could have been [PgDn], [PgUp], dragging scrollbar thumb up|down, clicking the scrollbar arrows or up|down key arrows...

------

@madjik

If smooth scrolling is ON, then it should be resolved as a DUPLICATE of
bug 202718 (Windows), bug 424308 (Mac), bug 409456 (Linux)

Revision history for this message
In , Bugzilla-gtalbot (bugzilla-gtalbot) wrote :

> preform this test
> by consistently scrolling the mousewheel.
>
> Minefield (smoothScroll OFF): 00:08.2
> Minefield (smoothScroll ON): 00:14.0

That has to be bug 202718, not *this* bug.

Revision history for this message
In , Unknown W. Brackets (unknownbrackets) wrote :

(In reply to comment #125)
> ... but all this is about background-position: fixed which is bug 90198, not
> this bug 201307. This 201307 bug shouldn't be far from being fixed if bug
> 203439 has been fixed. Again, I still think this bug should be resolved as
> WFM... unless someone can bring something real, concrete, reproducible, good
> testcase, etc... Who here experienced "slow scrolling" with attachment 139911 [details]
> and with provided URL (http://www.w3.org/Style/Examples/007/scrollbars.html)?

Ah, I confused this with that one (actually I thought they were the same, but now that I delve into my memory, I remember that there were two bugs after all.) Before I didn't care about that other one, because I thought it was reasonably fast.... then I forgot they were different bugs.

Sorry for the bugspam. IMHO, as a developer, I don't think this needs to be fixed at all for 3.0 or anything. Virtually no sites use position: fixed, it's not (or wasn't once) well supported across browsers anyway iirc.

That said, bug 90198 really is about a more general problem of it "being slow". Probably I'm looking for a more specific bug for this actual regression.

Sorry for the bugspam.

As for that attachment, it scrolls identically for me in Bon Echo and Minefield, and what's more, very quickly and without shearing. Again, I totally agree this bug is probably not a huge issue (and from the comments which I just looked over again, seems to find a lot of people confusing it with backgrounds.)

(In reply to comment #126)
> > preform this test
> > by consistently scrolling the mousewheel.
> >
> > Minefield (smoothScroll OFF): 00:08.2
> > Minefield (smoothScroll ON): 00:14.0
>
> That has to be bug 202718, not *this* bug.
>

Not really. I don't care about smooth scrolling. It's easier to reproduce using smooth scrolling (likely because of that bug) but I'm talking about the *recent* change in speed of scrolling with fixed backgrounds (compared to Bon Echo) whether smooth scrolling is enabled or not.

That bug is about both versions (and even older too), and I see shearing on the page it references even with my hardware and Bon Echo.

-[Unknown]

Revision history for this message
In , Johan Douma (johandouma) wrote :
Download full text (3.6 KiB)

Firefox 3 2008052304

(In reply to comment #122)

> 1- How many of you have smooth scrolling on?
Nope it's off.

> 2- "dead slow", "horrible", "unbearable", etc.. are very subjective adjectives
> which do not give any kind of accurate measurement
1 sec between redraws maybe

> 3- How long is a long table or a very long table? "very long" is still vague
6 tables of 62 columns, 15 lines each, no backrgrounds on the cells.

> 7- "'position: fixed;' is very important for top menu on intranets"
2 fixed divs

> 4- How many of you are mentioning pages which have hundreds of validation errors
> 5- lots of images, Flash-intensive, Flash-dependent, with a very large and deep
> DOM tree of nodes with thousands of javascript lines of code spread
> into several script files and functions, abusing setTimeout and setInterval,
> with generated content (like ads rotating, iframe refreshed), in
> over-constrained layout, over-excessively defined constraining stylesheets for
> pixel-perfect layout, etc.?
> 6- How many of you are mentioning webpages which would be considered - anyway
> and regardless - CPU-demanding, RAM-demanding, video-memory-demanding and
> user-system-resources demanding according to today's standards? How many of
> those webpages are already pushing the limits a bit far to begin with?

Yes that's the case.

Maybe it should be slow then... regarding the mess in the code. After reading comment #122 this slow down could definitly be normal and justified. And a few people have probably been convinced that it's not a firefox problem.

The code is a mess and is pretty heavy, there's a fixed div with a png background, and there a png background. It's slow. Without the images it's better but still slow.
So I actually have 2 'bugs' here at the same time. But both of them have a big impact on performance.

I'm posting this because Firefox 2 handles it perfectly fine.

Like W. Brackets did, comment #124, rolling the scroll wheel as fast as possible, the time it took to scroll from top to bottom of the page, retried, 3 or 4 times if any difference:

Smoothscroll on
FF 2 about 5, 6 seconds, slightly slower than whithout smoothscrolling.
FF 3 2008052304 took an astonishing 48 seconds the first time and 50 seconds the second time I tested it. Where 20 seconds are spent on the last 200px of the page. 8 times slower?
We knew already that smoothscrolling did that, but I didn't really expect it to be this bad. Redrawn once per second as well, not worse then with smoothscroll off, but the distance scrolled at each redraw is a lot smaller.

Smoothscroll off:
Firefox/2.0.0.11 20071127: between 3 and 5 secondes, redrawing maybe 4 or 5 times a second.
Firefox 3 2008052304 after trying several times: between 13 and 15sec to scroll from the top to the bottom, with about 1 redraw per second. About 3 times slower...

But I don't really see shearing, a slight bit, but far less than some other websites on internet somethimes.

I'm not using smoothscrolling anyway, I don't use it.

This has been tested on a G5 1.8ghz 2gig ram, some nvidia card... I'm at work at the moment. But on Vista SP1 core 2 duo 7500, 2gig ram, 8400gt, the result is the same, it's faster...

Read more...

Revision history for this message
In , Bugzilla-gtalbot (bugzilla-gtalbot) wrote :

> Yes that's the case.
>
> Maybe it should be slow then... regarding the mess in the code. After reading
> comment #122 this slow down could definitly be normal and justified. And a few
> people have probably been convinced that it's not a firefox problem.
>
> The code is a mess and is pretty heavy, there's a fixed div with a png
> background, and there a png background. It's slow. Without the images it's
> better but still slow.
> So I actually have 2 'bugs' here at the same time.

Or maybe the position: fixed bug has been fixed.

> But both of them have a big
> impact on performance.

Correct and appropriate QA bug management indicate that we shouldn't confirm a bug unless a set of conditions are met, a good, clear testcase, thorough search for duplicate has been done, etc.

> I'm posting this because Firefox 2 handles it perfectly fine.
>
> Like W. Brackets did, comment #124, rolling the scroll wheel as fast as
> possible, the time it took to scroll from top to bottom of the page, retried, 3
> or 4 times if any difference:
>
> Smoothscroll on
> FF 2 about 5, 6 seconds, slightly slower than whithout smoothscrolling.
> FF 3 2008052304 took an astonishing 48 seconds the first time and 50 seconds
> the second time I tested it. Where 20 seconds are spent on the last 200px of
> the page. 8 times slower?
> We knew already that smoothscrolling did that, but I didn't really expect it to
> be this bad. Redrawn once per second as well, not worse then with smoothscroll
> off, but the distance scrolled at each redraw is a lot smaller.
>
> Smoothscroll off:
> Firefox/2.0.0.11 20071127: between 3 and 5 secondes, redrawing maybe 4 or 5
> times a second.
> Firefox 3 2008052304 after trying several times: between 13 and 15sec to scroll

Then that is bug 202718, not *this* bug. Discussion, data, comparison regarding smoothscroll ON or OFF should not be in this bug.

> The website where I get this is on the intranet.

Realistically speaking, there is nothing to be done without being able to examine, investigate, test, performance-profile a webpage. We still would need a reduced testcase focusing and targeting (and highlighting) well the performance + behavior considered as incapacitatingly slow.

> I will try to upload a new archive containing the images/html/css files,
> stripped from the private information.

Please consult

What is a Simplified Test Case, and How Do I Make One?
http://www.mozilla.org/newlayout/bugathon.html#testcase

How many of you have read
How to Really, Really Help Developers on Bugs -- Minimal Testcases
http://wiki.mozilla.org/MozillaQualityAssurance:Triage#How_to_Really.2C_Really_Help_Developers_on_Bugs_--_Minimal_Testcases

I believe that attachment 139911 and this bug's URL
http://www.w3.org/Style/Examples/007/scrollbars.html
were adequate webpage and testcase for this bug. If no one experiences significant (measurable) loss of performance in those webpages with a trunk build, then this bug should be resolved as WFM.

Revision history for this message
In , Johan Douma (johandouma) wrote :

@Gérard Talbot No offense but it looks to me as if you're trying to convince everyone that there isn't any bug. I do think there's is something with this position:fixed

I wasn't comparing smoothscroll.

Here are the results again, with smoothscroll off:
FF2: between 3 and 5 seconds, redrawing maybe 4 or 5 times a second
FF3: between 13 and 15 seconds, redraw once a second
that's 4 to 5 times slower.

I've posted an attachment already a few weeks ago, cleaned up from all the images only but not css. I know I should have created a simple file with a fixed div and some text... I did read the 'howto' file a bug and do tests, etc...

But in my case it's a bit complex. So please bear with me and maybe advise me on how to proceed with this case.

In this case:
I have a png in the background, and a png in the fixed div, and a hole lot of tables, lot of stuff styled... All together it's slow. See results above.
If I get rid of the fixed div. It's back to normal, it's not slowed down. This tells me I'm in the correct bug, and I'm not posting in the wrong place.
BUT with the fixed div:
If I get rid of the png backgrounds and keep the fixed div, it's still slow but a lot better. And when I get rid of all the css styles, then it's back to a normal speed. Speed difference slightly visible.

I know it really sounds like it's something else in the code that slows it down, but I've spent a few hours removing rules one by one to see if there was a performance impact. And it became better, gradually; I couldn't see any difference each time I removed a rule. In the end there wasn't much an impact between 'not fixed' and 'fixed'.

Concludion:
- Clean of images and css, difference slightly visible.
- Alltogether, css, images, etc... Big difference between the version that has the fixed div and the one that hasn't.

Now I'm only speculating on how this is possible...

in FF2, a fixed div might have a 50% performance impact... So between the version that may take let's say, 100ms, it will take 150ms if there is a fixed div.

in FF3, there might be a 500% performance impact.
So on the simple test case like attachment #139911 where it takes 10ms to draw without fixed div, it would take 50ms, with a fixed div. 50ms is not slow. The few attachment indeed do not have any significant loss of performance.
But if the page takes 100 seconds to be drawn without fixed div because it's damn complex, it would take 500ms to redraw with fixed div.

So no I will not post a testcase like attachment #139911, because it doesn't represent what I get. But i don't really have any other ideas to post a test case whitout all the css and images. Anybody has any ideas on how to create a test case for this?

Revision history for this message
In , Bugzilla-gtalbot (bugzilla-gtalbot) wrote :
Download full text (8.2 KiB)

> it looks to me as if you're trying to convince
> everyone that there isn't any bug.

I do not see a bug. I can not reproduce the problem when using a trunk build on windows. I can not reproduce the problem when trying all of the mentioned URLs so far, including this bug's provided URL http://www.w3.org/Style/Examples/007/scrollbars.html
and attachment #139911 . Now, if the bug is still happening on the trunk, then provide a testcase relevant and relative to this bug. Do you understand?

I am trying to convince you that several of the so-called URLs, testcases included in this bug were
- 404 not found
- redirected to nowhere
- abusing or depending on Flash
- abusing or depending on javascript
- have huge amount of coding errors, are examples of over-excessive formating, over-excessive coding, declaring, over-constrained layout,
- etc..

and that none of this serve the purpose of demontrating or reproducing or isolating a bug or faulty behavior or weak performance. If this bug still occurs, then at least a large minority of us should notice, measure something significant when trying attachment attachment #139911 or this bug's provided URL.

> I do think there's is something with this
> position:fixed

Fine! Then proceed accordingly with

What is a Simplified Test Case, and How Do I Make One?
http://www.mozilla.org/newlayout/bugathon.html#testcase

How to Really, Really Help Developers on Bugs -- Minimal Testcases
http://wiki.mozilla.org/MozillaQualityAssurance:Triage#How_to_Really.2C_Really_Help_Developers_on_Bugs_--_Minimal_Testcases

There are such things as the capability to reproduce a bug under controlled conditions, where we can compare data, examine testcases, use and compare (before fix and after fix) performance profiles, etc... Otherwise we shouldn't confirm a bug.

> I wasn't comparing smoothscroll.

Why do people in this bug keep mentioning smooth scroll then? Why can't you provide smooth scroll related data to respective bugs like bug 202718 (Windows), bug 424308 (Mac), bug 409456 (Linux)?

> Here are the results again, with smoothscroll off:
> FF2: between 3 and 5 seconds, redrawing maybe 4 or 5 times a second
> FF3: between 13 and 15 seconds, redraw once a second
> that's 4 to 5 times slower.

Which test case are you referring to? What's your overall system configuration for getting those data? I can not reproduce anything close to your data with this bug's provided URL http://www.w3.org/Style/Examples/007/scrollbars.html
and attachment #139911.

> I've posted an attachment already a few weeks ago, cleaned up from all the
> images only but not css. I know I should have created a simple file with a
> fixed div and some text... I did read the 'howto' file a bug and do tests,
> etc...
>
> But in my case it's a bit complex.

It is **NOT** just a bit complex. It's an 85 Kilo-byte HTML file (7598 lines of code, 86193 bytes!) with several linked (external and imported) stylesheets and several linked external javascript files that we can not see or examine with your RAR compressed file because your very long HTML file uses relative addressing, not absolute addressing. And I'm not even mentioning inline style, inline javascript cod...

Read more...

Revision history for this message
In , Unknown W. Brackets (unknownbrackets) wrote :

Created an attachment (id=322577)
Simple test case with plenty of fixed divs (requires js.)

Here's an example that shows plenty of fixed divs.

Doesn't appear to be affected by using an image as a background or not. Greatly affected by smooth scrolling, but that's not this bug.

For me, performance is similar in Minefield and Bon Echo.

Revision history for this message
In , Greg Campbell (glc-bugs) wrote :

With this testcase, I detect a small amount of slowness compared to scrolling this bug report. I have a feeling it's dependent on system specs, but with my approx. 2-year old hardware it's barely detectable. With a 600 MHz PIII, it might be a different story.

One thing I notice is that the scrolling decelerates when it gets to the last 5 or so lines at the top or bottom of the page. This does not happen on a page without the fixed elements.

I see very similar performance with Fx2 and Fx3 RC.

Revision history for this message
In , Mara-chlup (mara-chlup) wrote :

FF2: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0.12-1)
FF3RC1: Mozilla/5.0 (X11; U; Linux i686; cs; rv:1.9) Gecko/2008051202 Firefox/3.0

Processor: AMD Sempron(tm) Processor 2600+
RAM: ~440 MB
OS: Debian with 2.6.25-1-686 kernel
Resolution: 1280x1024
general.smoothScroll: false

Scroll by arrow down key on keyboard.

attachment #139911 - only "box 1" is "lock (fixed)"
------------------
1) FF2:
   2s (scroll is fine and continuous; usage CPU: 57%)
2) FF3RC1:
   5s (scroll is brokenly; usage CPU: 100%)

attachment #303996
------------------
1) FF2:
   27s (scroll is fine and continuous; usage CPU: 57%)
2) FF3RC1:
   131s (scroll is brokenly; usage CPU: 100%)

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Tue, May 20, 2008 at 07:17:55PM -0000, Peter Lombardo wrote:
>
> The scrolling improves alot if you set general.smoothScroll to false in about:config.
>
> I hit this issue at http://www.timothysykes.com/ with Firefox 3.0b5
> unmasked Gentoo package. (I run Gentoo)
>
> The performance was atrocious to the point of unusable - disabling
> smooth scrolling makes it alot faster but not perfect.
>
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008042814
> (Gentoo) Firefox/3.0b5
>

Anyone brave enough here to test (your own risk) the 3.0 RC1 packages
from hardy-proposed archive (enable through administration -> software
sources) ? Do they improve performance a bit?

 status incomplete

 - Alexander

Revision history for this message
Alexander Sack (asac) wrote :

On Tue, May 20, 2008 at 07:17:55PM -0000, Peter Lombardo wrote:
>
> The scrolling improves alot if you set general.smoothScroll to false in about:config.
>
> I hit this issue at http://www.timothysykes.com/ with Firefox 3.0b5
> unmasked Gentoo package. (I run Gentoo)
>
> The performance was atrocious to the point of unusable - disabling
> smooth scrolling makes it alot faster but not perfect.
>
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008042814
> (Gentoo) Firefox/3.0b5
>
> Regards
>

 affects ubuntu/firefox-granparadiso
 status invalid

does 3.0 RC1 from hardy-proposed improve this for you (-proposed
testing on your own risk)?

 affects ubuntu/firefox-3.0
 status incomplete

 - Alexander

Changed in firefox:
status: Confirmed → Incomplete
Changed in firefox-3.0:
status: Confirmed → Incomplete
Changed in firefox-granparadiso:
status: New → Invalid
Changed in firefox:
status: Incomplete → Confirmed
Revision history for this message
ligaard (kasperligaard) wrote : Re: slow scroll with image as background-repeat

No improvements in 3.0 RC1 from hardy-proposed, sorry.

I tried the two urls below, which both gives 15-20 fps in Opera, but only ½-1 fps in Firefox 3 RC1.

Note that the slashdot url is interesting: It scrolls equally well in Opera and Firefox until the 'Comments' box (on the left) starts to 'hover/float' with the scrolling page.

- http://simile.mit.edu/timeline/examples/dinosaurs/dinosaurs2.html
- http://developers.slashdot.org/article.pl?sid=08/06/01/1437245&from=rss

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

with smooth scrolling that's even bigger massacre :s .

Revision history for this message
In , Bugzilla3 (bugzilla3) wrote :

(From update of attachment 315511)
After properly reducing that testcase, I noticed that the only important factor in it is border-right:solid and border-bottom:solid properties of the cells. Therefore, it is irrelevant to this bug

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

No improvement in 3.0 RC2 either. This behavior is really annoying, I have to switch to Opera until it's fixed :-(

My system
---------------
Kubuntu 8.04
Dell XPS M1330
2GB RAM
No compiz
NVIDIA 8400GS (binary driver)

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Fri, Jun 06, 2008 at 06:17:28PM -0000, The Devil Is A Squirrel wrote:
> No improvement in 3.0 RC2 either. This behavior is really annoying, I
> have to switch to Opera until it's fixed :-(
>

Could you please try to use the cairo and firefox-3.0/xulrunner-1.9
builds available in hardy-proposed? Cairo might have some considerable
performance improvements for at least some X drivers.

 - Alexander

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

Done.

Gmail behaves better, but other sites not. See for yourself: http://watch.xwiki.org/xwiki/bin/view/Main/

This site runs in Opera just fine...

Revision history for this message
joelpt (hello-joelpt) wrote :

I am actually seeing the same behavior on Windows XP, Firefox 3.0 RC2. So this is not a problem isolated to Linux.

The best example I have seen of the problem is on this site: http://www.timothysykes.com/

It's slower than normal on most of the page, but if you scroll all the way down to the bottom of the page, when the page footer starts becoming visible the framerates drop drastically. Try it.

For what it's worth, the same site in IE7 exhibits no noticeable slowdown.

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote :
Revision history for this message
H5N1 (h5n1-vir) wrote :

@joelpt : I was seeing this behaviour on Win Xp either on Firefox 2.0 and report this so long ago.
I think that it's not a bug of Firefox on Ubuntu but a slow behaviour of Gecko rendering engine.
In fact I can see this behaviour on Camino for Mac on DeerPark on Slacky and Win and in older Mozilla Browsers on all OSs.

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote :

But Opera does not have this issue and has the same engine, right?

Revision history for this message
H5N1 (h5n1-vir) wrote :

Nop, Opera has his own (proprietary) rendering engine called "Presto".

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Fri, Jun 06, 2008 at 10:57:34PM -0000, The Devil Is A Squirrel wrote:
> Done.
>
> Gmail behaves better, but other sites not. See for yourself:
> http://watch.xwiki.org/xwiki/bin/view/Main/

this page is about a different bug: "performance issue with absolute
position floating elements". Thats known upstream

 - Alexander

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

**********
this page is about a different bug: "performance issue with absolute
position floating elements". Thats known upstream

 - Alexander
**********

Do you have a link to that? I just tested this on a fresh XP installation, while the rendering is not super fast it's way better than under K/Ubuntu and specially the top menue box from the site does not scramble...

Next tuesday is the final release...I guess this bug is here to stay...bummer...

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Sat, Jun 14, 2008 at 01:12:59PM -0000, The Devil Is A Squirrel wrote:
> **********
> this page is about a different bug: "performance issue with absolute
> position floating elements". Thats known upstream
>
> - Alexander
> **********
>
> Do you have a link to that? I just tested this on a fresh XP
> installation, while the rendering is not super fast it's way better than
> under K/Ubuntu and specially the top menue box from the site does not
> scramble...

This is no reason to question this. Windows and linux have completely
different ways of rendering things. so comparing those is just not
valid.

>
> Next tuesday is the final release...I guess this bug is here to
> stay...bummer...
>

Most likely yes.

 - Alexander

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

Oh, I didn't mean to question it, I just wanted the link to the bug report, because I can't find it and I would like to read more about this issue...

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Sat, Jun 14, 2008 at 06:58:41PM -0000, The Devil Is A Squirrel wrote:
> Oh, I didn't mean to question it, I just wanted the link to the bug
> report, because I can't find it and I would like to read more about this
> issue...
>

Search upstream ... most likely it was resolved invalid as its a cairo
bug or X server bug.

 - Alexander

Revision history for this message
Lubosz Sarnecki (lubosz) wrote : Re: slow scroll with image as background-repeat
Revision history for this message
In , Gizz (gizz) wrote :

I found this bug report when searching for problems on slow scrolling and fixed elements.

http://planetsuse.org/ produces *very* annoying slow scrolling effects; the site is barely usable (it gets even worse when zoomed in)

Hope this helps...

specs:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0
Running Ati radeon mobility X600

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

Same problem, but I have nVidia GeForce 6200.

Both with nv and nvidia (closed-source nVidia provided driver) have the problem.

Revision history for this message
In , Madjik (madjik) wrote :

It's correct on http://planetsuse.org/

Try this one: http://www.boobalechat.com/archive-06-2008.html
For me, it's the worst.

After seeing this, or http://actu.c4.fr/ or http://www.howtocreate.co.uk/fixedPosition.html (even fixed but smooth in IE6), I start moving on Opera... :-/

Revision history for this message
In , Bugzilla3 (bugzilla3) wrote :

(In reply to comment #139)
> Try this one: http://www.boobalechat.com/archive-06-2008.html
> For me, it's the worst.
Again, please read technical info already posted here before posting an irrelevant testcase. Especially read comment #125. What you see in your case is NOT this bug. It's bug #90198. (I don't notice performance problems with the rest of the links you mentioned so I won't comment on them).

Revision history for this message
In , Madjik (madjik) wrote :

You're right, sorry. I follow them both.
Don't you think these 2 bugs have the same origin? Fixed = lag...

And even those with smooth scrolling listed on comment #125. Fixed = lag.

Revision history for this message
In , Kataho-mail (kataho-mail) wrote :

Created an attachment (id=326909)
a bit of position:fixed element and a bunch of resized images

Revision history for this message
In , Kataho-mail (kataho-mail) wrote :

A combo of any position:fixed elements and a bunch of resized images remarkably decreases frame rate. Check out attachment #326909 with Firefox3. Turn smooth scroll on and scroll up and down and see difference on responce between on upper side and on lower side. Upper side is filled with resized images and lower side is filled with raw ones. Our fixed element is only one black dot on upper right.

You may want to say that this is caused by resized images but a position:fixed element. If you can not be sure, comment this little dot out and see the performance turns to all just fine.

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

Yes, I can agree. It's not because of large images, because they are handled properly. Mozilla works lightning fast even with very complex websites, but only if fixed elements are removed.

It's something that has to be fixed, as well as resizing pages (when you resize page once, after that it works properly, but it's very slow if you start resizing for the first time).

I think this can solve all performance issues with Firefox.

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

> I think this can solve all performance issues with Firefox.

Nooo :> .

Add background with bg-attachment:fixed and transparent image on top.

It will be slow.

For example this is slow: http://blog.ninaque.com/

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

Yes, as I said, this background is fixed. Removing it makes Firefox working fast again. That self-transparent logo on top doesn't seem to slow down the performance for me.

Revision history for this message
In , Eugene Miller (theerm) wrote :

This is a lousy fix, but it works.

When you move the mouse wheel, it hides the fixed div, so you can scroll, and then after a second of no movement, it'll show it again. I don't use the up/down arrows to scroll the page, so I didn't include an "onkeydown" window event, but it wouldn't be that hard to implement.

<style>
  #fixedDivId {
    position:fixed;
    right:0px;
    bottom:0px;
    border: 1px solid #000;
    background: #FFF;
  }

</style>

<div id="fixedDivId">I'm fixed.</div>

<script type="text/javascript"><!--

var hideTimer = false;
window.addEventListener('DOMMouseScroll', hideFixedDiv, false);

function hideFixedDiv(e){
 document.getElementById('fixedDivId').style.display = 'none';
 if (hideTimer) {
  clearTimeout ( hideTimer );
 }
 hideTimer = window.setTimeout("document.getElementById('fixedDivId').style.display = ''; hideTimer = false;", 1000);
}

//-->
</script>

---- Same thing only in jquery, and using a class.

<style>
  ,fixed {
    position:fixed;
    right:0px;
    bottom:0px;
    border: 1px solid #000;
    background: #FFF;
  }

</style>

<div class="fixed">I'm fixed.</div>

<script type="text/javascript"><!--

var hideTimer = false;
window.addEventListener('DOMMouseScroll', hideFixedClasses, false);

function hideFixedClasses(e){
 $('.fixed').css('display','none');
 if (hideTimer) {
  clearTimeout ( hideTimer );
 }
 hideTimer = window.setTimeout("$('.fixed').css('display',''); hideTimer = false;", 1000);
}

//-->
</script>

Revision history for this message
gdp77 (gdp77) wrote : Re: slow scroll with image as background-repeat

I have reported terrible lag when scrolling www.hwbox.gr (other pages scroll up and down perfectly) only when I visit the site from Linux (Ubuntu) + Firefox

No answers were coming so I tried to find out what was the problem myself. Using adblock plugin I tried to block 1 by 1 all the items of the page until I found what item was responsible:

http://www.hwbox.gr/images/dark_vd_red/images/gradients/page_bg.gif which is a background gif which is repeated many times in the page. Please see for yourself.

Revision history for this message
H5N1 (h5n1-vir) wrote :

I think I've just said that IMHO there's no bug regarding the background-repeat but all the slowness we can experience derives from fixed background.
In fact the gradient witch gdp77 is talking about is a fixed background.
But I know that there's another open issue regarding the fixed background.

Revision history for this message
In , Bugzilla-spray (bugzilla-spray) wrote :

*** Bug 444871 has been marked as a duplicate of this bug. ***

Revision history for this message
Squirrel (the-devil-is-a-squirrel) wrote : Re: slow scroll with image as background-repeat

Is there ANY progress? I know it's not your fault guys, but this is not a tiny issue, this is huge as the whole internet experience is totally screwed!!

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Wed, Jul 09, 2008 at 06:50:12AM -0000, H5N1 wrote:
> I think I've just said that IMHO there's no bug regarding the background-repeat but all the slowness we can experience derives from fixed background.

Thats a separate issue and is already known upstream and probably in
launchpad as well. background-repeat should be better for all EXA
drivers by now - so maybe you dont see it anymore.

 - Alexander

Revision history for this message
Alexander Sack (asac) wrote :

On Sun, Jul 13, 2008 at 12:33:46AM -0000, Squirrel wrote:
> Is there ANY progress? I know it's not your fault guys, but this is not
> a tiny issue, this is huge as the whole internet experience is totally
> screwed!!
>

Did disabling desktop effects help for you? otherwise, you probably
are out of luck unless someone manage to fix X-server and its drivers
to better support this for XAA.

 - Alexander

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I don't have desktop effects, and this problem remains. (I'm in
intrepid with an intel gma965)

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

> someone manage to fix X-server and its drivers

Are you sure it's only a X-server/driver issue? Even on WinXP FF3 is way slower than FF2, though, it's not nearly as bad as it is under Linux...

I don't have any desktop effects in place.

I'm getting the feeling that Mozilla just ignores this bug. Can someone proof me to be wrong, please? Or, how, as a user, can I help?

Revision history for this message
FriedChicken (domlyons) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

Hm, couldn't this be a Cairo-bug?

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

Wow, I just updated my 8.10 installation in my virtualbox and now FF3 works almost perfect. How can I review what was updated during 'dist-upgrade'? Maybe we find this way the solution.

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote :

Now, after the recent update, even my 8.04 Kubuntu works fine (well, at least significant better)...but ONLY in my virtualbox.

Could it be just a video issue? In my virtualbox my NVIDIA card get's not recognized. However, disabling any 3rd party driver support in my 'real' installation does not change anything (at least not for the better).

Revision history for this message
Alberto Milone (albertomilone) wrote :

The Devil Is A Squirrel: virtualbox uses a virtual device therefore it's not possible to install the NVIDIA driver in virtualbox.

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote :

That's what I mean. I don't have this issue in my virualbox installation.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Sat, Jul 26, 2008 at 07:39:36PM -0000, The Devil Is A Squirrel wrote:
> That's what I mean. I don't have this issue in my virualbox
> installation.
>

So did you actually see this bug in the virtualbox at some point?

 - Alexander

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

I *think* so, but I wouldn't bet my ass on it...sorry. However, even now my 8.04 and 8.10 Kubuntu runs Firefox way better (it's still worse than Opera or FF2, it still "flickers") inside my virtualbox, it doesn't on my real installation (and yes, I tried to purge and re-install with a clean profile).

How can I help? Need some videos? Some logs?

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote :

Ok, I think the issue is Xrender which renders the page in FF3. It seems that NVIDIA has some problems with its drivers.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

I guess I'm not really surprised that this is still open, and I'm even less surprised that it's gotten so confused in comments.

I wonder if it wouldn't be more helpful to open a new bug that targets this problem very specifically and doesn't have 5 years of confusion hampering it?

In any case, I'll try to summarize the problems that have been brought up and their status as far as I know:

1. Performance is worse when a page has fixed ELEMENTS (i.e. not a fixed background). Performance decreases as the number of fixed elements grows. I believe this is still an issue and will include my evidence in the following comment.

2. Performance was worse when a page has the background-attachment: fixed CSS property applied. This problem is bug 90198. It is AFAIK totally unrelated to the current bug, and it seems that it doesn't generally affect people anymore.

3. On Windows, performance was worse when other windows were on top of the Firefox viewport. This seems to have been fixed since comment 24.

4. I think there's a problem where having opened enough images, pages, or other applications causes a sudden and drastic drop in scrolling performance (see bug 90198 comment 21). This is what I was talking about in comment 6, and haven't since been able to reproduce. It is NOT this bug.

5. Any slow/CPU-intensive scrolling is more so with smooth scrolling enabled. This is either common sense or a different bug, depending on your viewpoint.

6. Slow scrolling with large tables is bug 421601 and is totally unrelated, except that they can be used to emphasize the perf difference between a page w/ and w/o fixed elements.

7. Slow scrolling with resized images is bug 163975 and is totally unrelated, except that it can be used to emphasize the perf difference between a page w/ and w/o fixed elements.

Did I miss anything?

If we're going to leave this open, let's just focus on THIS bug and stop getting hung up on the other things that exacerbate it.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

Regarding the slowdown encountered when scrolling pages with fixed elements (item 1 in the prior comment) ONLY:

This is apparently still an "issue" on my machine. Here's how I tested:
With smooth scrolling off;
Scrolling by holding down the Down Arrow key on the keyboard;
On a system w/ WinXP, Athlon 64 X2 6000+, nVidia GeForce 8800GTS;
Under build Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1;

Using attachment 133309 w/ static menu, (0 fixed elements) CPU usage is ~0%.
Using attachment 133309 w/ fixed menu, (1 fixed element) CPU usage caps at ~4%.
Using attachment 170761 (100 fixed elements) CPU usage caps at ~11%.

It is my opinion (@Gérard, Dimitrios) that the above testcases are simplified and demonstrate this problem effectively. I do not believe that there is a need for any additional testcases on THIS BUG. Some later testcases make this behavior more apparent by combining it with other problems (attachment 326909), but are not really necessary.

I can't say whether the above performance numbers are acceptable or unacceptable; it only demonstrates that the engine must do much more work to render pages with fixed elements.

This isn't a problem for me since I have a very powerful computer, but (particularly when exacerbated by the other bugs mentioned above) may be a problem for older or less capable computers like the EeePC or iPhone.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

On Fri, Aug 01, 2008 at 03:55:42PM -0000, The Devil Is A Squirrel wrote:
> Ok, I think the issue is Xrender which renders the page in FF3. It seems
> that NVIDIA has some problems with its drivers.
>

Consider to use the free nvidia driver (nv).

 - Alexander

Revision history for this message
The Devil Is A Squirrel (justanotheradress) wrote : Re: slow scroll with image as background-repeat

Did not help a bit, it's actually worse.

Revision history for this message
In , Hceylan (hceylan) wrote :

I think I have a clue for the reason some people here experience this problem as a small problem but some as a big problem. The reason is, the bigger the viewport, the worse the the situation is.

I have a Core 2 Duo 2,6GHz CPU, 4 GB RAM, nVidia Corporation Quadro FX 1600M (Tried both closed source / open source drivers W/ 3D available / not available) laptop. That is a monster laptop. The screen resolution is 1920x1200. Computer is running Fedora 9 / 10.alpha W/ Gnome. I tried 2.22 & 2.23 gnome / gtk versions.

Firefox is Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072301 Fedora/3.0.1-1.fc10 Firefox/3.0.1

Now, I get very different performance between the states Firefox maximized and Firefox is 800x600 sized.

The sample site is http://dev.xwiki.org/xwiki/bin/view/Main/
The values are given for 800x600 | ~1920x1200 window sizes.

Below are the comments for the QA

> 1- How many of you have smooth scrolling on?

off | off

> 2- "dead slow", "horrible", "unbearable", etc.. are very subjective adjectives
almost no lag | 10 sec
> 4- How many of you are mentioning webpages which have hundreds of validation
Only 2 HTML errors with '&' are not escaped as '&apm';

> 5- How many of you are mentioning webpages that have lots of images, which are
N/A

> 6- How many of you are mentioning webpages which would be considered - anyway

No

> 7- "'position: fixed;' is very importan for top menu on intranets": Do

Only 1 fixed div

> 8, 9, 10, 11, 12

Now, I have got an objection here. Do the users, trying to help you out here, have to be the QA people for Mozilla or does Mozilla have a bunch of QA people, who can constitute good test cases out of information available. People, I see here are positively trying to help Firefox solve this issue. I think rather then storming at them, the time and efforts put by them should be appreciated.

Rather then expecting them to have the QA approach, expecting them to answer further questions should be enough.

And one last note I do not know excatly what that means but here is an excerpt from the bug header:
"QA Contact: Hixie (not reading bugmail)"

Regards,
Hasan Ceylan

Revision history for this message
In , Rene Herman (rene.herman) wrote :

My main bug entry is 372039. Most information at #30 there.

But just to get the information here as well -- I'm on Linux, screen size does not seem to matter and there's nothing subjective about "unbearably slow". Trust me; after letting go of the scrollwheel, it can even take up to 10 real seconds for it to stop scrolling. Smooth scrolling is off.

The webpage I'm mentioning as one of the very clearly affected ones:

http://www.bnrmetal.com/v2/search.php?name=black+sabbath

(all band pages there).

Given that I'm quite decidedly not a web-designer, I suppose there are better candidates for enumerating its properties.

With Firefox 2.0.0.15 (to which I've retreated due to this issue) some laggyness can also be observed there but it's much better; in the sense that I hadn't even noticed it before Firefox 3 appeared and undeniably pointed out the problem

The "on Linux" bit may be relevant or not; I haven't a Windows box to test this with. Box on which I am with Linux is (as said in the other bug) an AMD Duron 1300 which is probably slower than most Firefox 3 users use and might account for me seeing the issue at all sizes and on many sites.

Opera 9.5 is lightning fast on all of them by the way.

Revision history for this message
Mathias Burén (mathias-buren) wrote : Re: slow scroll with image as background-repeat

This issue is solved for me with the latest beta driver from NVIDIA. See:

http://www.nvnews.net/vbulletin/showthread.php?t=118085 and

http://www.nvnews.net/vbulletin/showthread.php?t=118088 .

Revision history for this message
H5N1 (h5n1-vir) wrote :

If the problem is cause by the X server or by the GPU driver it wouldn't be an issue of Firefox, isn't it?

Revision history for this message
Mariano Dupont (marianomd) wrote :

I've just downloaded a GTK browser based on WebKit (Safari's engine). It is called "midori", but when trying with

http://lubosz.de/Firefox3PerformanceBug/

Scrolling is terribly jerky and slow. Cpu also goes to 100%.

So I'm lost.

Revision history for this message
In , Junk-jiv (junk-jiv) wrote :

For what it's worth, under my setup (see comment 150) the above site uses 40%, then 20% of the total processing power on my machine during scrolling (it changes about 1/4 of the way down) and has a very noticeable back-and-forth visual jerk at the bottom.

I realize completely that such a live site without a reduced test case (which we already have) isn't very useful. But, it's an interesting real-life example of how this issue and others can collide to yield exceptionally poor performance.

Revision history for this message
cbsim (cbsim) wrote : Re: slow scroll with image as background-repeat

I can confirm this too, scrolling is very slow especially on website like http://www.gamespot.com

Revision history for this message
In , Mozilla-spam (mozilla-spam) wrote :

bug 427431 offers a possible solution. Have any of the Linux devs looked into that?

Revision history for this message
In , Mozilla-spam (mozilla-spam) wrote :

See also bug 201307 which appears to be the problem this is intended to address.

Revision history for this message
Cory Dodt (corydodt) wrote : Re: slow scroll with image as background-repeat

I can confirm the bug, and I can confirm Mathias Buren's workaround, posted 2008-08-19: upgrade Nvidia driver and add performance tweak to xorg.conf. With two caveats.

I installed the newest nvidia beta driver successfully, and followed this thread http://www.nvnews.net/vbulletin/showthread.php?t=118088 to set up initial pixmap placement.

Caveat #1: adding that command to .xinitrc didn't seem to work, I had to run it from the command line. I'm not 100% sure .xinitrc is being run.

Caveat #2: the improvement, while marked, is not a complete fix for this bug. Two sites I used to compare:

  1) Slashdot, jump into the comment threads and scroll. The fixed control box on the left causes a noticeable slowdown normally. With this bug, slashdot comments are tolerable again.
  2) http://www.bnrmetal.com/v2/search.php?name=black+sabbath is a site posted to mozilla bug 201307 as a test case for that bug. It speeds up considerably, but is still extremely slow.

Revision history for this message
Roshan George (roshan-george) wrote :

This seems to be a problem with how Firefox handles fixed images. On Slashdot, if you disable the fixed bar at the top that follows you when you scroll down, performance is much improved.

Revision history for this message
Jean-Christophe Baptiste (jc-baptiste) wrote :

Same problem here. That's incredible that surfing is such a pain in 2008.
Quite frustrating when you have a 512 Mb graphic card and a core 2 duo 2,2 Ghz processor.
I am surprised that this issue has not yet been take seriously, it seems.

Revision history for this message
gdp77 (gdp77) wrote :

I am lost in the whole discussion. Is it finally a firefox issue, a Xorg issue, a video driver issue or what?

Revision history for this message
H5N1 (h5n1-vir) wrote :

@gdp77: I just notice this before: it's not yet clear if this is a Firefox, NVidia or a Xorg issue.
I think this is a combination of different factors since Firefox itself has the same problem with fixed images in other OSs but with less incidence.

Revision history for this message
Mathias Burén (mathias-buren) wrote :

Has anyone noticed any difference with Firefox 3.1b1?

Revision history for this message
gdp77 (gdp77) wrote :

What's the status and the importance of this bug? I think that the developers should make it a priority, since it is verified by many people. Browsing is what the most people do when they use their desktop pc and the "Ubuntu experience" is degraded because of this bug.

Revision history for this message
Roshan George (roshan-george) wrote :

The problem seems to have disappeared for me. The only change I've performed that I remember is upgrading to the 2.6.24-21-generic kernel.

It no longer happens on both 3.0 and 3.1b2

Revision history for this message
Jean-Christophe Baptiste (jc-baptiste) wrote :

I doubt there could be a link with the kernel.

I have seen this issue since at least 2.6.18, though I have been using 2.6.22, 2.6.24, 2.6.25 and currently 2.6.26.

Revision history for this message
Roshan George (roshan-george) wrote :

My CPU usage does go up to 50-60% on each core when I scroll with a fixed image on screen. When there's no such image, the scrolling goes by without any noticeable increase in CPU usage. It's much better than before now, at least it's usable, previously it was hell. But now I can actually smooth scroll, even though it's jerky and the CPU usage goes so high.

Jean-Christophe: I have only downloaded all the updates that came in and I only remember the kernel, some hal, some dbus. Sorry, is there some way I can retrieve a log of all the updates that I have performed in the last few days? Perhaps that will help.

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 125970] Re: slow scroll with image as background-repeat

In my case also it's not fixed

Revision history for this message
gdp77 (gdp77) wrote : Re: slow scroll with image as background-repeat

http://lubosz.de/Firefox3PerformanceBug/

It's not fix with new kernel. It has nothing to do with kernel...

Revision history for this message
Alexander Sack (asac) wrote :

no more info required here. contribute to the upstream bug instead.

Changed in firefox-3.0:
assignee: mozilla-bugs → nobody
status: Incomplete → Triaged
Revision history for this message
ambroise (dambsfr) wrote :

For me this Firefox scroll's problem reappears after Nvidia Drivers installation on Intrepid....

Revision history for this message
Brian (kravitz-brian) wrote :

This definitely seems to be a Firefox problem, as I don't have any trouble scrolling these test sites with Opera on Ubuntu 8.10. I really hope this gets fixed soon; it makes visiting some websites very difficult.

Revision history for this message
In , Mardeg (mardeg) wrote :

*** Bug 455667 has been marked as a duplicate of this bug. ***

Revision history for this message
Squishy (wpxldk) wrote : Re: slow scroll with image as background-repeat

The problems has completely disappeared for me.
I'm not sure whether it's intrepid, the new firefox, or the 180.06 NVIDIA drivers, but http://lubosz.de/Firefox3PerformanceBug/ is smooth as butter for me, even smoother than on WinXP

Well done!

Revision history for this message
Martel (martel) wrote :

Intrepid, Firefox 3.0.4, 180.06 Nvidia beta drivers and http://lubosz.de/Firefox3PerformanceBug/ is still very choppy. It's much better than on earlierNVidia drivers but still pretty unusable on this test site. Athlon XP 2200+, 2 GB RAM, btw.

Revision history for this message
Mathias Burén (mathias-buren) wrote :

Intrepid, Firefox 3.0.3, 180.08 NVIDIA drivers, Linux fackamato-laptop 2.6.28-rc5test #1 SMP PREEMPT Sun Nov 16 14:49:27 GMT 2008 i686 GNU/Linux:

fackamato@fackamato-laptop:~$ nvidia-settings -q glyphcache -q initialpixmapplacement

  Attribute 'GlyphCache' (fackamato-laptop:0.0): 1.
    The valid values for 'GlyphCache' are in the range 0 - 1 (inclusive).
    'GlyphCache' can use the following target types: X Screen.

  Attribute 'InitialPixmapPlacement' (fackamato-laptop:0.0): 2.
    The valid values for 'InitialPixmapPlacement' are in the range 0 - 4 (inclusive).
    'InitialPixmapPlacement' can use the following target types: X Screen.

NVIDIA 8600M GT 256MB DDR2 (Dell Inspiron 1520). Using Gnome, with or without Compiz doesn't matter in this case (performance is the same).

http://lubosz.de/Firefox3PerformanceBug/ is smooooooth. No problems what-so-ever.

Revision history for this message
Nick B. (futurepilot) wrote :

Very strange. After the latest Firefox update http://lubosz.de/Firefox3PerformanceBug/ is very smooth on my laptop which was previously very slow, but on my PC it's still painfully slow. Both computers are using the Nvidia 177.80 driver. Seems to be fixed for some, but not others.

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2

The full page zoom introduced a performance problem on Linux machine (problem doesn't exist on a Windows machine).

The problem is, that in overall, firefox gets slow if the page size is not at the default using full page zoom.

For example, try going to the URL I've provided and try to move the widgets on the right side. If you're at default zoom level, it superfast.

If you'll try to zoom though, it starts to work slow. No matter, if you zoom in or out.

Some pages start to scroll jerky (while at default zoom level scrolling is superfast on every website I've seen - I am talking about Firefox 3.0.4, not the beta I am using, because it works the same). Some pages start to be less responsive on "hover" elements. The known fixed div problem is happening only on not-default zoom level.

Basically, Firefox works great only on default zoom level. After zooming - the performance of some elements is dropped.

This doesn't happen if "Zoom text only" option is enabled. It seems to be related to scaling images. If the website doesn't contain any images, it scrolls/works/renders as fast as normal.

Reproducible: Always

Steps to Reproduce:
1. Go to url provided
2. Try to move the widgets on the right
3. Zoom in or out using full page zoom and try to move the widgets again
4. You can try also iGoogle (www.google.com/ig - you're not moving any images, only widgets drawn with css, but the performance is still slow)
Actual Results:
Overall performance is dropped when full page zoom is enabled and the site is zoomed.

Expected Results:
Firefox should behave the same no matter what is the zoom level.

This is not a problem with my setup (because I worked on many Linux machines and all behave the same, no matter if this is intel/nvidia/nv/ati driver).

Even if I'll shrink the page to the smallest possible (so widgets are taking only few pixels of space) - it's still slow.

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

By the way - it might be leaking memory? After resizing the website to the smallest size possible, restoring the default zoom level doesn't help. Restarting Firefox helps.

Revision history for this message
In , Mozilla-spam (mozilla-spam) wrote :

For FF 3.1b2:

   Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2

This appears to be finally fixed. I was able to see the problem on all of the test sites; all of them are now MUCH faster. Possibly tracemonkey?

Revision history for this message
In , Balzer (balzer) wrote :

Created an attachment (id=354574)
testcase from real-world intranet with just one fixed div

No, this issue is NOT fixed with FF3.1b2 -- just checked.

Test system: Just upgraded my laptop to openSuSE 11.1 (kernel 2.6.27.7-9-default, xorg-x11-server-7.4-17.3, gnome-desktop-2.24.1-2.16, ATI Mobility Radeon 9600 M10 RV350 with open source driver xorg-x11-driver-video-radeonhd-1.2.3_081202_ed532a7-1.1 (closed source does not work)).

First checked with FF3.0.5, then after reading the updates here with FF3.1b2: Same results.

See attached testcase for our simplified intranet support ticket form. The fixed div in reality contains common text modules for our customer support.

I intentionally left the scrolling content "complex" (table with form elements) to retain a measurable difference:

FF3.0.5 and FF3.1b2:
 Scrolling top-bottom: 7 seconds
 ...with fixed div outside visible window area: 3 seconds

FF2.0.0.20:
 3 seconds, no matter if the div is visible or not

You may say 7 seconds over 3 is not that much a difference, but a) it feels much worse when scrolling by mouse wheel and b) it adds if you're working on lots of tickets a day. I let two of our support staff members check the FF3 test setup and both said it's unacceptably slow.

Just a thought about all these WFM messages in the bug history: I'd say this is a clue where to seek the bug. It seems to me this bug occurs only with certain graphics drivers. So if the FF3 rendering engine uses other low level functions for scrolling than FF2, i'd suggest testing if these functions perform well with all graphics drivers. Maybe one of these low level functions is rarely used from other applications and thus poorly optimized with some graphics drivers.

Revision history for this message
gdp77 (gdp77) wrote :

Whoever finds the cause/fix for this bug must be awarded with nobel prize! We are dealing with a major browsing experience degrade and nobody knows how to fix it. A big percentage of linux users are suffering from this bug. I am not sure why mozilla doesn't take it seriously...

Revision history for this message
Aswarp (aswarp2002) wrote :

I will tell the problems that I am finding with Firefox upon upgrading to Kubuntu Intrepid Ibex. My system is kubuntu 8.10 with all the updates for 2008 applied, Nvidia GF6600 with driver 177, Compiz active, dual core i386 CPU.

Along woth the nasty known bug about right clicking (opens random item), I see that the images for the firefox tabs are not being rendered correctly on the screen. I can see an artifact just below some of them, like a grey line 5 to 10 pixels thick on most of the tabs. When I write in a webpage such as in this launchpad textedit field can not see the cursor, which is very annoying, specially when one does ctrl+arrow_pad_key in order to scroll some words back or forth; I have to write to see where the cursor is located, which can cause some websites operations mistakenly to be activated. Changing from one tab to another is extremely slow, as scrolling is. Whenever I perform any operation in firefox, such as opening a menu option, the program freezes for some seconds, ranging from one to thirty or so, then it performs the operation. I find that I can make it respond sometimes if I invike yakuake console with F12, detracting and retracting it back again seems to cause Firefox to update the window rendering.
All in all, this makes Firefox for me completely useless and really, really enraging when there is work to be done.
I pray the gods to fix all this rubbish once and for all. My theory is that all the good firefox developers have escaped to join Google Chrome...

Revision history for this message
Ohad Lutzky (lutzky) wrote :

Mathias: Holy crap! Those nvidia-settings made all the difference in the world for me!

---- Stats ----

ohad@rabbit:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8600GT (rev a1)
ohad@rabbit:~$ cat /proc/cpuinfo | grep 'model name'
model name : Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
model name : Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
ohad@rabbit:~$ cat /proc/meminfo | grep '^Mem'
MemTotal: 2071684 kB
MemFree: 228652 kB
ohad@rabbit:~$ glxinfo | grep -i version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.3
OpenGL version string: 2.1.2 NVIDIA 177.80
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler

---- Before ----
Scrolling is sluggish on some sites, especially those heavy with Javascript and images. This would occur whether compiz was on or off. http://lubosz.de/Firefox3PerformanceBug/ causes Firefox to slow down to a crawl (and to gray out in compiz). Everything would work just fine under windows running within Virtualbox... how embarassing.

ohad@rabbit:~$ nvidia-settings -q glyphcache -q initialpixmapplacement

  Attribute 'GlyphCache' (rabbit:0.0): 0.
    The valid values for 'GlyphCache' are in the range 0 - 1 (inclusive).
    'GlyphCache' can use the following target types: X Screen.

  Attribute 'InitialPixmapPlacement' (rabbit:0.0): 1.
    The valid values for 'InitialPixmapPlacement' are in the range 0 - 4
    (inclusive).
    'InitialPixmapPlacement' can use the following target types: X Screen.

---- Workaround ----

ohad@rabbit:~$ nvidia-settings -a glyphcache=1

  Attribute 'GlyphCache' (rabbit:0.0) assigned value 1.

ohad@rabbit:~$ nvidia-settings -a initialpixmapplacement=2

  Attribute 'InitialPixmapPlacement' (rabbit:0.0) assigned value 2.

---- After ----

Scrolling is silky smooth, even on http://lubosz.de/Firefox3PerformanceBug/

I have no idea what those nvidia-settings mean, or whether they are persistant, but this is definitely worth checking out.

Revision history for this message
Brian (kravitz-brian) wrote :

Wow! Changing those nvidia-settings fixed the problem for me, too. Great find! Mozilla still needs to address this problem, though.

Revision history for this message
Jean-Christophe Baptiste (jc-baptiste) wrote :

It did the trick for me too. Thank you very much !
However, it still consumes too much CPU. And scrolling this present page is still too slow...
How can it be that Mozilla hasn't addressed that yet ?

Revision history for this message
Brian (kravitz-brian) wrote :

After further usage, the nvidia-settings workaround makes other things worse, such as causing my Cairo Dock to crawl when trying to access it, which boosts CPU usage up to 100%. It also resets upon restarting my computer, so the settings would have to somehow be made permanent. Maybe it won't affect other people's CPUs, though.

Revision history for this message
Roshan George (roshan-george) wrote :

The glyphcache option doesn't seem to exist on Ubuntu 8.04.1:

    $ nvidia-settings -a glyphcache=1

    ERROR: Error parsing assignment 'glyphcache=1' (Unrecognized attribute name).

Revision history for this message
gdp77 (gdp77) wrote :

The problem exists even on a live CD with no nvidia drivers. The workaround above is not the solution.

Revision history for this message
Ohad Lutzky (lutzky) wrote :

This problem doesn't occur for me with nvidia-glx-180.

Revision history for this message
Nenad Radulovic (blueskyniss) wrote :

Because they enabled those settings automatically in 180

Revision history for this message
In , Mardeg (mardeg) wrote :

*** Bug 474183 has been marked as a duplicate of this bug. ***

Revision history for this message
gdp77 (gdp77) wrote :

I installed 180.11 from synaptic (ubuntu 8.10) and the problem disappeared!!!

HUGE DIFFERENCE IN FIREFOX!!! Now http://lubosz.de/Firefox3PerformanceBug/ FLIES!!!!

My ati powered laptop though still has the problem.

I wish ATI finds the solution fast

Revision history for this message
Brian (kravitz-brian) wrote :

Installing 180.11 seems to have worked for me, too. I haven't done extensive testing, but everything seems normal and the performance bug pages scrolls normally. I'm also not having the problems with Cairo dock that I had when I tried the previous workaround.

I still wonder whether the problem is with Nvidia or Mozilla, though.

Revision history for this message
Tim (aardbeiplantje) wrote :

Can someone check https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/242562 ?

The problem is IMHO 'in firefox', probably cairo, as that does the rendering (?!). On software based X servers the problem doesn't go away. The beta 180.16 drivers from nvidia make the problem dissapear on a PC.. with an NVIDIA card. ATI never had that problem I think, from googling around, and testing at work with ATI boxes on ubuntu 8.04.

SunRays 1g however have an all software X server, and the problem is really bad there. Same on PS3 framebuffer X server. It is escpecially the case when the webpage must be re-rendered for some reason, e.g. on slashdot when going through the comments, the div box at the left on the page stays at the same height. Regular large pages that are static don't have a problem.

Revision history for this message
Cory Coager (ccoager) wrote :

I have the same issue:

Kubuntu 8.10 64bit
Intel dual core 3.0ghz
8gb ram
nVidia 8400 GS

I tried upgrading nvidia drivers to 180.11, tried disabling all firefox plugins, tried disabling compiz, nothing fixed the problem. One interesting thing to note is I run VMware on the same machine and my Windows VM with firefox runs fine.

Anymore ideas?

Revision history for this message
In , Zéfling (zefling) wrote :

I have : Win XP - AMD A64 3800+ - 1 Go - VIA/S3G DeltaChrome IGP

I use a complexe CSS menu on my website ( http://ikilote.net ) with transparent images.

The scroll is a little slow on Firefox 3.0.7 and it's worse on 3.5b3. On other webbrowser it's not slow.

Revision history for this message
In , Eugene Miller (theerm) wrote :

I think this might have something to do with the nvida video card. On my laptop things scroll fine, and on my desktop it's VERY slow.

Revision history for this message
In , From-bugzilla2 (from-bugzilla2) wrote :

Quite possibly. All the machines I use have nVidia cards. If that's the case, then there are two questions to be asked:

1. What do the nVidia drivers do wrong that Firefox depends on?
2. What do other browsers do which dodges the problem?

Revision history for this message
In , Rene Herman (rene.herman) wrote :

No, it's not (intrinsically) tied to nVidia. I used to experience this on Matrox G550, am now experiencing it on integrated Intel 865G.

Revision history for this message
In , Absorbb (absorbb) wrote :

(In reply to comment #160)
> I think this might have something to do with the nvida video card. On my
> laptop things scroll fine, and on my desktop it's VERY slow.

Maybe you laptop with Vista OS
and desktop with XP.

I have information that same browsers renders pages with fixed elements on Vista much faster that on XP.
Maybe it is because new 2D infrastructure in vista.

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

It's not tied to NVIDIA or Vista... on my Linux computer with NVIDIA graphics card Firefox works very fast, when on Vista computer with NVIDIA card scrolling on such pages is slow. I have 512MB of RAM on my graphics card on Linux computer, and 256MB RAM on Vista computer - maybe this is the issue? I've also noticed, that Firefox's performance drops dramatically when not on default zoom level.

I have lags when page is shrinked or enlarged, but when it's on defualt zoom (CTRL+0) it works perfectly.

I think this bug is tied to slow zooming on Linux and slow performance when zoom level is not at default (https://bugzilla.mozilla.org/show_bug.cgi?id=468726).

Revision history for this message
In , From-bugzilla2 (from-bugzilla2) wrote :

My brother's got 1GiB of VRAM on Vista and he still has this problem at roughly the same level that I have with 256MiB on Linux.

However, I have noticed that Firefox is a lot more sensitive than other browsers to the optimizations for composited desktops on Linux. Konqueror, Opera, and friends work like a charm no matter how video is configured. Firefox's normal operation was sluggish enough to drive me nuts (as its normal state of being) until I finally combined Firefox 3, KWin 4.x compositing, and the tweaks to the nVidia drivers to make compositing work acceptably fast.

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

On Linux, it's quite likely that our "sensitivity" is because we use cairo's X backend (i.e. depend on Xrender and friends), but other browsers do their rendering in software and just send over complete bitmaps.

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

(In reply to comment #166)
> On Linux, it's quite likely that our "sensitivity" is because we use cairo's X
> backend (i.e. depend on Xrender and friends), but other browsers do their
> rendering in software and just send over complete bitmaps.

Not true, WebKitGTK does the whole rendering in Cairo too and it's ten times faster than Firefox on Linux (but less stable). Take a look at Midori and compare the rendering speed and zoom speed.

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Is it using the cairo X backend or the image backend?

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

To be honest, I don't know. They just state they have Cairo graphics backend for GTK port, as they state here (under Shared Code Modules, it seems they are using it for image and SVG rendering):

http://trac.webkit.org/wiki/HackingGtk

For me, with the newest NVIDIA drivers for Linux, problem doesn't exist if the fixed element is an image(like fixed background). If the fixed element contains some text, it starts to get laggy, and if I resize the page (doesn't matter if I enlarge or shrink it) the scrolling is very laggy.

The problem on Linux starts here:

- resize the page: everything will start working a lot slower
- resize text only: everything is ok
- resizing takes a lot of time (few secs to resize Wikipedia once to a certain level, where Opera can do 7-8 resizes a second to make it look smooth). It seems Firefox doesn't reuse the fonts it loaded, it just loads them on every resize until they'll get cached in memory.

I think the worst problem exists with fonts and Pango backend - Firefox 2 behaved this way, using MOZ_DISABLE_PANGO=1 helped A LOT. But there is no way of disabling this in FF3. I believe this is the source of other bugs (like this one).

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Try a nightly trunk build, font caching and text resizing has improved a lot there.

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

(In reply to comment #170)
> Try a nightly trunk build, font caching and text resizing has improved a lot
> there.

Just tried it. Can't wait for Firefox 3.5!

Works still slower than Opera, but it's like 10 times faster than it was on Firefox 3.1, which had problems resizing plain google site (1-2 sec delay). Now it's SMOOTH. Web surfing is smooth and convenient with new FF. And that's how it's supposed to work. Great job!

Revision history for this message
In , bernhard (bernhardredl) wrote :
Revision history for this message
In , bernhard (bernhardredl) wrote :

I removed all the position:fixed values in the css file and the scrolling on the resulting page is very fast.

http://stinkt.kicks-ass.org/1b6cc1af2e8437646c9b7422d78e6eb3/no_css_fix_pos.html

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

Hmm... seems to be fixed in 3.5b4. Even the slowest websites work like a charm now! This version ROCKS and it's superfast in Linux too. Thanks!

Revision history for this message
In , Tyler Downer (tyler-downer) wrote :

I am glad your issue has been resolved, but that makes this bug WORKSFORME. FIXED is only for a bug that has had a known patch checked into the tree, which has not happened in this case.

Revision history for this message
In , Mardeg (mardeg) wrote :

*** Bug 496786 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Zéfling (zefling) wrote :

With Firefox 3.5 R1, in fullscreen mode [F11] the scroll is normal, but with the interface, the scroll is slow.

Revision history for this message
In , sabby7890 (tsalacinski) wrote :

Hello,

I just want to tell you that 3.5 version is very fast too. I've tested it on different computer (both with Fedora 11) and it works like a charm.

And for the patch:
I've read somewhere (can't remember where, sorry) that Firefox 3 had issue with artifacts when page was resized, that's why Mozilla Devs tried a workaround that made the pages look great but killed the performance when the page was resized. This seems to be dropped as I can see artifacts again in Firefox 3.5, but it boosted the performance.

Also, resize speed is much faster because of a lot better font caching.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Is this bug still reproducible in latest version of Firefox in repos

Changed in firefox:
importance: Unknown → Medium
Revision history for this message
Mathias Burén (mathias-buren) wrote :

Starcraft2.com scrolls fine on my i915 GPU (thinkpad t420) with FF 16. Is there another test case?

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Closing Firefox 3 task. Why is the firefox (Ubuntu) task as Won't Fix marked?

Changed in firefox-3.0 (Ubuntu):
status: Triaged → Incomplete
status: Incomplete → Invalid
Changed in firefox:
status: Confirmed → Unknown
Changed in firefox:
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.