mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Vulkan: Reduce some logging when things are fast.
On startup especially this spams sometimes.
This commit is contained in:
1 parent
78ed8d45a7
commit
3f620dba58
1 file changed
+5
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user