Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/Renderer.cpp
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | private: | ||||
/// Reference to the renderer singleton's stats | /// Reference to the renderer singleton's stats | ||||
const CRenderer::Stats& Stats; | const CRenderer::Stats& Stats; | ||||
/// Column descriptions | /// Column descriptions | ||||
std::vector<ProfileColumn> columnDescriptions; | std::vector<ProfileColumn> columnDescriptions; | ||||
enum { | enum { | ||||
Row_DrawCalls = 0, | Row_DrawCalls = 0, | ||||
Row_SavedDrawCalls, | |||||
Row_TerrainTris, | Row_TerrainTris, | ||||
Row_WaterTris, | Row_WaterTris, | ||||
Row_ModelTris, | Row_ModelTris, | ||||
Row_OverlayTris, | Row_OverlayTris, | ||||
Row_BlendSplats, | Row_BlendSplats, | ||||
Row_Particles, | Row_Particles, | ||||
Row_VBReserved, | Row_VBReserved, | ||||
Row_VBAllocated, | Row_VBAllocated, | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | CStr CRendererStatsTable::GetCellText(size_t row, size_t col) | ||||
switch(row) | switch(row) | ||||
{ | { | ||||
case Row_DrawCalls: | case Row_DrawCalls: | ||||
if (col == 0) | if (col == 0) | ||||
return "# draw calls"; | return "# draw calls"; | ||||
sprintf_s(buf, sizeof(buf), "%lu", (unsigned long)Stats.m_DrawCalls); | sprintf_s(buf, sizeof(buf), "%lu", (unsigned long)Stats.m_DrawCalls); | ||||
return buf; | return buf; | ||||
case Row_SavedDrawCalls: | |||||
if (col == 0) | |||||
return "# saved draw calls"; | |||||
sprintf_s(buf, sizeof(buf), "%lu", (unsigned long)Stats.m_SavedDrawCalls); | |||||
return buf; | |||||
case Row_TerrainTris: | case Row_TerrainTris: | ||||
if (col == 0) | if (col == 0) | ||||
return "# terrain tris"; | return "# terrain tris"; | ||||
sprintf_s(buf, sizeof(buf), "%lu", (unsigned long)Stats.m_TerrainTris); | sprintf_s(buf, sizeof(buf), "%lu", (unsigned long)Stats.m_TerrainTris); | ||||
return buf; | return buf; | ||||
case Row_WaterTris: | case Row_WaterTris: | ||||
if (col == 0) | if (col == 0) | ||||
▲ Show 20 Lines • Show All 1,788 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator