Skip to content

Commit eb9e300

Browse files
committed
Fixed brief slowmo at activity start
1 parent 3b823a7 commit eb9e300

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Managers/ActivityMan.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ namespace RTE {
330330
m_LastMusicPos = 0;
331331
g_AudioMan.PauseIngameSounds(false);
332332

333+
g_PerformanceMan.ResetPerformanceTimings();
334+
333335
return error;
334336
}
335337

@@ -397,6 +399,7 @@ namespace RTE {
397399

398400
PauseActivity(false);
399401
g_TimerMan.PauseSim(false);
402+
g_PerformanceMan.ResetPerformanceTimings();
400403
}
401404
}
402405

Managers/PerformanceMan.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ namespace RTE {
131131
#pragma endregion
132132

133133
#pragma region Concrete Methods
134+
/// <summary>
135+
/// Clears current performance timings.
136+
/// </summary>
137+
void ResetPerformanceTimings() { m_MSPSUs.clear(); m_MSPFs.clear(); m_MSPUs.clear(); m_MSPDs.clear(); }
138+
134139
/// <summary>
135140
/// Resets the sim update timer.
136141
/// </summary>

0 commit comments

Comments
 (0)