From 3f620dba58da1e07d9da445e52e7ada956530c77 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 3 Dec 2022 14:56:58 -0800 Subject: [PATCH] Vulkan: Reduce some logging when things are fast. On startup especially this spams sometimes. --- Common/GPU/Vulkan/VulkanRenderManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Common/GPU/Vulkan/VulkanRenderManager.cpp b/Common/GPU/Vulkan/VulkanRenderManager.cpp index 56a293c70e..fab538a0a4 100644 --- a/Common/GPU/Vulkan/VulkanRenderManager.cpp +++ b/Common/GPU/Vulkan/VulkanRenderManager.cpp @@ -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) {