Wayland: dropped frames, unstable refresh rate with adaptive sync; video freezes in fullscreen
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv Information
mpv v0.39.0-dirty Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
built on Mar 13 2025 08:13:20
libplacebo version: v7.349.0
FFmpeg version: n7.1
FFmpeg library versions:
libavcodec 61.19.100
libavdevice 61.3.100
libavfilter 10.4.100
libavformat 61.7.100
libavutil 59.39.100
libswresample 5.3.100
libswscale 8.3.100
Other Information
- Linux version: Garuda Linux
- Kernel Version: 6.13.7-zen1-1-zen
- GPU Model: Radeon RX 7800 XT
- Mesa/GPU Driver Version: Mesa 25.0.1-arch1.2
- Window Manager and Version: kwin 6.3.3.1-1
- Source of mpv: arch repo
- Latest known working version: any version on X11
- Issue started after the following happened: switching to wayland session
Reproduction Steps
For me, just switching to wayland session with Garuda and Plasma 6 was enough. I added gpu-context=waylandvk to try and fix the issue but to no avail. I tried several videos encoded in either h264 or h265.
These are my settings:
hwdec=auto-copy
profile=gpu-hq
gpu-context=waylandvk
video-sync=display-resample
opengl-es=no
scale=ewa_lanczos
dscale=mitchell
correct-downscaling
sigmoid-upscaling
interpolation
tscale=oversample
Expected Behavior
Generally, I get less than 10 mistimed or dropped frames over the course of a 45-60 minute video and the refresh rate stays at 144Hz for the duration in X11. Also, no fullscreen video freeze in X11.
Actual Behavior
The refresh rate fluctuates over time and a significant portion of frames are mistimed, delayed, or dropped . If I turn off adaptive sync in KDE's display configuration menu, this issue disappears. Whether or not I have adaptive sync on, however, the video will freeze after a second or two in fullscreen with audio continuing to play unless I move the mouse. If I constantly move the mouse, video playback does not stop.
Log File
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
- I tested with the latest mpv version to validate that the issue is not already fixed.
- I provided all required information including system and mpv version.
- I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- I attached the full, untruncated log file.
- I attached the backtrace in the case of a crash.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the attached output.txt alongside the reported Wayland, adaptive-sync, fullscreen, and gpu-context=waylandvk conditions. Reproduce with the listed mpv settings on Plasma 6, comparing adaptive sync enabled and disabled; done means stable refresh and frame timing with no fullscreen video freeze while audio continues.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- desktop, operating-systems, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100