Open Bug 1830059 Opened 2 years ago Updated 7 months ago

Poor performance when play video

Categories

(Core :: Graphics: WebRender, defect)

Firefox 112
defect

Tracking

()

UNCONFIRMED

People

(Reporter: a.rainman, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Attached image poor performance.png

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

Steps to reproduce:

I open any video on YouTube, for example this one https://www.youtube.com/watch?v=hmVeLmLK5Cg

Actual results:

I see very big load on my CPU and GPU.
https://profiler.firefox.com/from-browser/marker-chart/?globalTrackOrder=0&hiddenLocalTracksByPid=8492-12&implementation=js&thread=1&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=0&hiddenLocalTracksByPid=8492-12&implementation=js&thread=0&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=0&hiddenLocalTracksByPid=8492-12&implementation=js&thread=0&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=0&hiddenLocalTracksByPid=4420-0wjnvx2&implementation=js&thread=0&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=0&hiddenLocalTracksByPid=8492-12&implementation=js&thread=0&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=0&hiddenLocalTracksByPid=8492-12&implementation=js&thread=0&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=120&hiddenLocalTracksByPid=6872-135wvx2wxgxjwxo&implementation=js&thread=0&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=0&hiddenLocalTracksByPid=8040-0236wbdfhwtvx1wxgxiwxuy0wy2y4wya&implementation=js&thread=0&v=9
https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=0&hiddenLocalTracksByPid=8492-12&implementation=js&thread=0&v=9

Expected results:

Firefox no needs to use some many resources. It's probably happened because AV1 is used?

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

Firefox no needs to use some many resources. It's probably happened because AV1 is used?

Probably yes, AV1 is a special codec for video, and that loads more CPU and GPU than older H.264 codec.

Can you go to about:support and click either of the buttons at the top to copy a report to clipboard and paste into an attachment on this bug? It would be super valuable to know which GPU you are using when trying to figure out graphics issues.

Normally YouTube uses vp9 codec which is supported in hardware, AV1 codec support in hardware is only on very recent GPUs, the CPU cost of decoding AV1 is quite high, but the bandwidth is lower (hence why YouTube switched to it, it is cheaper for them to operate that way).

Other sites like twitch.tv use h264 which is more commonly supported in hardware.

I seem to be unable to view the profiler links you gave, perhaps they are local to your browser and you did not upload them to share (there's a button for that in the top right of the profiler UI)?

Flags: needinfo?(a.rainman)

I attached a report of about:support. Note that I have an old ATI card (Randeon HD 2400 Pro).

Currently, I crutch this bug by disable AV1. Firefox REALLY need detection of HW support and only after it enable AV1 support.

Flags: needinfo?(a.rainman)

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

For more information, please visit BugBot documentation.

Flags: needinfo?(gwatson)

Sotaro, is this something for the gfx team to look at, or perhaps we should move to media team (see comment 5)?

Severity: -- → S3
Flags: needinfo?(gwatson) → needinfo?(sotaro.ikeda.g)

Firefox performance in video playback is very bad. Please find a solution. My PC is weak and I always get annoyed and the video gets stuck. Especially in videos in Instagram.com stories. Please find a solution. The performance of Firefox is much weaker than Chrome.

Blocks: video-perf
Flags: needinfo?(sotaro.ikeda.g)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: