Skip to content

Commit 65393cb

Browse files
author
nitrocaster
committed
Tweak performance stats formatting.
1 parent d48d4f0 commit 65393cb

File tree

14 files changed

+127
-105
lines changed

14 files changed

+127
-105
lines changed

src/Layers/xrRender/HOM.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,10 @@ void CHOM::Enable ()
336336
void CHOM::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
337337
{
338338
stats.FrameEnd();
339-
auto modelTris = m_pModel ? m_pModel->get_tris_count() : 0;
340-
font.OutNext(" **** HOM: %2.2fms (%d) visible[%2d] frustum[%2d] total[%2d]",
341-
stats.Total.result, stats.Total.count, stats.VisibleTriangleCount, stats.FrustumTriangleCount, modelTris);
339+
font.OutNext("HOM: %2.2fms, %u", stats.Total.result, stats.Total.count);
340+
font.OutNext("- visible: %u", stats.VisibleTriangleCount);
341+
font.OutNext("- frustum: %u", stats.FrustumTriangleCount);
342+
font.OutNext("- total: %d", m_pModel ? m_pModel->get_tris_count() : 0);
342343
stats.FrameStart();
343344
}
344345

src/Layers/xrRender/r__dsgraph_build.cpp

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,51 +1092,52 @@ void D3DXRenderBase::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
10921092
BasicStats.FrameEnd();
10931093
auto renderTotal = Device.GetStats().RenderTotal.result;
10941094
#define PPP(a) (100.f*float(a)/renderTotal)
1095-
font.OutNext("*** RENDER: %2.2fms", renderTotal);
1096-
font.OutNext(" Calc: %2.2fms, %2.1f%%", BasicStats.Culling.result, PPP(BasicStats.Culling.result));
1097-
font.OutNext(" Skeletons: %2.2fms, %d", BasicStats.Animation.result, BasicStats.Animation.count);
1098-
font.OutNext(" Primitives: %2.2fms, %2.1f%%", BasicStats.Primitives.result, PPP(BasicStats.Primitives.result));
1099-
font.OutNext(" Wait-L: %2.2fms", BasicStats.Wait.result);
1100-
font.OutNext(" Wait-S: %2.2fms", BasicStats.WaitS.result);
1101-
font.OutNext(" Skinning: %2.2fms", BasicStats.Skinning.result);
1102-
font.OutNext(" DT_Vis/Cnt: %2.2fms/%d", BasicStats.DetailVisibility.result, BasicStats.DetailCount);
1103-
font.OutNext(" DT_Render: %2.2fms", BasicStats.DetailRender.result);
1104-
font.OutNext(" DT_Cache: %2.2fms", BasicStats.DetailCache.result);
1105-
font.OutNext(" Wallmarks: %2.2fms, %d/%d - %d", BasicStats.Wallmarks.result, BasicStats.StaticWMCount,
1095+
font.OutNext("*** RENDER: %2.2fms", renderTotal);
1096+
font.OutNext("Calc: %2.2fms, %2.1f%%", BasicStats.Culling.result, PPP(BasicStats.Culling.result));
1097+
font.OutNext("Skeletons: %2.2fms, %d", BasicStats.Animation.result, BasicStats.Animation.count);
1098+
font.OutNext("Primitives: %2.2fms, %2.1f%%", BasicStats.Primitives.result, PPP(BasicStats.Primitives.result));
1099+
font.OutNext("Wait-L: %2.2fms", BasicStats.Wait.result);
1100+
font.OutNext("Wait-S: %2.2fms", BasicStats.WaitS.result);
1101+
font.OutNext("Skinning: %2.2fms", BasicStats.Skinning.result);
1102+
font.OutNext("DT_Vis/Cnt: %2.2fms/%d", BasicStats.DetailVisibility.result, BasicStats.DetailCount);
1103+
font.OutNext("DT_Render: %2.2fms", BasicStats.DetailRender.result);
1104+
font.OutNext("DT_Cache: %2.2fms", BasicStats.DetailCache.result);
1105+
font.OutNext("Wallmarks: %2.2fms, %d/%d - %d", BasicStats.Wallmarks.result, BasicStats.StaticWMCount,
11061106
BasicStats.DynamicWMCount, BasicStats.WMTriCount);
1107-
font.OutNext(" Glows: %2.2fms", BasicStats.Glows.result);
1108-
font.OutNext(" Lights: %2.2fms, %d", BasicStats.Lights.result, BasicStats.Lights.count);
1109-
font.OutNext(" RT: %2.2fms, %d", BasicStats.RenderTargets.result, BasicStats.RenderTargets.count);
1110-
font.OutNext(" HUD: %2.2fms", BasicStats.HUD.result);
1111-
font.OutNext(" P_calc: %2.2fms", BasicStats.Projectors.result);
1112-
font.OutNext(" S_calc: %2.2fms", BasicStats.ShadowsCalc.result);
1113-
font.OutNext(" S_render: %2.2fms, %d", BasicStats.ShadowsRender.result, BasicStats.ShadowsRender.count);
1114-
font.OutNext(" Occ-q (%03.1f, %2d/%2d)",
1115-
100.f*f32(BasicStats.OcclusionCulled) / f32(_min(1, BasicStats.OcclusionQueries)),
1116-
BasicStats.OcclusionCulled, BasicStats.OcclusionQueries);
1107+
font.OutNext("Glows: %2.2fms", BasicStats.Glows.result);
1108+
font.OutNext("Lights: %2.2fms, %d", BasicStats.Lights.result, BasicStats.Lights.count);
1109+
font.OutNext("RT: %2.2fms, %d", BasicStats.RenderTargets.result, BasicStats.RenderTargets.count);
1110+
font.OutNext("HUD: %2.2fms", BasicStats.HUD.result);
1111+
font.OutNext("P_calc: %2.2fms", BasicStats.Projectors.result);
1112+
font.OutNext("S_calc: %2.2fms", BasicStats.ShadowsCalc.result);
1113+
font.OutNext("S_render: %2.2fms, %d", BasicStats.ShadowsRender.result, BasicStats.ShadowsRender.count);
1114+
u32 occQs = BasicStats.OcclusionQueries ? BasicStats.OcclusionQueries : 1;
1115+
font.OutNext("Occ-query: %03.1f", 100.f*f32(BasicStats.OcclusionCulled)/occQs);
1116+
font.OutNext("- queries: %u", BasicStats.OcclusionQueries);
1117+
font.OutNext("- culled: %u", BasicStats.OcclusionCulled);
11171118
#undef PPP
11181119
font.OutSkip();
11191120
const auto &rcstats = RCache.stat;
1120-
font.OutNext("VERT: %d/%d", rcstats.verts, rcstats.calls ? rcstats.verts / rcstats.calls : 0);
1121-
font.OutNext("POLY: %d/%d", rcstats.polys, rcstats.calls ? rcstats.polys / rcstats.calls : 0);
1122-
font.OutNext("DIP/DP: %d", rcstats.calls);
1121+
font.OutNext("Vertices: %d/%d", rcstats.verts, rcstats.calls ? rcstats.verts/rcstats.calls : 0);
1122+
font.OutNext("Polygons: %d/%d", rcstats.polys, rcstats.calls ? rcstats.polys/rcstats.calls : 0);
1123+
font.OutNext("DIP/DP: %d", rcstats.calls);
11231124
#ifdef DEBUG
1124-
font.OutNext("SH/T/M/C: %d/%d/%d/%d", rcstats.states, rcstats.textures, rcstats.matrices, rcstats.constants);
1125-
font.OutNext("RT/PS/VS: %d/%d/%d", rcstats.target_rt, rcstats.ps, rcstats.vs);
1126-
font.OutNext("DCL/VB/IB: %d/%d/%d", rcstats.decl, rcstats.vb, rcstats.ib);
1125+
font.OutNext("SH/T/M/C: %d/%d/%d/%d", rcstats.states, rcstats.textures, rcstats.matrices, rcstats.constants);
1126+
font.OutNext("RT/PS/VS: %d/%d/%d", rcstats.target_rt, rcstats.ps, rcstats.vs);
1127+
font.OutNext("DECL/VB/IB: %d/%d/%d", rcstats.decl, rcstats.vb, rcstats.ib);
11271128
#endif
1128-
font.OutNext("xforms: %d", rcstats.xforms);
1129-
font.OutNext("static: %3.1f/%d", rcstats.r.s_static.verts / 1024.f, rcstats.r.s_static.dips);
1130-
font.OutNext("flora: %3.1f/%d", rcstats.r.s_flora.verts / 1024.f, rcstats.r.s_flora.dips);
1131-
font.OutNext("- lods: %3.1f/%d", rcstats.r.s_flora_lods.verts / 1024.f, rcstats.r.s_flora_lods.dips);
1132-
font.OutNext("dynamic: %3.1f/%d", rcstats.r.s_dynamic.verts / 1024.f, rcstats.r.s_dynamic.dips);
1133-
font.OutNext("- sw: %3.1f/%d", rcstats.r.s_dynamic_sw.verts / 1024.f, rcstats.r.s_dynamic_sw.dips);
1134-
font.OutNext("- inst: %3.1f/%d", rcstats.r.s_dynamic_inst.verts / 1024.f, rcstats.r.s_dynamic_inst.dips);
1135-
font.OutNext("- 1B: %3.1f/%d", rcstats.r.s_dynamic_1B.verts / 1024.f, rcstats.r.s_dynamic_1B.dips);
1136-
font.OutNext("- 2B: %3.1f/%d", rcstats.r.s_dynamic_2B.verts / 1024.f, rcstats.r.s_dynamic_2B.dips);
1137-
font.OutNext("- 3B: %3.1f/%d", rcstats.r.s_dynamic_3B.verts / 1024.f, rcstats.r.s_dynamic_3B.dips);
1138-
font.OutNext("- 4B: %3.1f/%d", rcstats.r.s_dynamic_4B.verts / 1024.f, rcstats.r.s_dynamic_4B.dips);
1139-
font.OutNext("details: %3.1f/%d", rcstats.r.s_details.verts / 1024.f, rcstats.r.s_details.dips);
1129+
font.OutNext("XForms: %d", rcstats.xforms);
1130+
font.OutNext("Static: %3.1f/%d", rcstats.r.s_static.verts/1024.f, rcstats.r.s_static.dips);
1131+
font.OutNext("Flora: %3.1f/%d", rcstats.r.s_flora.verts/1024.f, rcstats.r.s_flora.dips);
1132+
font.OutNext("- lods: %3.1f/%d", rcstats.r.s_flora_lods.verts/1024.f, rcstats.r.s_flora_lods.dips);
1133+
font.OutNext("Dynamic: %3.1f/%d", rcstats.r.s_dynamic.verts/1024.f, rcstats.r.s_dynamic.dips);
1134+
font.OutNext("- sw: %3.1f/%d", rcstats.r.s_dynamic_sw.verts/1024.f, rcstats.r.s_dynamic_sw.dips);
1135+
font.OutNext("- inst: %3.1f/%d", rcstats.r.s_dynamic_inst.verts/1024.f, rcstats.r.s_dynamic_inst.dips);
1136+
font.OutNext("- 1B: %3.1f/%d", rcstats.r.s_dynamic_1B.verts/1024.f, rcstats.r.s_dynamic_1B.dips);
1137+
font.OutNext("- 2B: %3.1f/%d", rcstats.r.s_dynamic_2B.verts/1024.f, rcstats.r.s_dynamic_2B.dips);
1138+
font.OutNext("- 3B: %3.1f/%d", rcstats.r.s_dynamic_3B.verts/1024.f, rcstats.r.s_dynamic_3B.dips);
1139+
font.OutNext("- 4B: %3.1f/%d", rcstats.r.s_dynamic_4B.verts/1024.f, rcstats.r.s_dynamic_4B.dips);
1140+
font.OutNext("Details: %3.1f/%d", rcstats.r.s_details.verts/1024.f, rcstats.r.s_details.dips);
11401141
if (alert)
11411142
{
11421143
if (rcstats.verts>500000)

src/Layers/xrRenderPC_R2/r2.cpp

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -528,14 +528,19 @@ void CRender::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
528528
{
529529
D3DXRenderBase::DumpStatistics(font, alert);
530530
Stats.FrameEnd();
531-
font.OutNext(" **** LT:%2d,LV:%2d", Stats.l_total, Stats.l_visible);
532-
font.OutNext(" S(%2d) | (%2d)NS ", Stats.l_shadowed, Stats.l_unshadowed);
533-
font.OutNext("smap use[%2d], merge[%2d], finalclip[%2d]", Stats.s_used, Stats.s_merged - Stats.s_used, Stats.s_finalclip);
534-
font.OutSkip();
531+
font.OutNext("Lights:");
532+
font.OutNext("- total: %u", Stats.l_total);
533+
font.OutNext("- visible: %u", Stats.l_visible);
534+
font.OutNext("- shadowed: %u", Stats.l_shadowed);
535+
font.OutNext("- unshadowed: %u", Stats.l_unshadowed);
536+
font.OutNext("Shadow maps:");
537+
font.OutNext("- used: %d", Stats.s_used);
538+
font.OutNext("- merged: %d", Stats.s_merged-Stats.s_used);
539+
font.OutNext("- finalclip: %d", Stats.s_finalclip);
535540
u32 ict = Stats.ic_total + Stats.ic_culled;
536-
font.OutNext(" **** iCULL(%03.1f)", 100.f*f32(Stats.ic_culled) / f32(ict ? ict : 1));
537-
font.OutNext(" visible: %2d", Stats.ic_total);
538-
font.OutNext(" culled : %2d", Stats.ic_culled);
541+
font.OutNext("ICULL: %03.1f", 100.f*f32(Stats.ic_culled) / f32(ict ? ict : 1));
542+
font.OutNext("- visible: %u", Stats.ic_total);
543+
font.OutNext("- culled: %u", Stats.ic_culled);
539544
Stats.FrameStart();
540545
HOM.DumpStatistics(font, alert);
541546
}

src/Layers/xrRenderPC_R3/r3.cpp

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -661,14 +661,19 @@ void CRender::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
661661
{
662662
D3DXRenderBase::DumpStatistics(font, alert);
663663
Stats.FrameEnd();
664-
font.OutNext(" **** LT:%2d,LV:%2d", Stats.l_total, Stats.l_visible);
665-
font.OutNext(" S(%2d) | (%2d)NS ", Stats.l_shadowed, Stats.l_unshadowed);
666-
font.OutNext("smap use[%2d], merge[%2d], finalclip[%2d]", Stats.s_used, Stats.s_merged - Stats.s_used, Stats.s_finalclip);
667-
font.OutSkip();
664+
font.OutNext("Lights:");
665+
font.OutNext("- total: %u", Stats.l_total);
666+
font.OutNext("- visible: %u", Stats.l_visible);
667+
font.OutNext("- shadowed: %u", Stats.l_shadowed);
668+
font.OutNext("- unshadowed: %u", Stats.l_unshadowed);
669+
font.OutNext("Shadow maps:");
670+
font.OutNext("- used: %d", Stats.s_used);
671+
font.OutNext("- merged: %d", Stats.s_merged-Stats.s_used);
672+
font.OutNext("- finalclip: %d", Stats.s_finalclip);
668673
u32 ict = Stats.ic_total + Stats.ic_culled;
669-
font.OutNext(" **** iCULL(%03.1f)", 100.f*f32(Stats.ic_culled) / f32(ict ? ict : 1));
670-
font.OutNext(" visible: %2d", Stats.ic_total);
671-
font.OutNext(" culled : %2d", Stats.ic_culled);
674+
font.OutNext("ICULL: %03.1f", 100.f*f32(Stats.ic_culled) / f32(ict ? ict : 1));
675+
font.OutNext("- visible: %u", Stats.ic_total);
676+
font.OutNext("- culled: %u", Stats.ic_culled);
672677
Stats.FrameStart();
673678
HOM.DumpStatistics(font, alert);
674679
}

src/Layers/xrRenderPC_R4/r4.cpp

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -675,14 +675,19 @@ void CRender::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
675675
{
676676
D3DXRenderBase::DumpStatistics(font, alert);
677677
Stats.FrameEnd();
678-
font.OutNext(" **** LT:%2d,LV:%2d", Stats.l_total, Stats.l_visible);
679-
font.OutNext(" S(%2d) | (%2d)NS ", Stats.l_shadowed, Stats.l_unshadowed);
680-
font.OutNext("smap use[%2d], merge[%2d], finalclip[%2d]", Stats.s_used, Stats.s_merged - Stats.s_used, Stats.s_finalclip);
681-
font.OutSkip();
678+
font.OutNext("Lights:");
679+
font.OutNext("- total: %u", Stats.l_total);
680+
font.OutNext("- visible: %u", Stats.l_visible);
681+
font.OutNext("- shadowed: %u", Stats.l_shadowed);
682+
font.OutNext("- unshadowed: %u", Stats.l_unshadowed);
683+
font.OutNext("Shadow maps:");
684+
font.OutNext("- used: %d", Stats.s_used);
685+
font.OutNext("- merged: %d", Stats.s_merged-Stats.s_used);
686+
font.OutNext("- finalclip: %d", Stats.s_finalclip);
682687
u32 ict = Stats.ic_total + Stats.ic_culled;
683-
font.OutNext(" **** iCULL(%03.1f)", 100.f*f32(Stats.ic_culled) / f32(ict ? ict : 1));
684-
font.OutNext(" visible: %2d", Stats.ic_total);
685-
font.OutNext(" culled : %2d", Stats.ic_culled);
688+
font.OutNext("ICULL: %03.1f", 100.f*f32(Stats.ic_culled) / f32(ict ? ict : 1));
689+
font.OutNext("- visible: %u", Stats.ic_total);
690+
font.OutNext("- culled: %u", Stats.ic_culled);
686691
Stats.FrameStart();
687692
HOM.DumpStatistics(font, alert);
688693
}

src/xrEngine/Device_Initialize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ PROTECT_API void CRenderDevice::Initialize()
7272

7373
void CRenderDevice::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
7474
{
75-
font.OutNext("*** ENGINE: %2.2fms", stats.EngineTotal.result);
76-
font.OutNext("- FPS/RFPS: %3.1f/%3.1f", stats.fFPS, stats.fRFPS);
77-
font.OutNext("- TPS: %2.2f M", stats.fTPS);
75+
font.OutNext("*** ENGINE: %2.2fms", stats.EngineTotal.result);
76+
font.OutNext("FPS/RFPS: %3.1f/%3.1f", stats.fFPS, stats.fRFPS);
77+
font.OutNext("TPS: %2.2f M", stats.fTPS);
7878
if (alert && stats.fFPS<30)
7979
alert->Print(font, "FPS < 30: %3.1f", stats.fFPS);
8080
}

src/xrEngine/Stats.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ static void DumpSpatialStatistics(CGameFont &font, PerformanceAlert *alert, ISpa
7777
auto &stats = db.Stats;
7878
stats.FrameEnd();
7979
#define PPP(a) (100.f*float(a)/engineTotal)
80-
font.OutNext("%s: %.2fms, %u", db.Name, stats.Query.result, stats.Query.count);
81-
font.OutNext("- nodes/objects: %u/%u", stats.NodeCount, stats.ObjectCount);
82-
font.OutNext("- insert: %.2fms, %2.1f%%", stats.Insert.result, PPP(stats.Insert.result));
83-
font.OutNext("- remove: %.2fms, %2.1f%%", stats.Remove.result, PPP(stats.Remove.result));
80+
font.OutNext("%s:", db.Name);
81+
font.OutNext("- query: %.2fms, %u", stats.Query.result, stats.Query.count);
82+
font.OutNext("- nodes/obj: %u/%u", stats.NodeCount, stats.ObjectCount);
83+
font.OutNext("- insert: %.2fms, %2.1f%%", stats.Insert.result, PPP(stats.Insert.result));
84+
font.OutNext("- remove: %.2fms, %2.1f%%", stats.Remove.result, PPP(stats.Remove.result));
8485
#undef PPP
8586
stats.FrameStart();
8687
#endif
@@ -94,9 +95,10 @@ static void DumpColliderStatistics(CGameFont &font, PerformanceAlert *alert)
9495
static float boxPs = 0;
9596
rayPs = 0.99f*rayPs + 0.01f*(stats.RayQuery.count/stats.RayQuery.result);
9697
boxPs = 0.99f*boxPs + 0.01f*(stats.BoxQuery.count/stats.BoxQuery.result);
97-
font.OutNext("XRC ray query: %2.2fms, %d, %2.0fK", stats.RayQuery.result, stats.RayQuery.count, rayPs);
98-
font.OutNext("XRC box query: %2.2fms, %d, %2.0fK", stats.BoxQuery.result, stats.BoxQuery.count, boxPs);
99-
font.OutNext("XRC frustum query: %2.2fms, %d", stats.FrustumQuery.result, stats.FrustumQuery.count);
98+
font.OutNext("XRC:");
99+
font.OutNext("- ray: %2.2fms, %d, %2.0fK", stats.RayQuery.result, stats.RayQuery.count, rayPs);
100+
font.OutNext("- box: %2.2fms, %d, %2.0fK", stats.BoxQuery.result, stats.BoxQuery.count, boxPs);
101+
font.OutNext("- frustum: %2.2fms, %d", stats.FrustumQuery.result, stats.FrustumQuery.count);
100102
stats.FrameStart();
101103
}
102104

@@ -130,11 +132,10 @@ void CStats::Show()
130132
font.SetColor(0xFFFFFFFF);
131133
font.OutSet(0, 0);
132134
#if defined(FS_DEBUG)
133-
font.OutNext("mapped: %d", g_file_mapped_memory);
135+
font.OutNext("Mapped: %d", g_file_mapped_memory);
134136
#endif
135-
font.OutSkip();
136137
Device.DumpStatistics(font, alertPtr);
137-
font.OutNext("Memory: %2.2fa", fMem_calls);
138+
font.OutNext("Memory: %2.2f", fMem_calls);
138139
if (g_pGameLevel)
139140
g_pGameLevel->DumpStatistics(font, alertPtr);
140141
Engine.Sheduler.DumpStatistics(font, alertPtr);
@@ -144,7 +145,6 @@ void CStats::Show()
144145
DumpColliderStatistics(font, alertPtr);
145146
if (physics_world())
146147
physics_world()->DumpStatistics(font, alertPtr);
147-
font.OutSkip();
148148
font.OutSet(200, 0);
149149
Render->DumpStatistics(font, alertPtr);
150150
font.OutSkip();
@@ -158,7 +158,7 @@ void CStats::Show()
158158
Memory.stat_strdock = 0;
159159
CPU::qpc_counter = 0;
160160
#else
161-
font.OutNext("qpc[%3d]", CPU::qpc_counter);
161+
font.OutNext("QPC: %u", CPU::qpc_counter);
162162
CPU::qpc_counter = 0;
163163
#endif
164164
font.OnRender();
@@ -176,7 +176,7 @@ void CStats::Show()
176176
if (!g_bDisableRedText && errors.size())
177177
{
178178
font.SetColor(color_rgba(255, 16, 16, 191));
179-
font.OutSet(200, 0);
179+
font.OutSet(400, 0);
180180
for (u32 it = (u32)_max(int(0), (int)errors.size() - g_ErrorLineCount); it < errors.size(); it++)
181181
font.OutNext("%s", errors[it].c_str());
182182
font.OnRender();

src/xrEngine/Xr_input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ HRESULT CInput::CreateInputDevice(LPDIRECTINPUTDEVICE8* device, GUID guidDevice,
164164

165165
void CInput::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
166166
{
167-
font.OutNext("Input: %2.2fms", pInput->GetStats().FrameTime.result);
167+
font.OutNext("*** INPUT: %2.2fms", pInput->GetStats().FrameTime.result);
168168
}
169169

170170

src/xrEngine/xrSheduler.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ void CSheduler::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
5151
{
5252
stats.FrameEnd();
5353
float percentage = 100.f*stats.Update.result / Device.GetStats().EngineTotal.result;
54-
font.OutNext("Sheduler update: %2.2fms, %2.1f%%", stats.Update.result, percentage);
55-
font.OutNext("Sheduler load: %2.2fms", stats.Load);
54+
font.OutNext("Scheduler:");
55+
font.OutNext("- update: %2.2fms, %2.1f%%", stats.Update.result, percentage);
56+
font.OutNext("- load: %2.2fms", stats.Load);
5657
if (alert && stats.Update.result>3.0f)
5758
alert->Print(font, "Update > 3ms: %3.1f", stats.Update.result);
5859
stats.FrameStart();

src/xrEngine/xr_object_list.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ void CObjectList::DumpStatistics(CGameFont &font, PerformanceAlert *alert)
2929
stats.FrameEnd();
3030
float engineTotal = Device.GetStats().EngineTotal.result;
3131
float percentage = 100.0f * stats.Update.result / engineTotal;
32-
font.OutNext("uClients: %2.2fms, %2.1f%%, crow(%d)/active(%d)/total(%d)", stats.Update.result,
33-
percentage, stats.Crows, stats.Active, stats.Total);
32+
font.OutNext("Objects: %2.2fms, %2.1f%%", stats.Update.result, percentage);
33+
font.OutNext("- crow: %d", stats.Crows);
34+
font.OutNext("- active: %d", stats.Active);
35+
font.OutNext("- total: %d", stats.Total);
3436
if (alert && stats.Update.result>3.0f)
35-
alert->Print(font, "UpdateCL > 3ms: %3.1f", stats.Update.result);
37+
alert->Print(font, "UpdateCL > 3ms: %3.1f", stats.Update.result);
3638
}
3739

3840
CObjectList::CObjectList() :

0 commit comments

Comments
 (0)