Open Bug 1879271 Opened 5 months ago Updated 5 months ago

[Sway] window surface refresh rate doesn't fit with video frame rate (linux wayland VRR)

Categories

(Core :: Widget: Gtk, defect)

Firefox 122
defect

Tracking

()

UNCONFIRMED

People

(Reporter: atbjyk, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce:

my monitor supports 100hz with VRR.
compositor(sway) supports VRR.
see 60fps video and get stutter.
https://www.youtube.com/watch?v=FVNO-ehIOdw

Actual results:

vrr doesn't follow video refresh rate.
(maybe window surface rate was wrong)

Expected results:

window surface rate should be a video refresh rate.
(if othoer content not over video rate)

ie. mpv with 60fps video can allow vrr set to 60hz.

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

sway has problem(VRR not work when fullscreen(maybe with scanout?)),
so recommend to use labwc(VRR works also on fullscreen(with scanout)),
but, firefox refresh rate doesn't follow video content is still appeare(window, fullscreen both mode)

Summary: window surface refresh rate doesn't fit with video frame rate (linux wayland VRR on sway) → window surface refresh rate doesn't fit with video frame rate (linux wayland VRR)
Summary: window surface refresh rate doesn't fit with video frame rate (linux wayland VRR) → [Sway] window surface refresh rate doesn't fit with video frame rate (linux wayland VRR)

Firefox uses dynamic refresh rate on Wayland. I see the same result on Mutter with 60Hz or 144Hz refrest rate - is the same. There are minor glitches but it may be caused by Firefox/video playback itself.

thanks for watching this,
my setup is rdna2 with mesa(bd237).
mpv(vaapi enabled) on labwc works correct with VRR(fullscreen and window-mode(If other windows is not updated)).

Even when the video is not playing, some sites, such as youtube, will probably raise the fps to the maximum fps, perhaps with css animations, etc,
I would like the refresh rate to match the video refresh rate, at least while the video is being displayed in full screen.

yes, mpv is supposed to do it correctly as it's simple player without any extra features.

You need to log in before you can comment on or make changes to this bug.