Closed Bug 1983041 Opened 5 months ago Closed 8 days ago

Google Meet high sync IPC ReadPixels with the use of the background image feature

Categories

(Core :: Graphics: Canvas2D, defect)

Desktop
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jimm, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

https://share.firefox.dev/3UsiPO0

STR:

  1. In Meet, enable the background image feature on your video. You may have to connect to meeting to set it up.
  2. connect to a meeting. This can be a room with just ou as a participant, with your video in the panel or framed view on the screen.
  3. wait a few minutes

results:
heavy fan use on this 2020 mac laptop

Some feedback from Andreas on Matrix -

The content process main thread is pretty hogged (only ~4% idle), most likely with video filter stuff (the message event is what their worker running a timer passes to the content process to drive the filter). Per the flame graph and inverted call tree it's mainly (35%) PWebGL::Msg_ReadPixels so sync gpu readbacks. Most of that time should be the CPU idling while waiting for it to complete, though, so fans spinning ought to be something else. The remaining 60% is pretty scattered, mainly wasm, then js and GC. The CanvasRenderer thread in the parent is where the readbacks happen. That thread is still ~60% idle, ~25% waiting for kernel messages (GPU?) and the remaining ~15% is work. Yeah, turning off the video filter should do a lot.

Blocks: meet
Attached file about support

I agree with what Andreas said - the cause is the fact that Google Meet calls ReadPixels to compute the video filter. I don't see anything particularly inefficient on the Firefox side in the profile - is performance better in Chrome on this machine?

Unfortunately Chrome displays no run up in cpu usage, and the device fans don't kick in after a few minutes in the video waiting room. So clearly Fx is struggling here compared to Chrome.

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)

Do we have an equivalent profile from Chrome to verify among other things, if Zoom is even running the same code for Firefox and Chrome?

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

Attachment

General

Created:
Updated:
Size: