The default bug view has changed. See this FAQ.

Large (1000x1000px) SVG backgrounds are extremely slow to scroll

RESOLVED INCOMPLETE

Status

()

Core
SVG
RESOLVED INCOMPLETE
6 years ago
3 years ago

People

(Reporter: atul, Unassigned)

Tracking

({perf})

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

6 years ago
Created attachment 569727 [details]
Simple HTML page with DIVs that contain SVGs as backgrounds

The following attachment doesn't phase Mobile Safari on an iPhone 4, yet it brings my Macbook Air to a crawl when viewed using the latest Firefox Nightly.
Hmm.  Seems to work OK here, but on an mbp, not an air.

Would you be willing to use a shark nightly and generate a sample?
(Works fine for me on my Linux desktop, too, but it's got a good bit more power than the Air.)

Comment 3

6 years ago
No problem on Windows either.
(Reporter)

Comment 4

6 years ago
Sure, where can I get a shark nightly and how do I generate a sample?
(Reporter)

Comment 5

6 years ago
Oh, I should also mention that just having the page open doesn't slow down my air--it's specifically the act of scrolling w/ a mousewheel that causes lots of stuttering and such. (Most pages scroll just fine with the mouse wheel.)
Yup, I figured that from the bug title -- I was referring to mousewheel scrolling in comment 2.  FWIW, my firefox CPU usage doesn't go over ~20% while I'm scrolling.  (This is true even if I enable the 'general.smoothScroll' pref - still nice and smooth & CPU usage doesn't go over around 20%)
You can get the latest shark nightly at http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-10.0a1.en-US.mac-shark.dmg

As far as generating a sample, the simplest thing to do is to open Activity Monitor, select Nightly in the list, click the "Sample Process" button, and in the next several seconds do a bunch of scrolling over in the Firefox window.  Once the sample has been generated, copy and paste it into a text file and attach the file here.

Updated

5 years ago
Keywords: perf
Hmm, the attachment doesn't work anymore because the:

  <base href="http://labs.toolness.com/temp/festival-maps/">

isn't being used when resolving the path for the:

  <link rel="stylesheet" href="floors.css">

Was that an intentional change at some point?
The <base> is in fact being used.  It's just that non-https subresource loads from an https page (like the bugzilla attachment page) are blocked by default in current nightlies.  You can unblock it for one load by clicking the little near-invisible shield icon to the left of the lock icon in your url bar and selecting "Disable Protection on This Page" from the dropdown.

Updated

4 years ago
Created attachment 754166 [details]
zip of live example
For what it's worth paint-flashing isn't showing any invalidation issues.

Maybe bug 764299 will make the scrolling a bit smoother.
Depends on: 764299
Atul, since you were the only person who experienced this, can you retest this using latest Nightly, both with with image.mem.surfacecache.max_size_kb set to its default value, and with it set to zero. (To help distinguish between whether bug 764299 helped or not.)
Flags: needinfo?(avarma)
Atul, if you still experience this please do reopen.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(avarma)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.