Skip to content

Commit

Permalink
log draw calls
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Feb 1, 2025
1 parent 0a28fe2 commit 8659602
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/graphics/vulkan/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ void SharedDescriptorPools::createDescriptorPool()
{
auto vgfx = (Graphics *)Module::getInstance<Graphics>(Module::M_GRAPHICS);
if (vgfx != nullptr)
{
vgfx->dumpMemoryStats();
auto stats = vgfx->getStats();
::printf("draw calls in this frame: %d, batched draws in this frame: %d\n", stats.drawCalls, stats.drawCallsBatched);
}
throw love::Exception("Failed to create Vulkan descriptor pool: %s", Vulkan::getErrorString(result));
}

Expand Down

0 comments on commit 8659602

Please sign in to comment.