Closed Bug 255703 Opened 20 years ago Closed 13 years ago

Scrolling performance with transparent background has regressed since 1.8a1

Categories

(Core :: Graphics, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stephen.moehle, Unassigned)

References

()

Details

(Keywords: perf, regression, testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040815
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040815

Scrolling performance on pages with background images regressed sometime between
1.8a1 and 1.8a2.  In this particular case, the background image is fairly large
- 800 x 768 with about 2/3 of it being transparent.  In 1.8a2 and the latest
trunk builds, scrolling is very jerky with the scrollbar thumb not keeping up
with the mouse at all.  It also looks like some mouse events are being lost
since, when scrolling stops, the thumb never catches up to the current mouse
position.  If the mouse is moved even only 1 pixel, the thumb will jump to the
correct position.  If the thumb is dragged slowly enough, scrolling is nice and
smooth.  So to replicate, scroll faster.

In 1.8a1, scrolling is much smoother, even when dragging the thumb very fast. 
The thumb does lag the mouse somewhat but nothing as bad as it is now.

If the background image is removed, scrolling is performance is OK.

I see this problem on Windows XP as well as Linux, but the effect is much more
pronounced on Linux.

Reproducible: Always
Steps to Reproduce:
1. Load the attached test case.
2. Scroll up and down at different speeds by dragging the thumb with the mouse.
3. Notice that the faster the thumb is dragged, the worse scrolling performance
seems to get.
Summary: Scrolling performance had regressed since 1.8a1 → Scrolling performance has regressed since 1.8a1
Well, I finally found archive.mozilla.org. This regressed between 2004-06-01-05
and 2004-06-02-06 Linux trunk.  In that window, I found bug 241939, and if I
backout the changes made to mozilla/gfx/src/gtk/nsImageGTK.cpp for revision
1.136, the problem goes away and scrolling becomes smooth and responsive.

Changing component and CC'ing the guilty party.
Component: Layout → GFX: Gtk
None of the patches in bug 241939 change nsImageGTK.
Oops. Wrong bug, sorry. It is really bug 244506. CC'ing real guilty party.
What graphics card and version of X server are you running?
I am running Fedora Core 2, fully patched, so that is X.org 6.7.0 and the video
card is an ATI Radeon Mobility something-or-other.  I am using the stock X.org
radeon driver, not the ATI ones.
I'm seeing the same thing with a similar setup (FC2, ATI card with X Radeon driver)

marking NEW
Assignee: nobody → tor
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: core.layout → ian
As this is also visible on win32 should we change OS to ALL?
not unless win32 uses nsImageGtk.cpp.
Flags: blocking1.8a6?
While the old tiling method code was added back in for use with buggy
servers (bug 256328), this seems to be a problem that the raster
operations being used by the new method are unaccelerated or slow
with your particular card/driver combination.  Without adding a
benchmark framework to gfx (which we don't really want to do) we
can't test to see if the old method should be used.

Since a fix isn't on the table and the new method should be faster
for most people, marking 1.8a6-.
Flags: blocking1.8a6? → blocking1.8a6-
*** Bug 317446 has been marked as a duplicate of this bug. ***
Summary: Scrolling performance has regressed since 1.8a1 → Scrolling performance with transparent background has regressed since 1.8a1
WFM, Firefox trunk on Linux.

Does anyone else still see this bug in a recent trunk build?
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a6pre) Gecko/20070606 Minefield/3.0a6pre

Works for me, too. If anyone can reproduce in a trunk build, please reopen.

->WORKSFOMRE
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
With linux build 2007-06-18-09-trunk, it still takes ~1 second to paint each page (after hitting pgdn) with the attached testcase.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Product: Core → Core Graveyard
Andrew (or anyone), still see this with newer trunk?
WFM with 8.0 (probably not the same graphics card, though).  I see this has been reopened before, so I'm also gonna recategorize it under Core:Graphics in case it needs to be reopened again.
Assignee: tor → nobody
Status: REOPENED → RESOLVED
Closed: 17 years ago13 years ago
Component: GFX: Gtk → Graphics
Product: Core Graveyard → Core
QA Contact: ian → thebes
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: