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

#include <renderingengine.h>

Public Member Functions

 FpsControl ()
 
void reset ()
 
void limit (IrrlichtDevice *device, f32 *dtime, bool assume_paused=false)
 
u32 getBusyMs () const
 

Public Attributes

u64 last_time
 
u64 busy_time
 
u64 sleep_time
 

Constructor & Destructor Documentation

◆ FpsControl()

FpsControl::FpsControl ( )
inline

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,
bool assume_paused = false )

References busy_time, g_settings, Settings::getFloat(), porting::getTimeUs(), last_time, sleep_time, and sleep_us.

Referenced by Game::connectToServer(), Game::createSingleplayerServer(), 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::createSingleplayerServer(), 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 limit(), and reset().

◆ sleep_time

u64 FpsControl::sleep_time

Referenced by limit(), and Game::updateProfilers().


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