#include <renderingengine.h>
Public Member Functions | |
| FpsControl () | |
| void | reset () |
| void | limit (IrrlichtDevice *device, f32 *dtime) |
| u32 | getBusyMs () const |
Public Attributes | |
| u64 | last_time |
| u64 | busy_time |
| u64 | sleep_time |
|
inline |
References busy_time, last_time, and sleep_time.
|
inline |
References busy_time.
Referenced by Game::updateStats().
| void FpsControl::limit | ( | IrrlichtDevice * | device, |
| f32 * | dtime ) |
References busy_time, g_settings, porting::getTimeUs(), last_time, porting::preciseSleepUs(), and sleep_time.
Referenced by Game::connectToServer(), Game::createServer(), Game::getServerContent(), Game::run(), and GUIEngine::run().
| void FpsControl::reset | ( | ) |
References porting::getTimeUs(), and last_time.
Referenced by Game::connectToServer(), Game::createServer(), Game::getServerContent(), Game::run(), GUIEngine::run(), and Game::shutdown().
| u64 FpsControl::busy_time |
Referenced by FpsControl(), getBusyMs(), limit(), and Game::updateProfilers().
| u64 FpsControl::last_time |
Referenced by FpsControl(), limit(), and reset().
| u64 FpsControl::sleep_time |
Referenced by FpsControl(), limit(), and Game::updateProfilers().