Sluggish scrolling (low frames per seconds) |
||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36 Example URL: https://github.com/mdittmer/web-apis/blob/fd8ba1f1a491897025b7bd78bd887c9bec302193/data/og/object_graph_Chrome_47.0.2526.107_iPad_8.4.json Steps to reproduce the problem: 1. Go to the URL. 2. Scroll, with either the keyboard arrows, PageUp, PageDown, the scroll bar, or the mouse wheel. What is the expected behavior? Smooth scrolling. What went wrong? Sluggish scrolling. Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 53.0.2785.101 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 22.0 r0 Firefox is stuck at first when rendering the page, but the scrolling is smooth. Internet Explorer 11... Well... I am still waiting for the page to become interactive. It is completely stuck. So, I cannot scroll there at all. :) I gave up after a minute. Note that I changed overflow-x: auto to overflow: hidden on the code area since the Developer Tools show that it repaints on scroll (but I guess it repaints on scrolling that element and not the window, unclear).
,
Sep 15 2016
Confirmed the page feels unusually janky on 55.0.2859.0. Attached trace shows frequent ~15ms hit tests, ~25ms compositing updates, and ~13ms paints with occasional very long (~330ms) invalidations. Doesn't look like we're creating many layers in DevTools but we're definitely exploding some data struct on this extremely large page. Over to paint team for someone there to take a look.
,
Sep 15 2016
It's scrolling at about 10-15 fps for me, according to DevTools, with no major lags on Win 7, 54.0.2840.27 beta-m. Canary also seems OK to me, apart from a little initial jank. Passing along to wangxianzhu@ given the invalidation cost in the trace. But I'm not sure this is actionable and not something to be fixed when we enable compositing of opaque scrollers in an upcoming release. Interestingly, if you turn on Paint Flashing in DevTools we must start compositing the scroller because it jumps to 60fps and we don't repaint. There's something really odd there.
,
Sep 21 2016
,
Jan 9 2017
I think we can skip investigation on the main-thread scrolling path for the case. 10-15 fps for the slow path seems acceptable. We should investigate how to enable fast path for the case and performance issues of the fast path instead. Tried --enable-prefer-compositing-to-lcd-text and collected a trace. The trace shows the following performance issues: - Some times there are 2 hit tests (each 15~20ms) in one frame cycle. - Compositing update is slow (each 30~40ms). Possible TODOs: - investigate what prevents us from using composited scrolling; - investigate the performance issues of compositing update. I'm lowering the priority because we might not address these issues on SPv1. We should definitely check performance of SPv2 for this case. DevTools shows 60fps with Paint Flashing, but trace shows the average frame time is the same, so DevTools is showing false fps with Paint Flashing. Will file another bug for it.
,
Jan 9 2017
,
Jan 9 2017
,
Mar 1 2017
,
Mar 2 2017
Created a reduced test case. You can scroll it and capture trace, or put it into third_party/WebKit/PerformanceTests/Paint and it will test automatically and give report. There is a fixed-position element and many small layers.
,
Mar 2 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/fd7fc207884807c1b5365c191cf6d5cb55e33f4c commit fd7fc207884807c1b5365c191cf6d5cb55e33f4c Author: wangxianzhu <wangxianzhu@chromium.org> Date: Thu Mar 02 02:13:30 2017 Add several tough paint performance tests These tests are based on the test cases in the bug reports to demostrate slow compositing, paint invalidation and perhaps also painting. BUG= 646719 , 665223 , 692614 Review-Url: https://codereview.chromium.org/2723243002 Cr-Commit-Position: refs/heads/master@{#454152} [add] https://crrev.com/fd7fc207884807c1b5365c191cf6d5cb55e33f4c/third_party/WebKit/PerformanceTests/Paint/complex-content-slow-scroll.html [add] https://crrev.com/fd7fc207884807c1b5365c191cf6d5cb55e33f4c/third_party/WebKit/PerformanceTests/Paint/containment-resize.html [add] https://crrev.com/fd7fc207884807c1b5365c191cf6d5cb55e33f4c/third_party/WebKit/PerformanceTests/Paint/fixed-and-many-layers-scroll.html
,
Mar 9 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 9 2018
I'm tempted to WontFix this now. The page scrolled fine for me just now. Add your thoughts or just WontFix it.
,
Mar 9 2018
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by phistuck@chromium.org
, Sep 14 2016Status: Untriaged (was: Unconfirmed)