diff --git a/src/dxvk/hud/dxvk_hud_item.cpp b/src/dxvk/hud/dxvk_hud_item.cpp index 9cdcbdbb2..c23fd1591 100644 --- a/src/dxvk/hud/dxvk_hud_item.cpp +++ b/src/dxvk/hud/dxvk_hud_item.cpp @@ -366,6 +366,7 @@ namespace dxvk::hud { m_gpCount = diffCounters.getCtr(DxvkStatCounter::CmdDrawCalls); m_cpCount = diffCounters.getCtr(DxvkStatCounter::CmdDispatchCalls); m_rpCount = diffCounters.getCtr(DxvkStatCounter::CmdRenderPassCount); + m_pbCount = diffCounters.getCtr(DxvkStatCounter::CmdBarrierCount); m_lastUpdate = time; } @@ -410,6 +411,17 @@ namespace dxvk::hud { { 1.0f, 1.0f, 1.0f, 1.0f }, str::format(m_rpCount)); + position.y += 20.0f; + renderer.drawText(16.0f, + { position.x, position.y }, + { 0.25f, 0.5f, 1.0f, 1.0f }, + "Barriers:"); + + renderer.drawText(16.0f, + { position.x + 192.0f, position.y }, + { 1.0f, 1.0f, 1.0f, 1.0f }, + str::format(m_pbCount)); + position.y += 8.0f; return position; } diff --git a/src/dxvk/hud/dxvk_hud_item.h b/src/dxvk/hud/dxvk_hud_item.h index 45ef43b0b..5ef2f1b7a 100644 --- a/src/dxvk/hud/dxvk_hud_item.h +++ b/src/dxvk/hud/dxvk_hud_item.h @@ -294,6 +294,7 @@ namespace dxvk::hud { uint64_t m_gpCount = 0; uint64_t m_cpCount = 0; uint64_t m_rpCount = 0; + uint64_t m_pbCount = 0; dxvk::high_resolution_clock::time_point m_lastUpdate = dxvk::high_resolution_clock::now();