Open Bug 1683290 Opened 4 years ago Updated 1 month ago

PiP doubles CPU and GPU load

Categories

(Core :: Graphics, defect, P3)

Firefox 84
defect

Tracking

()

People

(Reporter: kljbonnema, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

Open a video in the browser and watch the system resources (Windows task manager) for CPU and GPU.
Click on PiP button and display the video as Picture in Picture. Observe that the CPU and GPU load have doubled. (include Windows Desktop management GPU in the consideration.)
Now hide the original browser tab where the video originated (switch tab or minimize Firefox.) Observe that the CPU and GPU load are back to the lower values.

Actual results:

While the video is shown in PiP and the original browser tab is selected, the CPU and GPU load are doubled. This can be a problem for systems that have not enough power to handle the doubled load.
The workaround is to hide the original browser tab while PiP is active.
This behaviour is seen on Windows 10.

Expected results:

CPU and GPU load should stay almost the same when PiP is used regardless whether the original browser tab is selected or not.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Video/Audio Controls
Product: Firefox → Toolkit

Thank you, I am able to confirm this. I expect this is a bug in our video/audio playback and unrelated to the controls or Picture In Picture.

Status: UNCONFIRMED → NEW
Component: Video/Audio Controls → Audio/Video: Playback
Ever confirmed: true
Product: Toolkit → Core

Move to graphic component to see since it's GPU related.

Would you mind sharing the information under your about:support page? Are you using web-render? Did you change any graphic preferences in about:config page?

Component: Audio/Video: Playback → Graphics
Flags: needinfo?(kljbonnema)

What specific information from about:support are you after. Its a lot of info.
I did not make any changes to the graphic preferences. I think I am using web-render since it is supposed to be enabled on all W10 systems by now.
I can confirm that I can reproduce this on multiple Windows 10 systems, even with different CPU/GPU hardware .
I can also confirm it happens on current nightly releases (86.x) with default settings.
It seems to happen with any video stream. Youtube for one will do it.

Flags: needinfo?(kljbonnema)

It looks dup of Bug 1682206. Video frames are forwarded to main window during PIP even when they are not shown to the main window.

See Also: → 1682206
Blocks: wr-perf
Severity: -- → S3
Keywords: perf
Priority: -- → P3
Blocks: video-perf
No longer blocks: wr-perf
You need to log in before you can comment on or make changes to this bug.