Closed Bug 295837 Opened 20 years ago Closed 17 years ago

Large SVG gradients cause slow scrolling

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: simsalabimladen, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050521 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050521 Firefox/1.0+

SVG images with gradients result in choppy scrolling, and the bigger the
gradients are, the worse the performance gets. One of SVG's major advantages is
scaling well, and this will harm the adoption rate.

This also occurs when the gradient is invisible, i.e. it goes from green to green.

Reproducible: Always

Steps to Reproduce:
1. Go to a site with a large SVG with gradients.
2. Scroll.

Actual Results:  
Slow, choppy scrolling.

Expected Results:  
Fast, unchoppy scrolling.
This demonstrates how Gecko will render an SVG with a simple linearGradient and
be slow with scrolling. This linearGradient looks exactly like fill: #00f; .
There's no doubt this should be corrected/improved.  You can verify it by
checking out this:  http://www.codedread.com/yastframe.php and
checking/unchecking "Gradient Background" while playing...
Keywords: testcase
To me, it looks like the trunk no longer has this performance issue - the test case scrolls fine and the game doesn't seem to have any performance difference whether the background has a gradient or not...

Can we WONTFIX it?
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: