Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Video plays too fast with video-sync=display-resample on NVIDIA drivers with __GL_SYNC_TO_BLANK=0 #7110
mpv version and platform
Play any video file on a Linux box with NVIDIA GPU and 435.21 drivers:
The video plays normally, at the expected speed, A/V synchronized.
Video plays ridiculously fast (probably as fast as mpv is able to decode it) instead of waiting for v-blank. Audio plays at the standard speed.
I don't really expect this issue to be fixed, but I wanted to document it in case anyone encounters it in the future. Please close it right away if you don't want to do anything with it either.
display-resample synchronizes video on vsync, and the environment variable you use disables vsync. So it's not surprising that it doesn't work.
Depending on how quickly video frames are rendered, playback will either be severely degrade in quality, slowly desync, or just explode like in your case.
Nvidia drivers AFAIK do not provide a way to implement this in any other way either. Vsync blocking is required.