Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate transition effects from thumbnail loader #6026

Merged
merged 1 commit into from
May 18, 2015

Conversation

mcorb
Copy link
Contributor

@mcorb mcorb commented May 16, 2015

During A/B testing we found a significant preference (increased engagement
time, reduced downloads of original PDF for local viewing) for the version that
doesn't animate loading thumbnails.

Profiling shows that the transition effects hit at a pessimal time when the
compositor is busy rendering the main PDF page view, and rendering thumbnail
previews, causing the main scroll view to stutter. With the transition removed
scrolling is perceptibly smoother in Chrome and Firefox. We also hypothesize
that the transition effects added to a perception of slowness but presumably
the aforementioned stutter is the primary issue here.

During A/B testing we found a significant preference (increased engagement
time, reduced downloads of original PDF for local viewing) for the version that
doesn't animate loading thumbnails.

Profiling shows that the transition effects hit at a pessimal time when the
compositor is busy rendering the main PDF page view, and rendering thumbnail
previews, causing the main scroll view to stutter. With the transition removed
scrolling is perceptibly smoother in Chrome and Firefox. We also hypothesize
that the transition effects added to a perception of slowness but presumably
the aforementioned stutter is the primary issue here.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/d2eb4881d38b6c5/output.txt

@timvandermeij
Copy link
Contributor

Do you have a PDF where the effect is clearly visible according to you? I also don't see the use of the transition effects, but having them removed I don't notice any change in scrolling behavior either. Perhaps it's not clearly visible with the Tracemonkey paper.

@CodingFabian
Copy link
Contributor

I tend to agree with the change, scrolling documents goes down below 30 fps often, which means that this transition usually is active for only 2-3 frames. which is hard different from turn on and off. so there is unnecessary work for the browser to render which you won't see.

@mcorb
Copy link
Contributor Author

mcorb commented May 16, 2015

The UI stutter happens when scrolling through more complex PDFs (containing scaled graphics etc.) so won't be exhibited by the Tracemonkey document.

I can dig up an example when I'm back in the office Monday but scrolling fast through any graphics-heavy PDF should highlight the issue.

We initially thought the slowdown was due to our Retina patch from #6025 (where the stutter is more pronounced) but it turned out the culprit was the thumbnail transition.

brendandahl added a commit that referenced this pull request May 18, 2015
Eliminate transition effects from thumbnail loader
@brendandahl brendandahl merged commit 46f06b4 into mozilla:master May 18, 2015
@CodingFabian
Copy link
Contributor

thanks @mcorb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants