#include <framelimiter.h>
Public Member Functions | |
FrameLimiter (OSystem *system, const uint framerate) | |
void | startFrame () |
void | delayBeforeSwap () |
void | pause (bool pause) |
uint | getLastFrameDuration () const |
A framerate limiter
Ensures the framerate does not exceed the specified value by delaying until all of the timeslot allocated to the frame is consumed. Allows to curb CPU usage and have a stable framerate.