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

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 207 of file gfx.h.

Constructor & Destructor Documentation

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

Definition at line 315 of file gfx.cpp.

Member Function Documentation

void Myst3::FrameLimiter::delayBeforeSwap (  ) 

Definition at line 331 of file gfx.cpp.

void Myst3::FrameLimiter::startFrame (  ) 

Definition at line 327 of file gfx.cpp.

Member Data Documentation

Definition at line 216 of file gfx.h.

Definition at line 217 of file gfx.h.

Definition at line 218 of file gfx.h.

Definition at line 214 of file gfx.h.

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

Generated on Sat Jun 27 2020 05:03:01 for ResidualVM by doxygen 1.7.1
curved edge   curved edge