66 double m_last_render_timestamp;
void reset()
Reset the last rendered time and start from scratch.
GraphicsThrottler(double fps=0.0f)
Construct a new Graphics Throttler object.
void rendered(double wall_clock)
Reset timer to wall_clock.
bool shouldRenderGraphics(double wall_clock, double timestep, bool auto_reset=true)
Returns whether rendering should be done or not.
void setTargetFPS(double fps)
Set the target fps to a new value.
double getTargetFPS()
Get the target fps, if <= 0 no throttling is done.