wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
8.61k stars 592 forks source link

Vulkan and OpenGL GPU zones do not have accurate timing for me. #811

Open mcourteaux opened 3 weeks ago

mcourteaux commented 3 weeks ago

OpenGL:

image

When making a GPU bound application, the framerate drops, but still on both Vulkan and OpenGL, the results of the draw calls / command buffer timings are super short. As if nothing is timed.

Vulkan:

image

Any chance that the timestamps I'm getting out of both APIs are correct, but the results are badly displayed in the Tracy timeline? It doesn't seem to matter how much stuff you push onto the command buffer, it stays always just that short-lived zone of work.

mcourteaux commented 3 weeks ago

Hmm, I just checked for OpenGL manually with printf-debugging... The query counter I get back from OpenGL indeed show 2ms, whereas the frame time is 42ms. Is this a synchronization issue, or a driver bug? Or am I misinterpreting what the query counters should represent?