Open
Bug 1480964
Opened 6 years ago
Updated 2 months ago
With WR, Scrolling on maze solver page is janky. Non-WR is smooth (WR scrolling is not async enough)
Categories
(Core :: Graphics: WebRender, defect, P3)
Core
Graphics: WebRender
Tracking
()
NEW
People
(Reporter: mayankleoboy1, Unassigned)
References
(Blocks 2 open bugs, )
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
1.03 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Build ID: 20180803220259
Steps to reproduce:
1. enable WR
2. Go to https://testdrive-archive.azurewebsites.net/Performance/MazeSolver/Default.html
3. Select the 40x40 maze. Start it. Let it finish
4. After it finishes, it ill show something like "browser score: xx seconds", and the maze will keep on doing animation in the background
5. Scroll the page
Actual results:
Scrolling is super janky.
https://perfht.ml/2OcTu6K with WR
Lots of APZC component in main thread
Expected results:
smooth, like the non-WR case: https://perfht.ml/2O7JYSe
Feel free to dupe this to other "WR scrolling is not async enough" bugs
Reporter | ||
Updated•6 years ago
|
Summary: With WR, Scrolling on maze solver page is janky. Non-WR is smooth → With WR, Scrolling on maze solver page is janky. Non-WR is smooth (WR scrolling is not async enough)
Updated•6 years ago
|
Flags: needinfo?(kats)
Comment 1•6 years ago
|
||
The UI process main thread sends a sync message to the "GeckoMain" thread (GPU process main thread), and that gets blocked on hit-testing, because the RenderBackend thread is busy doing various build/render stuff. Probably worth looking to see if there's things we can optimize in WR here.
Flags: needinfo?(kats)
Updated•6 years ago
|
Updated•6 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 2•6 years ago
|
||
IMO, this should be high priority. People typically prefer whiteboarding/checkerboarding over stuttery scrolling.
Comment 3•6 years ago
|
||
(In reply to Mayank Bansal from comment #0)
> https://perfht.ml/2OcTu6K with WR
Thanks for the profile. For the future, could you add ",Renderer,WRSceneBuilder,WRRenderBackend" to your thread filter? This will make WR profiles more useful.
Reporter | ||
Comment 4•6 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #3)
> (In reply to Mayank Bansal from comment #0)
> > https://perfht.ml/2OcTu6K with WR
>
> Thanks for the profile. For the future, could you add
> ",Renderer,WRSceneBuilder,WRRenderBackend" to your thread filter? This will
> make WR profiles more useful.
I see that the profile already has those threads.. Am I reading the profile wrong, or missing something obvious?
Comment 5•6 years ago
|
||
Whoops! I was the one missing something obvious. Sorry. (I was looking in the wrong place, under the parent process instead of under the gpu process. Fooled by my own tool.)
Updated•6 years ago
|
Priority: P2 → P3
Comment 6•6 years ago
|
||
This should be better now. Can you retest and upload a new profile?
Flags: needinfo?(mayankleoboy1)
Reporter | ||
Comment 7•6 years ago
|
||
Flags: needinfo?(mayankleoboy1) → needinfo?(jmuizelaar)
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
Do you see similar slowness on this page?
Flags: needinfo?(jmuizelaar) → needinfo?(mayankleoboy1)
Comment 9•6 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #8)
Hovering tabs is a pain there: Tab backgrounds only change with a huge delay and red dots slow down then.
Reporter | ||
Comment 10•6 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #8)
> Created attachment 9017292 [details]
> lots-of-circle.html
>
> Do you see similar slowness on this page?
Yes. As :darkspirit said, moving mouse inside the page was brutal. SCrolling also was slow.
https://perfht.ml/2pT5IXJ
Flags: needinfo?(mayankleoboy1)
Reporter | ||
Comment 11•6 years ago
|
||
HEre is a profile where I scroll with scrollbar, scroll with mouse-pad with mouse inside the page, and just moving the mouse inside the page:
https://perfht.ml/2pWzOtC
Reporter | ||
Updated•6 years ago
|
Flags: needinfo?(jmuizelaar)
Comment 12•6 years ago
|
||
This should be somewhat better now? Can you retest?
Flags: needinfo?(jmuizelaar) → needinfo?(mayankleoboy1)
Reporter | ||
Comment 13•6 years ago
|
||
still bad.
On the original maze solver page, the STR still reproduces.
On the testcase you created, if you move the mouse inside the page, the animation all but stops. If you scroll the page, it is super stuttery.
Flags: needinfo?(mayankleoboy1) → needinfo?(jmuizelaar)
Comment 14•6 years ago
|
||
Profile from today: https://perfht.ml/2SwuKIr 35+ms scene build times, similar amounts of time in the RenderBackend
Flags: needinfo?(jmuizelaar)
Comment 15•6 years ago
|
||
But a profile from today is much better: https://perfht.ml/2SvooZW
Priority: P3 → P4
Reporter | ||
Comment 16•6 years ago
|
||
here is a profile I took from the latest nightly :
https://perfht.ml/2PnQ1lR
Just to make clear, this profile is after the maze has completed and the animation is happening. Then you try to scroll the page.
And this profile is from your "lots of circles" test case. I scroll the page while the animation is happening:
https://perfht.ml/2Povei1
I dont see much improvement.
Updated•6 years ago
|
Priority: P4 → P5
Comment 17•5 years ago
|
||
with WR, smooth scrolling is no longer smooth on any webpage with longer scroll length, I experience this on both Nightly and Stable versions. This is the only thing stopping me from using WR on Firefox.
Updated•5 years ago
|
Blocks: wr-displaylist-perf
Reporter | ||
Comment 18•5 years ago
|
||
With latest nightly : https://perfht.ml/3biCyXT
Comment 19•4 years ago
|
||
This is much better now although not perfect. Most of the time on the render backend is now spent in clipping related stuff which is the focus of Glenn current work.
Severity: normal → S4
Priority: P5 → P3
Updated•4 years ago
|
Reporter | ||
Comment 20•2 years ago
•
|
||
the attached testcase became significantly slower after Bug 1779952 : https://share.firefox.dev/3brPJeG
Reporter | ||
Comment 21•3 months ago
|
||
I can still repro on the attached testcase: https://share.firefox.dev/47o8ZT6
The original maze solver is unfortunately not available anymore.
You need to log in
before you can comment on or make changes to this bug.
Description
•