mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.74k stars 2.84k forks source link

Slow OSC loading with `gpu-api=vulkan` #13133

Open stax76 opened 6 months ago

stax76 commented 6 months ago

With gpu-api=vulkan the OSC needs about 2 seconds to load, while with defaults it loads instantly.

zhongfly commented 6 months ago

same as https://github.com/mpv-player/mpv/issues/13019 ?

stax76 commented 6 months ago

It could be related. I tried now with mpv instead of mpv.net, with mpv it loads normal, which makes it difficult to debug for a mpv developer.

It makes me wonder if many users use gpu-api=vulkan and why? I used it only to test if it works well in mpv.net, which it does now. Before with vulkan the player core could only be initialized after the player window was shown, this problem is fixed. Some days ago with an older build vulkan did not work at all, was there development recently?

Andarwinux commented 6 months ago

winvk's video rendering performance is much better, but presentation performance is poor.

FreeTheTech101 commented 6 months ago

It makes me wonder if many users use gpu-api=vulkan and why?

Personally, I have been using it to avoid having to manually toggling HDR, but lately gpu-api=vulkan has been causing sporadic initialization failures, along with random delays to loading. It seems that Intel’s d3d12 patches for FFmpeg are looking to be merged soon, so here’s hoping that we can reap some of the advantages of Vulkan without the slow initialization times on Windows.

Edit: Commits were merged today, will be interesting to see how projects take advantage of it.