1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Display barrier count in draw call HUD item

This commit is contained in:
Philip Rebohle 2022-02-14 01:10:15 +01:00
parent 316e252a27
commit 25ebf94873
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 13 additions and 0 deletions

View File

@ -366,6 +366,7 @@ namespace dxvk::hud {
m_gpCount = diffCounters.getCtr(DxvkStatCounter::CmdDrawCalls); m_gpCount = diffCounters.getCtr(DxvkStatCounter::CmdDrawCalls);
m_cpCount = diffCounters.getCtr(DxvkStatCounter::CmdDispatchCalls); m_cpCount = diffCounters.getCtr(DxvkStatCounter::CmdDispatchCalls);
m_rpCount = diffCounters.getCtr(DxvkStatCounter::CmdRenderPassCount); m_rpCount = diffCounters.getCtr(DxvkStatCounter::CmdRenderPassCount);
m_pbCount = diffCounters.getCtr(DxvkStatCounter::CmdBarrierCount);
m_lastUpdate = time; m_lastUpdate = time;
} }
@ -410,6 +411,17 @@ namespace dxvk::hud {
{ 1.0f, 1.0f, 1.0f, 1.0f }, { 1.0f, 1.0f, 1.0f, 1.0f },
str::format(m_rpCount)); 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; position.y += 8.0f;
return position; return position;
} }

View File

@ -294,6 +294,7 @@ namespace dxvk::hud {
uint64_t m_gpCount = 0; uint64_t m_gpCount = 0;
uint64_t m_cpCount = 0; uint64_t m_cpCount = 0;
uint64_t m_rpCount = 0; uint64_t m_rpCount = 0;
uint64_t m_pbCount = 0;
dxvk::high_resolution_clock::time_point m_lastUpdate dxvk::high_resolution_clock::time_point m_lastUpdate
= dxvk::high_resolution_clock::now(); = dxvk::high_resolution_clock::now();