Closed Bug 1469028 Opened 6 years ago Closed 6 years ago

Too many "Renderer" threads

Categories

(Core :: Graphics: WebRender, enhancement)

Other Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: kats, Assigned: sotaro)

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

If you take a gecko profile of all threads with WR enabled on windows, there are 4 "Renderer" threads. Two of these are created at [1] and two are created at [2]. Within each pair, one is from the GPU process and one is from the main process. If the GPU process is enabled, it seems like we shouldn't need to create the main process pair. So we should stop doing that. It gets created from InitLayersIPC().

Also it would be good to rename the WinCompositorWindowThread threads so that they're called "WinCompositor" or something different than Renderer so that it's less confusing as to what they are.

[1] https://searchfox.org/mozilla-central/rev/42930ab9634ebf3f62aed60f7d1c1bf25c0bf00c/gfx/webrender_bindings/RenderThread.cpp#60
[2] https://searchfox.org/mozilla-central/rev/42930ab9634ebf3f62aed60f7d1c1bf25c0bf00c/widget/windows/WinCompositorWindowThread.cpp#40
Assignee: nobody → sotaro.ikeda.g
Attachment #8986372 - Flags: review?(nical.bugzilla)
Attachment #8986372 - Flags: review?(nical.bugzilla) → review+
Pushed by sikeda@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a96803397f18
Supress Renderer threads r=nical
https://hg.mozilla.org/mozilla-central/rev/a96803397f18
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: