Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::LoopTimingData Struct Reference

#include <LoopTimingData.h>

Public Member Functions

 PROPERTY_R (U64, appCurrentTimeUS, 0ULL)
 
 PROPERTY_R (U64, gameCurrentTimeUS, 0ULL)
 
 PROPERTY_R (U64, appTimeDeltaUS, 0ULL)
 Real app delta time between frames. Can't be paused (e.g. used by editor)
 
 PROPERTY_R (U64, gameTimeDeltaUS, 0ULL)
 Simulated app delta time between frames. Can be paused. (e.g. used by physics)
 
 PROPERTY_RW (U64, accumulator, 0ULL)
 
 PROPERTY_RW (U8, updateLoops, 0u)
 
 PROPERTY_RW (bool, freezeGameTime, true)
 
F32 alpha () const noexcept
 
void update (U64 elapsedTimeUSApp, U64 fixedGameTickDurationUS) noexcept
 

Detailed Description

Definition at line 43 of file LoopTimingData.h.

Member Function Documentation

◆ alpha()

F32 Divide::LoopTimingData::alpha ( ) const
noexcept

Definition at line 7 of file LoopTimingData.cpp.

◆ PROPERTY_R() [1/4]

Divide::LoopTimingData::PROPERTY_R ( U64  ,
appCurrentTimeUS  ,
0ULL   
)

◆ PROPERTY_R() [2/4]

Divide::LoopTimingData::PROPERTY_R ( U64  ,
appTimeDeltaUS  ,
0ULL   
)

Real app delta time between frames. Can't be paused (e.g. used by editor)

◆ PROPERTY_R() [3/4]

Divide::LoopTimingData::PROPERTY_R ( U64  ,
gameCurrentTimeUS  ,
0ULL   
)

◆ PROPERTY_R() [4/4]

Divide::LoopTimingData::PROPERTY_R ( U64  ,
gameTimeDeltaUS  ,
0ULL   
)

Simulated app delta time between frames. Can be paused. (e.g. used by physics)

◆ PROPERTY_RW() [1/3]

Divide::LoopTimingData::PROPERTY_RW ( bool  ,
freezeGameTime  ,
true   
)

◆ PROPERTY_RW() [2/3]

Divide::LoopTimingData::PROPERTY_RW ( U64  ,
accumulator  ,
0ULL   
)

◆ PROPERTY_RW() [3/3]

Divide::LoopTimingData::PROPERTY_RW ( U8  ,
updateLoops  ,
0u   
)

◆ update()

void Divide::LoopTimingData::update ( U64  elapsedTimeUSApp,
U64  fixedGameTickDurationUS 
)
noexcept

Definition at line 13 of file LoopTimingData.cpp.


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