33#ifndef DVD_CORE_LOOP_TIMING_DATA_H_
34#define DVD_CORE_LOOP_TIMING_DATA_H_
58 [[nodiscard]]
F32 alpha() const noexcept;
60 void update(
U64 elapsedTimeUSApp,
U64 fixedGameTickDurationUS ) noexcept;
constexpr U16 TARGET_FRAME_RATE
Application desired framerate for physics and input simulations.
constexpr U8 TICK_DIVISOR
constexpr T SecondsToMicroseconds(U a) noexcept
constexpr T MillisecondsToMicroseconds(U a) noexcept
Handle console commands that start with a forward slash.
constexpr U64 MAX_FRAME_TIME_US
constexpr U32 TICKS_PER_SECOND
Application update rate.
constexpr U64 FIXED_UPDATE_RATE_US
PROPERTY_R(U64, gameCurrentTimeUS, 0ULL)
PROPERTY_RW(U8, updateLoops, 0u)
PROPERTY_R(U64, appCurrentTimeUS, 0ULL)
F32 alpha() const noexcept
PROPERTY_RW(U64, accumulator, 0ULL)
PROPERTY_R(U64, gameTimeDeltaUS, 0ULL)
Simulated app delta time between frames. Can be paused. (e.g. used by physics)
PROPERTY_RW(bool, freezeGameTime, true)
void update(U64 elapsedTimeUSApp, U64 fixedGameTickDurationUS) noexcept
PROPERTY_R(U64, appTimeDeltaUS, 0ULL)
Real app delta time between frames. Can't be paused (e.g. used by editor)