Conversation
The spec requires that Vulkan queries are reset before first use and between uses. The validation layers would report errors if Vulkan based GPU timers were used.
|
It's been a while since I've seen this code. Can you explain why the order of query result retrieval and submission of the next frame was changed? fwiw I think the old order worked correctly with frame delay set to zero (even though that's not a recommended setup it's good to check for correctness) whereas this way it won't work. |
|
This will indeed not work with a frame delay of 0. I changed the order so that I do not need to create another command buffer per frame to reset the queries. If you would rather preserve the original order and use two command buffers per flip (one to insert the reference timestamp, one to reset queries for the next frame), I can go this way instead. |
The spec requires that Vulkan queries are reset before first use and
between uses. The validation layers would report errors if Vulkan based
GPU timers were used.