Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suttering during playback with plasma 6 / wayland and 24Hz refresh #13835

Open
atohmdiy opened this issue Apr 7, 2024 · 2 comments
Open

Suttering during playback with plasma 6 / wayland and 24Hz refresh #13835

atohmdiy opened this issue Apr 7, 2024 · 2 comments

Comments

@atohmdiy
Copy link

atohmdiy commented Apr 7, 2024

Important Information

  • mpv version = 0.37
  • Linux Distribution and Version = Cachy OS x86_64_v4 repo and kernel 6.8.4-2-cachyos
  • Window Manager and version = KDE / Plasma 6.0.3
  • GPU model, driver and version = Radeon 6900XT, Ryzen 7800X3d, Mesa 24, Wayland
  • vo=gpu-next
  • gpu-api=vulkan
  • hwdec=vulkan (but no or vaapi doesn't correct the issue)

I upgrade from Manjaro with Plasma 5 / X11 to CachyOS with Plasma 6 / Wayland.
I never manage to get smooth video playback under Wayland / Plasma 6. There is random stuttering that appear mostly on scene change or slow moving scene. These stuttering are VERY random and could be barely noticeable to pretty heavy, and seems to have evolve during plasma / kwin update, for example setting target-peak=800 provoked heavy stuttering in plasma 6.0.0. The last few days i made some experimentation to investigate the problem.
My use case i a little specific, i start mpv from kodi with the external player function and use a script (mpv-xrandr under X11 and mpv-kscreen-doctor under kwin/wayland) to set the refresh rate of my TV to match the video, then i use my TV's smooth motion. Most content will be of course ~24Hz.

I try a lot of mpv and kwin options and i don't find a solution, it's not related to VRR or HDR or hwdec etc.

I think the problem is related to 24Hz video playback : with the same mpv's configuration, there is no stuttering at 120Hz.
I also report that enable video-sync=display-resample provoke heavy stuttering in 24Hz and some corruption.
As i change my linux distribution for Cachy that have several differences and optimizations, i also try to run mpv in X11 (Mate or Kodi own session) to be sure and there is no issue, so i'm certain it's related to kwin / wayland.

@Rrauros
Copy link

Rrauros commented Apr 23, 2024

@atohmdiy
Copy link
Author

I just try again with kwin 6.0.4, there is still a lot of random stutter in 24Hz, it could be light in some video with random micro-stutter, or it could stutter to a point the video is unwatachable.
I cannot be sure it's related to kwin as i don't use another wayland de.
I try many option, including bare mpv.conf without any option or switching to vo=gpu instead of gpu-next, all without success.
Maybe i should report this bug to kde directly instead of here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants