File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1818
1919#pragma once
2020
21+ #include " Common/GameCommon.h"
22+
23+
2124class FrameRateLimit
2225{
2326public:
@@ -60,6 +63,11 @@ class LogicTimeScaleFpsPreset
6063public:
6164 enum CPP_11 (: UnsignedInt)
6265 {
66+ #if RTS_DEBUG
67+ MinFpsValue = 5 ,
68+ #else
69+ MinFpsValue = LOGICFRAMES_PER_SECOND,
70+ #endif
6371 StepFpsValue = 5 ,
6472 };
6573
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ UnsignedInt LogicTimeScaleFpsPreset::getNextFpsValue(UnsignedInt value)
105105
106106UnsignedInt LogicTimeScaleFpsPreset::getPrevFpsValue (UnsignedInt value)
107107{
108- if (value - StepFpsValue < LOGICFRAMES_PER_SECOND )
108+ if (value - StepFpsValue < MinFpsValue )
109109 {
110- return LOGICFRAMES_PER_SECOND ;
110+ return MinFpsValue ;
111111 }
112112 else
113113 {
You can’t perform that action at this time.
0 commit comments