-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
OSD stats shows 0% for everything with gpu-api=vulkan #6688
Comments
Those percentages have nothing to do with CPU or GPU usage. They represent the percentage of a certain step based on the sum of all steps (that are considered here).
My system doesn't support vulkan. |
on a side note, it doesn't show CPU load. first of all those stats show the frame timings of a fresh draw or redraw on the GPU, eg the absolute and relative amount of time it takes to draw a frame. i guess VOCTRL_PERFORMANCE_DATA isn't properly implemented with the new libplacebo backend? [edit] |
According to the manual for
I feel like the manual once explicitly stated only the opengl backend implements |
The short answer is that libplacebo doesn't support timers at all. The long answer is that adding timers is unnecessarily difficult due to the asynchronous internal design. At best we could perhaps have timers only for the "graphics queue" stuff, but that wouldn't be representative or accurate (since the graphics queue is time sliced with the compute queue), so I chose to simply omit them rather than have timers that are misleading. It's possible we could revisit this in the future, perhaps with a modified internal design / queueing system. It's also possible we may re-add timers in a different form (i.e. getting execution stats on a per-shader basis rather than at "arbitrary points"), which would be more accurate and probably also more helpful in debugging shader performance. |
These are implemented now, with some minor limitations. I decided to go with the second approach of making timers per-shader rather than starting/stopping them arbitrarily, since that fixes the queue type issues. (Also, amdvlk supports timers on the transfer queues these days. Maybe it didn't in the past, I don't remember) |
mpv version and platform
Version:
mpv-x86_64-20190428-git-71ad1e2
OS:
Win10
Reproduction steps
Open any video, press Shift+I, press 2.
Expected behavior
The stats in that list show frame time numbers between 1-100%, equal to how much
cpuload the different settings produce.Actual behavior
The stats in that list all show 0% no matter the
cpuload.Log file
Use "gpu-api=vulkan" somewhere in your mpv.conf, and follow the reproduction steps.
Sample files
Any video is sufficient.
Edit: See example below
The text was updated successfully, but these errors were encountered: