@@ -4,16 +4,16 @@ class FPSCounter
4
4
{
5
5
public:
6
6
// !< The number of frames processed in the last second.
7
- static unsigned int & CurrentFrameRate;
7
+ static constexpr reference< unsigned int , 0xABCD44u > const CurrentFrameRate{} ;
8
8
9
9
// !< The total number of frames elapsed.
10
- static unsigned int & TotalFramesElapsed;
10
+ static constexpr reference< unsigned int , 0xABCD48u > const TotalFramesElapsed{} ;
11
11
12
12
// !< The time it took to process TotalFramesElapsed frames.
13
- static unsigned int & TotalTimeElapsed;
13
+ static constexpr reference< unsigned int , 0xABCD4Cu > const TotalTimeElapsed{} ;
14
14
15
15
// !< Whether the current fps is considered too low.
16
- static bool & ReducedEffects;
16
+ static constexpr reference< bool , 0xABCD50u > const ReducedEffects{} ;
17
17
18
18
// !< The average frame rate for all frames processed.
19
19
static inline double GetAverageFrameRate ()
@@ -30,10 +30,10 @@ class FPSCounter
30
30
class Detail {
31
31
public:
32
32
// !< What is considered the minimum acceptable FPS.
33
- static unsigned int & MinFrameRate;
33
+ static constexpr reference< unsigned int , 0x829FF4u > const MinFrameRate{} ;
34
34
35
- // !< The zone that needs to be left to change
36
- static unsigned int & BufferZoneWidth;
35
+ // !< The zone that needs to be left to change
36
+ static constexpr reference< unsigned int , 0x829FF8u > const BufferZoneWidth{} ;
37
37
38
38
// !< The minimum frame rate considering the buffer zone.
39
39
static inline unsigned int GetMinFrameRate ()
0 commit comments