Luanti 5.16.0-dev
Loading...
Searching...
No Matches
FpsControl Struct Reference

#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

Constructor & Destructor Documentation

◆ FpsControl()

FpsControl::FpsControl ( )
inline

References busy_time, last_time, and sleep_time.

Member Function Documentation

◆ getBusyMs()

u32 FpsControl::getBusyMs ( ) const
inline

References busy_time.

Referenced by Game::updateStats().

Here is the caller graph for this function:

◆ limit()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void FpsControl::reset ( )

References porting::getTimeUs(), and last_time.

Referenced by Game::connectToServer(), Game::createServer(), Game::getServerContent(), Game::run(), GUIEngine::run(), and Game::shutdown().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ busy_time

u64 FpsControl::busy_time

◆ last_time

u64 FpsControl::last_time

Referenced by FpsControl(), limit(), and reset().

◆ sleep_time

u64 FpsControl::sleep_time

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