summaryrefslogtreecommitdiffstats
path: root/src/core/Timer.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-01 16:52:40 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-01 17:32:34 +0200
commitd930a25d942fb0a94d9df0bc0d3eaf76fbc03658 (patch)
tree102e2f6c98538dca669b94fa05eb5615f44d7c45 /src/core/Timer.h
parentMerge pull request #608 from Nick007J/miami (diff)
downloadre3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.gz
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.bz2
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.lz
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.xz
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.tar.zst
re3-d930a25d942fb0a94d9df0bc0d3eaf76fbc03658.zip
Diffstat (limited to 'src/core/Timer.h')
-rw-r--r--src/core/Timer.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/Timer.h b/src/core/Timer.h
index e7b6fec8..b2b8e633 100644
--- a/src/core/Timer.h
+++ b/src/core/Timer.h
@@ -1,10 +1,16 @@
#pragma once
+#ifdef FIX_HIGH_FPS_BUGS_ON_FRONTEND
+#define PauseModeTime double
+#else
+#define PauseModeTime uint32
+#endif
+
class CTimer
{
static uint32 m_snTimeInMilliseconds;
- static uint32 m_snTimeInMillisecondsPauseMode;
+ static PauseModeTime m_snTimeInMillisecondsPauseMode;
static uint32 m_snTimeInMillisecondsNonClipped;
static uint32 m_snPreviousTimeInMilliseconds;
static uint32 m_FrameCounter;
@@ -29,7 +35,7 @@ public:
static void SetTimeInMilliseconds(uint32 t) { m_snTimeInMilliseconds = t; }
static uint32 GetTimeInMillisecondsNonClipped(void) { return m_snTimeInMillisecondsNonClipped; }
static void SetTimeInMillisecondsNonClipped(uint32 t) { m_snTimeInMillisecondsNonClipped = t; }
- static uint32 GetTimeInMillisecondsPauseMode(void) { return m_snTimeInMillisecondsPauseMode; }
+ static PauseModeTime GetTimeInMillisecondsPauseMode(void) { return m_snTimeInMillisecondsPauseMode; }
static void SetTimeInMillisecondsPauseMode(uint32 t) { m_snTimeInMillisecondsPauseMode = t; }
static uint32 GetPreviousTimeInMilliseconds(void) { return m_snPreviousTimeInMilliseconds; }
static void SetPreviousTimeInMilliseconds(uint32 t) { m_snPreviousTimeInMilliseconds = t; }
@@ -63,6 +69,6 @@ public:
#endif
};
-#ifdef FIX_BUGS
+#ifdef FIX_HIGH_FPS_BUGS_ON_FRONTEND
extern double frameTime;
#endif