Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Fixed brief slowmo at activity start
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless committed Dec 25, 2023
1 parent 3b823a7 commit eb9e300
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Managers/ActivityMan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ namespace RTE {
m_LastMusicPos = 0;
g_AudioMan.PauseIngameSounds(false);

g_PerformanceMan.ResetPerformanceTimings();

return error;
}

Expand Down Expand Up @@ -397,6 +399,7 @@ namespace RTE {

PauseActivity(false);
g_TimerMan.PauseSim(false);
g_PerformanceMan.ResetPerformanceTimings();
}
}

Expand Down
5 changes: 5 additions & 0 deletions Managers/PerformanceMan.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ namespace RTE {
#pragma endregion

#pragma region Concrete Methods
/// <summary>
/// Clears current performance timings.
/// </summary>
void ResetPerformanceTimings() { m_MSPSUs.clear(); m_MSPFs.clear(); m_MSPUs.clear(); m_MSPDs.clear(); }

/// <summary>
/// Resets the sim update timer.
/// </summary>
Expand Down

0 comments on commit eb9e300

Please sign in to comment.