gpu-next: . skips alternating zero and two frames at a time when interpolating (on Wayland?) #10107
Description
Important Information
- mpv version: master (305332f)
- Linux Distribution and Version: Gentoo Linux
- Source of the mpv binary: Gentoo packages
- Window Manager and version: sway 1.7 + wlroots 0.15.1
- GPU driver and version: amdgpu
- Display: 1x HDMI, 1920x1200 @ 59.950 Hz
Reproduction steps
- ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=24:n=2 testsrc.mkv
- mpv testsrc.mkv --no-config --vo=gpu-next --video-sync=display-resample --interpolation=yes
- Press . repeatedly.
- Unpause or restart, and allow video to play at least 3 seconds.
- Press . repeatedly.
Expected behavior
In both step 3 and step 5, displayed time increases by 4 or 5 for each press.
Actual behavior
In step 3, displayed time increases by 4 or 5 for each press. In step 5, displayed time increase alternates between none and rapidly increasing by 4 or 5 for each press; the latter appears to be playing two frames at normal speed (24 fps).
Log file
output.txt. mpv was started with --pause
, then . was pressed roughly once per second, then unpaused with space, then paused after several seconds, then . was pressed roughly once per second, then q was pressed.
Sample files
File generated in step 1.
Additional information
The issue persists whether using --gpu-api=opengl or --gpu-api=vulkan. It does not occur when interpolation is not enabled. I only tested --gpu-context=wayland and waylandvk, not x11. I only tested sway, not other compositors.
On my machine, the issue does not occur (within 10 seconds) when the video is set to 10 fps.