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

Vulkan drops frames when switching the focused window #15891

Open
6 tasks done
awused opened this issue Feb 17, 2025 · 2 comments
Open
6 tasks done

Vulkan drops frames when switching the focused window #15891

awused opened this issue Feb 17, 2025 · 2 comments
Labels

Comments

@awused
Copy link

awused commented Feb 17, 2025

mpv Information

mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0
FFmpeg version: 7.0.2
FFmpeg library versions:
   libavcodec      61.3.100
   libavdevice     61.1.100
   libavfilter     10.1.100
   libavformat     61.1.100
   libavutil       59.8.100
   libswresample   5.1.100
   libswscale      8.1.100

Other Information

- Linux version: Fedora 41
- Kernel Version: 6.11.11
- GPU Model: 4090
- Mesa/GPU Driver Version: 565.77
- Window Manager and Version: i3 version 4.24 (2024-11-06)
- Source of mpv: Fedora repos, also compiled from various git versions
- Latest known working version: n/a
- Issue started after the following happened:

It's been present as long as I can recall. I don't currently have a working Wayland environment to test it.

Reproduction Steps

mpv --no-config --gpu-api=vulkan --gpu-context=x11vk --video-sync=display-desync, using most other --video-sync options seems to work, especially display-resample. --video-out=gpu-next also doesn't seem to have an effect.

While the video is playing, switch the focused window. Just clicking back and forth between some console windows works well enough. The specifics processes or locations of the windows don't seem to matter.

Expected Behavior

Frames shouldn't be dropped.

Actual Behavior

Frames are dropped and video playback visibly hitches when the focused window changes. The Mistimed or Delayed frame counts also increase each time.

Log File

log.txt

Sample Files

No specific videos. Using a motion test pattern makes it obvious.

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.
@llyyr
Copy link
Contributor

llyyr commented Feb 17, 2025

Does --wayland-present=yes/--x11-present=yes fix it?

@awused
Copy link
Author

awused commented Feb 17, 2025

No, neither of those seem to impact it. In this screenshot the number of Delayed frames jumps by 2 almost every time I click between two console windows on another monitor.

Image

edit: I assume it's an nvidia thing, and I was mostly just hoping it would go away on its own, but it's been consistent across two different computers, three different GPUs now, any many different software versions now.

I do run picom but disabling picom doesn't change anything. I wasn't able to find any other piece of software that impacted it, and at least among likely nvidia settings I couldn't find one.

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

No branches or pull requests

2 participants