Skip to content

Commit e503422

Browse files
committed
Show sim speed and timescale seperately
1 parent 23dfe9c commit e503422

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Managers/PerformanceMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ namespace RTE {
130130
std::snprintf(str, sizeof(str), "Frame: %.1fms | Update: %.1fms | Draw: %.1fms", m_MSPFAverage, m_MSPUAverage, m_MSPDAverage);
131131
guiFont->DrawAligned(&drawBitmap, c_StatsOffsetX, c_StatsHeight + 10, str, GUIFont::Left);
132132

133-
std::snprintf(str, sizeof(str), "Time Scale: x%.2f ([1]-, [2]+, [Ctrl+1]Rst)", g_TimerMan.GetSimSpeed());
133+
std::snprintf(str, sizeof(str), "Time Scale: x%.2f ([1]-, [2]+, [Ctrl+1]Rst) | Sim Speed: x%.2f", g_TimerMan.GetTimeScale(), g_TimerMan.GetSimSpeed());
134134
guiFont->DrawAligned(&drawBitmap, c_StatsOffsetX, c_StatsHeight + 20, str, GUIFont::Left);
135135

136136
std::snprintf(str, sizeof(str), "Real to Sim Cap: %.2f ms ([3]-, [4]+, [Ctrl+3]Rst)", g_TimerMan.GetRealToSimCap() * 1000.0F);

Managers/TimerMan.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ namespace RTE {
8888

8989
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
9090

91-
#pragma optimize("", off)
9291
void TimerMan::Update() {
9392
long long prevTime = m_RealTimeTicks;
9493
m_RealTimeTicks = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() - m_StartTime).count();
@@ -115,5 +114,4 @@ namespace RTE {
115114

116115
m_SimSpeed = std::min(GetDeltaTimeMS() / g_PerformanceMan.GetMSPSUAverage(), GetTimeScale());
117116
}
118-
#pragma optimize("", on)
119117
}

0 commit comments

Comments
 (0)