New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 646719 link

Starred by 5 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Compat



Sign in to add a comment

Sluggish scrolling (low frames per seconds)

Project Member Reported by phistuck@gmail.com, Sep 14 2016

Issue description

UserAgent: 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).
 
Components: Blink>Scroll
Status: Untriaged (was: Unconfirmed)

Comment 2 by bokan@chromium.org, Sep 15 2016

Cc: bokan@chromium.org
Components: -Blink>Scroll Blink>Paint
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.
trace_janky_scroll.json.gz
2.7 MB Download
Owner: wangxianzhu@chromium.org
Status: Unconfirmed (was: Untriaged)
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.
Status: Available (was: Unconfirmed)
Cc: chrishtr@chromium.org
Components: -Blink>Paint Blink>Compositing
Labels: -OS-Windows -Pri-2 OS-All Pri-3
Owner: ----
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.


trace_github-composited-scroll.json.gz
1.4 MB Download
Cc: wangxianzhu@chromium.org
Cc: flackr@chromium.org
Cc: brian.te...@gmail.com
 Issue 665223  has been merged into this issue.
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.
fixed-and-many-layers-scroll.html
639 bytes View Download
Project Member

Comment 11 by sheriffbot@chromium.org, Mar 9 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)
I'm tempted to WontFix this now. The page scrolled fine for me just now.

Add your thoughts or just WontFix it.
Status: WontFix (was: Available)

Sign in to add a comment