11 #include "threads/Event.h" 12 #include "threads/Thread.h" 46 double FPS()
const {
return m_fps; }
48 double GetSpeed()
const {
return m_speedFactor; }
49 void SetSpeed(
double speedFactor);
54 void Process()
override;
57 double FrameTimeMs()
const;
58 double SleepTimeMs()
const;
63 std::atomic<double> m_speedFactor;
64 double m_lastFrameMs = 0.0;
65 mutable double m_adjustTime = 0.0;
This is an Event class built from a ConditionVariable.
Definition: Event.h:35
virtual void FrameEvent()=0
The next frame is being shown.
Definition: GameLoop.h:20
Definition: AudioDecoder.h:18
virtual void RewindEvent()=0
The prior frame is being shown.
Definition: GameLoop.h:36