Utility class that reduces the update rate to a common framerate (~30 fps) More...
Public Member Functions | |
bool | shouldUpdate (bool debugInterval=false) |
Call this to check if the last update was longer than 30 ms ago. More... | |
Utility class that reduces the update rate to a common framerate (~30 fps)
Unlike the UpdateMerger class, this class checks the time between calls to shouldUpdate() and returns true, if 30ms have passed since the last succesfull call to shouldUpdate().
|
inline |
Call this to check if the last update was longer than 30 ms ago.
If debugInterval is true, then the interval between calls will be printed in debug mode.