Skip to content

Commit b287444

Browse files
author
nitrocaster
committed
Render performance statistics with single OnRender call.
1 parent 20c2e9b commit b287444

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/xrEngine/Stats.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ void CStats::Show()
107107
font.SetColor(0xFFFF0000);
108108
font.OutSet(Device.dwWidth / 2.0f + (font.SizeOf_("--= tune =--") / 2.0f), Device.dwHeight / 2.0f);
109109
font.OutNext("--= tune =--");
110-
font.OnRender();
111110
font.SetHeight(sz);
112111
}
113112
// Show them
@@ -144,7 +143,6 @@ void CStats::Show()
144143
font.OutNext("QPC: %u", CPU::qpc_counter);
145144
CPU::qpc_counter = 0;
146145
#endif
147-
font.OnRender();
148146
}
149147
if (psDeviceFlags.test(rsCameraPos))
150148
{
@@ -153,7 +151,6 @@ void CStats::Show()
153151
font.SetColor(0xffffffff);
154152
font.Out(10, 600, "CAMERA POSITION: [%3.2f,%3.2f,%3.2f]", VPUSH(Device.vCameraPosition));
155153
font.SetHeight(refHeight);
156-
font.OnRender();
157154
}
158155
#ifdef DEBUG
159156
if (!g_bDisableRedText && errors.size())
@@ -162,9 +159,9 @@ void CStats::Show()
162159
font.OutSet(400, 0);
163160
for (u32 it = (u32)_max(int(0), (int)errors.size() - g_ErrorLineCount); it < errors.size(); it++)
164161
font.OutNext("%s", errors[it].c_str());
165-
font.OnRender();
166162
}
167163
#endif
164+
font.OnRender();
168165
}
169166

170167
void CStats::OnDeviceCreate()

0 commit comments

Comments
 (0)