Open Bug 1962521 Opened 3 months ago Updated 3 months ago

With an AMD 9070XT, playing videos with AV1 codec at 4k60 or 8k60 on youtube has noticeable stutter not visible in chromium.

Categories

(Core :: Graphics: WebRender, defect)

Firefox 138
defect

Tracking

()

UNCONFIRMED

People

(Reporter: unsworn-stoop-fax, Unassigned)

Details

Attachments

(3 files)

Attached image stats for nerds.png

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

Steps to reproduce:

Got an AMD 9070XT, clean driver install (used DDU in safe mode), and tried to play 4K and 8K 60fps videos on youtube.

Captured performance profile with "media option" while playing the video at 8k: https://share.firefox.dev/3S6vKE2
Youtube video: https://youtu.be/thDodJNdx2c?si=PmrLOW7U3REEXm57&t=685

Actual results:

Youtube uses AV1 codec and with this graphics card (AMD RX 9070XT) there is stutter. In microsoft edge the stutter does not happen. Youtube's stats for nerds does not report any dropped frame other than a few when clicking play. I heard firefox nightly now uses ffmpeg, and I confirmed it was enabled in about:config, but the stutter still happens there. You can see in the youtube video link on the owl's left wing, at 11:25 that the owl wing is not smooth at 4k and above. The stutter is easier to spot in panning motion as well.

Expected results:

Smooth AV1 codec playback like in chromium browsers.

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

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Component: Audio/Video: Playback → Graphics: WebRender

I captured another profile, with safe mode on, Firefox 138.0b9, captured for this video: https://insights.deovr.com/video/AV1/7779_2900p.mp4

The stutter is also noticeable if a bit more subtle since I don't think this is 4k video, let alone 8k. I think it's more noticeable when there is camera movement like at around 1:10 when they begin crossing the wooden bridge.
https://share.firefox.dev/4cSKoIL

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)

Based on what im seeing on my Firefox with RX 9070 XT i think it could be related to WebRender.
Firefox v138.0.3. Windows 11 24H2. AMD Adrenalin drivers 25.5.1. All up to date.

My problem is a little different as Firefox constantly freezes and unfreezes at startup after first opening Youtube.
Does not seems to happen at other pages tho i haven't tested Twitch, Vimeo etc to see it i could replicate this behavior there.

Based on what i see from about:support (Graphics > Decision Log and Failure Log) it seems like WebRender is constantly reset until it reaches the default reset limit (10. Controlled via gfx.device-reset.limit i believe).

First it tries falling back from Hardware WebRender to Software WebRender with DX11 compositor.
It fails at this and then falls back to pure Software Webrender without DX11 compositor, where it finally stabilizes.

Can you please check the appropriate sections in your about:support to see if WebRender is working correctly for you? Im thinking that if it falls back to pure software then obviously the performance suffers as a result of that.

Since i mostly play 1080p and occasionally 1440p videos i probably do not notice it as much.

Could you attach your about:support contents here?

Severity: -- → S3
Flags: needinfo?(gwatson) → needinfo?(unsworn-stoop-fax)
Attached file about:suport
(In reply to Glenn Watson [:gw] from comment #5) > Could you attach your `about:support` contents here? Of course. Though I should point out that I get stutters outside youtube, and I suspect it only happens with AV1 video. Doesn't matter the resolution, as I pointed out above.
Attached file about_support_contents
(In reply to Glenn Watson [:gw] from comment #5) > Could you attach your `about:support` contents here? Of course. Though I should point out that I get stutters outside youtube, and I suspect it only happens with AV1 video. Doesn't matter the resolution, as I sai above when I linked this video - https://insights.deovr.com/video/AV1/7779_2900p.mp4

(In reply to Glenn Watson [:gw] from comment #5)

Could you attach your about:support contents here?

Of course. Though I should point out that I get stutters outside youtube, and I suspect it only happens with AV1 video. Doesn't matter the resolution, as I sai above when I linked this video - https://insights.deovr.com/video/AV1/7779_2900p.mp4

Flags: needinfo?(unsworn-stoop-fax)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: