Lightweight GPU monitoring/debug layer #1

Open
opened 2026-09-06 23:58:02 -07:00 by burkkyy · 1 comment
Owner

For example:

Sophia Debug
────────────────────────────
Frame:             18234
CPU frame:          1.21 ms
GPU frame:          2.87 ms

Draw calls:         142
Compute dispatches: 8
Triangles:          183,492

Images:             27
Buffers:            43
VRAM allocated:     412 MB

Graphics passes:    18
Compute passes:     6
Pipeline barriers:  31

And use Vulkan's debug utilities:

vk::DebugUtilsMessengerEXT
vk::DebugUtilsLabelEXT

to give GPU captures meaningful names:

commandBuffer.beginDebugUtilsLabelEXT({
    .pLabelName = "Shadow Pass"
});

Then RenderDoc becomes much easier to navigate.

For example: ``` Sophia Debug ──────────────────────────── Frame: 18234 CPU frame: 1.21 ms GPU frame: 2.87 ms Draw calls: 142 Compute dispatches: 8 Triangles: 183,492 Images: 27 Buffers: 43 VRAM allocated: 412 MB Graphics passes: 18 Compute passes: 6 Pipeline barriers: 31 ``` And use Vulkan's debug utilities: ```cpp vk::DebugUtilsMessengerEXT vk::DebugUtilsLabelEXT ``` to give GPU captures meaningful names: ```cpp commandBuffer.beginDebugUtilsLabelEXT({ .pLabelName = "Shadow Pass" }); ``` Then RenderDoc becomes much easier to navigate.
burkkyy added the enhancement label 2026-09-06 23:59:34 -07:00
Author
Owner

This is related to upgrading the logger

This is related to upgrading the logger
burkkyy added this to the sophia project 2026-09-19 19:39:45 -07:00
burkkyy moved this to Blocked in sophia on 2026-09-25 20:43:06 -07:00
Sign in to join this conversation.