Closed Bug 1685848 Opened 3 years ago Closed 7 days ago

[NSFW] Scrolling on reddit homepage is bad (WR vs non-WR). Possbily related to the ""Safe browsing mode" enabled on Reddit redesign

Categories

(Core :: Graphics: WebRender, defect)

All
Windows 10
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mayankleoboy1, Unassigned)

References

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

Details

Attachments

(1 file)

  1. Create a new nightly profile
  2. Go to reddit.com (no need to login)
  3. Scroll a couple of pages down.

ER : Smooth while scrolling
AR: Very janky while scrolling

Profile : https://share.firefox.dev/2XrRQVc

See Also: → 1622721

Possibly. The profiles look different to me though.
I will link the two bugs for now.

See Also: → 1654087

I agree, the two are unrelated.

Mayank, could you get another profile which includes the RenderBackend and WrWorker threads?

Looking at the "APZScroll Payload Presented" markers on the GPU process Compositor thread, things don't seem too terrible. I can see some extra long markers, during which it looks like the GPU process is starved of CPU resources. I'm not sure why - maybe we're rasterizing fonts or blobs in parallel. Example: https://share.firefox.dev/3shpTxD

Flags: needinfo?(mayanksri18)
See Also: 1654087
Flags: needinfo?(mayanksri18) → needinfo?(mstange.moz)

Thanks! It looks like there is no activity on the WrWorker threads during those pauses. Example: https://share.firefox.dev/3qim6ON
So I'm still not sure what causes the GPU process to slow down while the parent and content processes are running fine.
Maybe we'll be able to get better insight into this once the profiler can get CPU usage of the entire process (not just of registered threads).

Depends on: 1671490, 1397444
Flags: needinfo?(mstange.moz)
Type: enhancement → defect

Maybe we'll be able to get better insight into this once the profiler can get CPU usage of the entire process (not just of registered threads).

Hey florian, is there anything special that the user needs to do to get CPU usage data for an entire process (and not just registered threads) right now?

Flags: needinfo?(florian)

Profile with WR off (D3D11) : https://share.firefox.dev/2Ny7xJ1
Subjectively, it felt much more smooth than with WR.
Markus, would you be able to tell whats the difference between this profile, and the one in comment 5 which had WR enabled ?

Flags: needinfo?(mstange.moz)

I wasn't able to see any specific reasons, other than "WebRender takes longer to process each frame". Moving this into the WebRender component, maybe others have better ideas.

Component: Performance → Graphics: WebRender
Flags: needinfo?(mstange.moz)
OS: Unspecified → Windows 10
Hardware: Unspecified → All
Summary: Scrolling on reddit homepage is bad → Scrolling on reddit homepage is bad (WR VSS non-WRR)
Summary: Scrolling on reddit homepage is bad (WR VSS non-WRR) → Scrolling on reddit homepage is bad (WR vs non-WR)
Blocks: wr-perf
No longer blocks: wr-perf
Severity: -- → S3

Ok, fairly certain STR. This is a combination of the "Safe browsing" enabled on reddit, and WR

STR:

  1. Set the new design of Reddit as default
  2. Enable the "Safe Browsing Mode" on Reddit. (On reddit, click on the username on top right->User Settings->Feed Settings->Safe Browsing Mode-> Enable)
  3. Go to a NSFW page like this : https://www.reddit.com/user/eat_a_p3ach/
    3.5 Optional : Wait for 1 minute to let the GC/CC do its thing
  4. Put the mouse cursor on one of the images/videos of the feed, an start scrolling down.

ER: Smooth scrolling
AR: Choppy scrolling

"Safe Browsing" on : https://share.firefox.dev/2ZAsF3T
"Safe Browsing" off : https://share.firefox.dev/3seIOIM

Summary: Scrolling on reddit homepage is bad (WR vs non-WR) → [NSFW] Scrolling on reddit homepage is bad (WR vs non-WR). Possbily related to the ""Safe browsing mode" enabled on Reddit redesign
Blocks: 1694017
See Also: → 1694017
No longer blocks: 1694017
Depends on: 1694508

FWIW: previously there were artifacts on the blurred image (as mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1694017#c4). These artifacts have been fixed by bug 1749380

Depends on: 1749380

Is this still a problem? It seems to run well on my local environment.

With Hw-wr :
The page scrolls fine on my newer (and much faster) machine.
The page scrolls a little janky if I pinch-zoom on the page
There is also the comment on mix-blend surfaces here (https://bugzilla.mozilla.org/show_bug.cgi?id=1695273#c2)

With Sw-WR:
The page is still quite janky. But that is probably better tracked in bug 1695273

Given this, I am happy to close this bug as Worksforme.

Flags: needinfo?(florian)

Is this bug still reproducible? The perf team would like to triage this for performance impact, or close out as 'works for me' if that is the case. Can you advise?

Flags: needinfo?(mayankleoboy1)

I cannot reproduce this slowness/jank on reddit, on current linux (f39/frameworks-13) with current FF 124.0.1.

webrender.compositor.force-enabled false
webrender.compositor false
webrender.all false

sure, lets close this. The perf issue is better tracked in bug 1695273.

Status: NEW → RESOLVED
Closed: 7 days ago
Flags: needinfo?(mayankleoboy1)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: