Closed Bug 1435365 Opened 6 years ago Closed 2 years ago

Scrolling gmail's label list is slower / more cpu intensive with WebRender

Categories

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

x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr52 --- unaffected
firefox58 --- unaffected
firefox59 --- unaffected
firefox60 --- disabled

People

(Reporter: linuxhippy, Unassigned, NeedInfo)

References

(Blocks 2 open bugs, )

Details

(Keywords: nightly-community, perf, Whiteboard: [sci-exclude])

Attachments

(2 files)

Attached image top_webrender.png
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180202102708

Steps to reproduce:

1. Logged in to gmail (account has  ~100-200 labels)
2. scrolled through gmail's label list quickly



Actual results:

noticed scrolling is a little bit more laggy with webrender enabled.

Further investiation showed, that WebRender causes higher load. Without WebRender (normal opengl compositor) I see one WebContent Process consume 20-30% and firefox-bin 20-30% cpu. With WebRender enabled, firefox-bin consumes >100%, while the WebContent Process is at about 12-20%.
Attached image top_opengl.png
Please find a system-wide sysprof profile at: http://93.83.133.214/profile_webrender.syscap

A lot of time seems to be spent in webrender code itself, not the opengl drivers
Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Version: 60 Branch → Trunk
This seems to be not limited to gmail - scrolling in general seems to perform worse with WebRender enabled compared to the old OpenGL compositor (higher CPU useage, less FPS)
Blocks: 1401574
Is it possible for you to get a profile of this using the Gecko profiler?
Flags: needinfo?(linuxhippy)
strange - while scrolling the main firefox process is almost at 100%, yet the profile looks rather idle: https://perfht.ml/2F2amvW
Flags: needinfo?(linuxhippy)
You should add these threads to the "Threads:" list of the profiler "RenderBackend,Renderer,WebRender"
Flags: needinfo?(linuxhippy)

A lot has improved in WebRender since this was reported. Can you still reproduce this?

Whiteboard: [sci-exclude]
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: