ScummVM API documentation
Graphics::FrameLimiter Class Reference

#include <framelimiter.h>

Public Member Functions

 FrameLimiter (OSystem *system, const uint framerate, const bool vsync=true)
 
void startFrame ()
 
void delayBeforeSwap ()
 
void pause (bool pause)
 
uint getLastFrameDuration () const
 

Detailed Description

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.


The documentation for this class was generated from the following file: