Add profiler warmup overhead tracking and tooltip display

This commit is contained in:
max
2026-08-05 14:04:21 +02:00
parent d9582aecdd
commit 6ad5aa3f2c
3 changed files with 27 additions and 2 deletions
+10 -1
View File
@@ -194,7 +194,16 @@ namespace Nerfed.Editor.Systems
ImGui.TableNextColumn();
ImGui.Text($"{node.SelfMilliseconds():0.000}");
ImGui.TableNextColumn();
ImGui.Text($"{node.AllocatedBytes}");
if (node.ProfilerSetupBytes > 0)
{
ImGui.Text($"{node.AllocatedBytes} !");
if (ImGui.IsItemHovered())
ImGui.SetTooltip($"{node.ProfilerSetupBytes} B is profiler warmup overhead");
}
else
{
ImGui.Text($"{node.AllocatedBytes}");
}
ImGui.TableNextColumn();
ImGui.Text($"{node.SelfAllocatedBytes()}");