ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Myst3::FrameLimiter Class Reference

A framerate limiter. More...

#include <gfx.h>

Collaboration diagram for Myst3::FrameLimiter:

List of all members.

Public Member Functions

 FrameLimiter (OSystem *system, const uint framerate)
void startFrame ()
void delayBeforeSwap ()

Private Attributes

OSystem_system
bool _enabled
uint _speedLimitMs
uint _startFrameTime

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.

Definition at line 206 of file gfx.h.


Constructor & Destructor Documentation

Myst3::FrameLimiter::FrameLimiter ( OSystem system,
const uint  framerate 
)

Definition at line 304 of file engines/myst3/gfx.cpp.


Member Function Documentation

void Myst3::FrameLimiter::delayBeforeSwap (  ) 

Definition at line 320 of file engines/myst3/gfx.cpp.

void Myst3::FrameLimiter::startFrame (  ) 

Definition at line 316 of file engines/myst3/gfx.cpp.


Member Data Documentation

Definition at line 215 of file gfx.h.

Definition at line 216 of file gfx.h.

Definition at line 217 of file gfx.h.

Definition at line 213 of file gfx.h.


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


Generated on Sat Jan 19 2019 05:07:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge