Closed Bug 1070722 Opened 10 years ago Closed 10 years ago

[Mac] Imgur slow to scroll. Single image display item takes 1.2 seconds to draw

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35
Tracking Status
firefox35 + fixed

People

(Reporter: BenWa, Assigned: mattwoodrow)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

URL: http://imgur.com/a/U8pSW http://people.mozilla.org/~bgirard/cleopatra/#report=49e182f4df7923395dd0f69f9f58a3299ed40bf0 I've noticed imgur being really bad lately. It feels almost unusable without adblock. Chrome can scroll this page smoothly. Comparing the two, their progressive decode is much more noticeable then ours. But if you look at the profile the problem is the time it takes to draw the image. Jeff do you remember what the resample_byte_*_cpp_vector paths are? Is this high quality downscale?
Flags: needinfo?(jmuizelaar)
[Tracking Requested - why for this release]: This is a severe performance regression. A regression window here would really help.
Summary: Imgur slow to scroll. Single image display item takes 1.2 seconds to draw → [Mac] Imgur slow to scroll. Single image display item takes 1.2 seconds to draw
See Also: → 1070772
The profile is spending time in hq downscale. Perhaps this is broken caching of downscaled results.
Flags: needinfo?(jmuizelaar)
This is hopefully the right range: Last good nightly: 2014-09-03 First bad nightly: 2014-09-04 Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=e58842c764dd&tochange=776fa9cf70cd
Tiling (bug 982338) is in that range. Maybe we're doing a whole-image downscale for each tile that an image covers?
Yup, that's it. Confirmed through bisecting.
I disabled the OptimizeSourceSurface code since we no longer get much benefit from retaining the CGImage and it lets us skip a copy of the image data.
Assignee: nobody → matt.woodrow
Attachment #8494051 - Flags: review?(jmuizelaar)
Comment on attachment 8494051 [details] [diff] [review] Disable Quartz high-quality downscaling And enable our own HQ downscaler in the prefs on mac?
Attachment #8494051 - Attachment is obsolete: true
Attachment #8494051 - Flags: review?(jmuizelaar)
Attachment #8494061 - Flags: review?(jmuizelaar)
Comment on attachment 8494061 [details] [diff] [review] Disable Quartz high-quality downscaling v2 Review of attachment 8494061 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/2d/DrawTargetCG.cpp @@ +249,5 @@ > > TemporaryRef<SourceSurface> > DrawTargetCG::OptimizeSourceSurface(SourceSurface *aSurface) const > { > + return aSurface; Can we do this change separately?
Attachment #8494061 - Flags: review?(jmuizelaar) → review+
(In reply to Jeff Muizelaar [:jrmuizel] from comment #10) > > Can we do this change separately? Sure, how separately do you want? Different patches, different landings, different bug?
Separated landings, so that regression windows find the other one.
https://hg.mozilla.org/integration/mozilla-inbound/rev/b5705fbed44f Landed the first half, will land the rest soon.
Keywords: leave-open
I justed tested with today' night. Things are better. We're still a tad jerky scrolling pages with large images however.
You should get a profile :) I've noticed huge janks when the flash ad becomes visible, you wouldn't be getting that if you have adblock though.
You want to solve this here or spin off a new bug?
Probably a new bug, we've already fixed something here.
Blocks: 1076674
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Depends on: 1078337
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: