From 0f0a58d1aaabfd155c5a018370061db3318f4138 Mon Sep 17 00:00:00 2001 From: Ivan 'provod' Avdeev Date: Sun, 7 Aug 2022 10:32:46 -0700 Subject: [PATCH] rt: add debug markers to see that uploading lights takes >35ms --- ref_vk/vk_light.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ref_vk/vk_light.c b/ref_vk/vk_light.c index 3a0c20f3..e2d8916a 100644 --- a/ref_vk/vk_light.c +++ b/ref_vk/vk_light.c @@ -1218,6 +1218,7 @@ vk_lights_bindings_t VK_LightsUpload( VkCommandBuffer cmdbuf ) { } { + DEBUG_BEGIN(cmdbuf, "upload lights"); const VkBufferCopy regions[] = { { .srcOffset = 0, @@ -1239,6 +1240,7 @@ vk_lights_bindings_t VK_LightsUpload( VkCommandBuffer cmdbuf ) { VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR, 0, 0, NULL, ARRAYSIZE(bmb), bmb, 0, NULL); + DEBUG_END(cmdbuf); } return (vk_lights_bindings_t){