Open Bug 1673070 Opened 4 years ago Updated 2 months ago

Scrolling janky on amp page of Gadgets360 site

Categories

(Core :: Graphics: WebRender, defect, P3)

Firefox 84
Unspecified
Android
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bullionareboy, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

Use latest Nightly on Android
Visit https://www.google.com/amp/s/gadgets.ndtv.com/tv/reviews/xiaomi-mi-box-4k-review-price-in-india-2233441%3famp=1&akamai-rum=off
Scroll the page

Actual results:

Scrolling is sticky/choppy near the title of the page and its image.

Expected results:

Smooth scrolling should be present

This is working fine for me. If you can still reproduce it, can you get a profile using https://profiler.firefox.com/ ? (see this page in the documentation for how to use it on Android). Thanks!

Flags: needinfo?(bullionareboy)

(In reply to Kartikaya Gupta (email:kats@mozilla.staktrace.com) from comment #1)

This is working fine for me. If you can still reproduce it, can you get a profile using https://profiler.firefox.com/ ? (see this page in the documentation for how to use it on Android). Thanks!

@kats its still happening here's the profile:
https://share.firefox.dev/35c39Wt

Hope it helps

Also this page same issue:
https://gadgets.ndtv.com/social-networking/news/facebook-ankhi-das-quits-steps-down-sunil-abraham-public-policy-director-2316567?amp=1&akamai-rum=off&__twitter_impression=true

Flags: needinfo?(bullionareboy)

https://share.firefox.dev/2GJ5GxT shows a long WR composite. If you look at the whole profile the web content paint also seems to take long time on some filter nodes, although that shouldn't result in janking.

Component: Panning and Zooming → Graphics: WebRender
Summary: Scrolling broken on amp page of Gadgets360 site → Scrolling janky on amp page of Gadgets360 site

Bull500, what phone is this on?

Jamie, do you see bad performance on this on adreno?

Flags: needinfo?(bullionareboy)
Flags: needinfo?(jnicol)

:jrmuizel its a Redmi Note 7S

Flags: needinfo?(bullionareboy)

That means Adreno 512

I can repro on my Pixel 2. Profile looks much the same, texture upload is the culprit. If it's due to many small uploads my recent change (which should be in the next nightly) should help. But more likely it's due to a single massive upload, which it won't help with.

Interestingly I can't reproduce the slowness on my Mali Samsung S9.

I will find out what exactly is being uploaded.

Another large SVG spritesheet: https://gadgets.ndtv.com/static/v1/images/sprite_20200828.svg

I'm guessing the height of the social media icons changes by plus or minus 1 when scrolling, due to snapping. Causing us to rerasterize and reupload the image every frame.

Deleting the social media icons in the devtools inspector makes scrolling smooth.

Andrew is working on a fix in bug 1673653.

Blocks: wr-perf
Depends on: deferrable-blobs
Flags: needinfo?(jnicol)
Blocks: wr-android
Severity: -- → S3
OS: Unspecified → Android
Priority: -- → P3

4 icons share the sprite sheet, but 2 are scaled to different sizes.

No longer blocks: wr-perf
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: