Vulkan: Reduce some logging when things are fast.

On startup especially this spams sometimes.
This commit is contained in:
Unknown W. Brackets committed 2022-12-03 14:56:58 -08:00
1 parent 78ed8d45a7
commit 3f620dba58
1 file changed
+5 -1
+5 -1
View File
@@ -101,8 +101,12 @@ bool VKRGraphicsPipeline::Create(VulkanContext *vulkan, VkRenderPass compatibleR
double start = time_now_d();
VkPipeline vkpipeline;
VkResult result = vkCreateGraphicsPipelines(vulkan->GetDevice(), desc->pipelineCache, 1, &pipe, nullptr, &vkpipeline);
double taken_ms = (time_now_d() - start) * 1000.0;
INFO_LOG(G3D, "Pipeline creation time: %0.2f ms", (time_now_d() - start) * 1000.0);
if (taken_ms < 0.1)
DEBUG_LOG(G3D, "Pipeline creation time: %0.2f ms (fast)", taken_ms);
else
INFO_LOG(G3D, "Pipeline creation time: %0.2f ms", taken_ms);
bool success = true;
if (result == VK_INCOMPLETE) {