-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Conversation
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.
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/d2eb4881d38b6c5/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/d2eb4881d38b6c5/output.txt Total script time: 0.67 mins Published |
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. |
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. |
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. |
Eliminate transition effects from thumbnail loader
thanks @mcorb |
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.