Skip to content

Commit 35778bf

Browse files
committed
tweak(fps): Set min logic time scale to 5 with RTS_DEBUG
1 parent 06c6b3b commit 35778bf

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Core/GameEngine/Include/Common/FrameRateLimit.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
#pragma once
2020

21+
#include "Common/GameCommon.h"
22+
23+
2124
class FrameRateLimit
2225
{
2326
public:
@@ -60,6 +63,11 @@ class LogicTimeScaleFpsPreset
6063
public:
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

Core/GameEngine/Source/Common/FrameRateLimit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ UnsignedInt LogicTimeScaleFpsPreset::getNextFpsValue(UnsignedInt value)
105105

106106
UnsignedInt 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
{

0 commit comments

Comments
 (0)