Added uniform size stats.

This commit is contained in:
Branimir Karadžić 2015-08-27 11:06:45 -07:00
parent 2cb4a52b36
commit 89e55a0c7e
4 changed files with 18 additions and 14 deletions

View file

@ -5068,9 +5068,10 @@ BX_PRAGMA_DIAGNOSTIC_POP();
tvm.printf(tvm.m_width-27, 0, 0x1f, " [F11 - RenderDoc capture] "); tvm.printf(tvm.m_width-27, 0, 0x1f, " [F11 - RenderDoc capture] ");
} }
tvm.printf(10, pos++, 0x8e, " Indices: %7d", statsNumIndices); tvm.printf(10, pos++, 0x8e, " Indices: %7d ", statsNumIndices);
tvm.printf(10, pos++, 0x8e, " DVB size: %7d", _render->m_vboffset); tvm.printf(10, pos++, 0x8e, " Uniform size: %7d ", _render->m_constEnd);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d", _render->m_iboffset); tvm.printf(10, pos++, 0x8e, " DVB size: %7d ", _render->m_vboffset);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d ", _render->m_iboffset);
pos++; pos++;
tvm.printf(10, pos++, 0x8e, " State cache: "); tvm.printf(10, pos++, 0x8e, " State cache: ");

View file

@ -3228,12 +3228,12 @@ data.NumQualityLevels = 0;
memset(&m_stats, 0, sizeof(m_stats) ); memset(&m_stats, 0, sizeof(m_stats) );
memset(&m_current, 0, sizeof(m_current) ); memset(&m_current, 0, sizeof(m_current) );
} }
void BatchD3D12::end(ID3D12GraphicsCommandList* _commandList) void BatchD3D12::end(ID3D12GraphicsCommandList* _commandList)
{ {
flush(_commandList); flush(_commandList);
} }
struct UavFormat struct UavFormat
{ {
DXGI_FORMAT format[3]; DXGI_FORMAT format[3];
@ -4780,9 +4780,10 @@ data.NumQualityLevels = 0;
// tvm.printf(tvm.m_width-27, 0, 0x1f, " [F11 - RenderDoc capture] "); // tvm.printf(tvm.m_width-27, 0, 0x1f, " [F11 - RenderDoc capture] ");
// } // }
tvm.printf(10, pos++, 0x8e, " Indices: %7d ", statsNumIndices); tvm.printf(10, pos++, 0x8e, " Indices: %7d ", statsNumIndices);
tvm.printf(10, pos++, 0x8e, " DVB size: %7d ", _render->m_vboffset); tvm.printf(10, pos++, 0x8e, " Uniform size: %7d ", _render->m_constEnd);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d ", _render->m_iboffset); tvm.printf(10, pos++, 0x8e, " DVB size: %7d ", _render->m_vboffset);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d ", _render->m_iboffset);
pos++; pos++;
tvm.printf(10, pos++, 0x8e, " State cache: "); tvm.printf(10, pos++, 0x8e, " State cache: ");

View file

@ -3792,9 +3792,10 @@ namespace bgfx { namespace d3d9
); );
} }
tvm.printf(10, pos++, 0x8e, " Indices: %7d", statsNumIndices); tvm.printf(10, pos++, 0x8e, " Indices: %7d ", statsNumIndices);
tvm.printf(10, pos++, 0x8e, " DVB size: %7d", _render->m_vboffset); tvm.printf(10, pos++, 0x8e, " Uniform size: %7d ", _render->m_constEnd);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d", _render->m_iboffset); tvm.printf(10, pos++, 0x8e, " DVB size: %7d ", _render->m_vboffset);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d ", _render->m_iboffset);
double captureMs = double(captureElapsed)*toMs; double captureMs = double(captureElapsed)*toMs;
tvm.printf(10, pos++, 0x8e, " Capture: %7.4f [ms]", captureMs); tvm.printf(10, pos++, 0x8e, " Capture: %7.4f [ms]", captureMs);

View file

@ -5916,9 +5916,10 @@ namespace bgfx { namespace gl
tvm.printf(tvm.m_width-27, 0, 0x1f, " [F11 - RenderDoc capture] "); tvm.printf(tvm.m_width-27, 0, 0x1f, " [F11 - RenderDoc capture] ");
} }
tvm.printf(10, pos++, 0x8e, " Indices: %7d ", statsNumIndices); tvm.printf(10, pos++, 0x8e, " Indices: %7d ", statsNumIndices);
tvm.printf(10, pos++, 0x8e, " DVB size: %7d ", _render->m_vboffset); tvm.printf(10, pos++, 0x8e, " Uniform size: %7d ", _render->m_constEnd);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d ", _render->m_iboffset); tvm.printf(10, pos++, 0x8e, " DVB size: %7d ", _render->m_vboffset);
tvm.printf(10, pos++, 0x8e, " DIB size: %7d ", _render->m_iboffset);
pos++; pos++;
tvm.printf(10, pos++, 0x8e, " State cache: "); tvm.printf(10, pos++, 0x8e, " State cache: ");