4 #include "EmscriptenTypes.h"
17 void Update(
double inputIdleTimeSeconds);
21 bool IsNextFrameDue()
const;
22 bool IsPaused()
const;
23 float GetCurrentFrameDeltaSeconds()
const;
25 void SetTargetVSyncInterval(
int targetVSyncInterval);
26 void SetThrottledTargetFrameInterval(
int throttledTargetFrameIntervalMS);
27 void SetIdleSecondsBeforeThrottle(
float idleSecondsBeforeThrottle);
28 void SetThrottleWhenIdleEnabled(
bool enabled);
29 void CancelThrottle();
33 int targetVSyncInterval,
34 int throttledTargetFrameIntervalMS,
35 float idleTimeoutSeconds,
36 bool throttleWhenIdleEnabled,
40 bool ShouldThrottle(
double idleTimeSeconds)
const;
42 int m_targetVSyncInterval;
43 int m_throttledTargetFrameIntervalMS;
44 float m_idleSecondsBeforeThrottle;
45 bool m_throttleWhenIdleEnabled;
46 bool m_loggingEnabled;
50 bool m_isNextFrameDue;
51 double m_previousFrameTimeMilliseconds;
52 float m_currentFrameDeltaSeconds;
53 double m_timeSinceCancelThrottle;