SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches

◆ DeltaTicks()

const Tickstamp & SRL::Timer::DeltaTicks ( )
inlinestaticnoexcept

Frame delta ticks (raw elapsed ticks between frames).

Pre-calculated each frame by Core::Synchronize(). Stores the raw 48-bit tick count elapsed since the previous frame. Access is zero-cycle (no function call overhead).

Usage:
Use DeltaTicks() when you need maximum precision or when doing custom time calculations. For most cases, prefer DeltaSeconds() or DeltaMilliseconds().
const Tickstamp& elapsed = Timer::DeltaTicks();
uint32_t rawTicks = elapsed.low; // Lower 32 bits
uint32_t overflows = elapsed.high; // Upper 32 bits (overflow counter)
High-precision 48-bit timestamp with DVU hardware acceleration.
Definition srl_timer.hpp:58
static const Tickstamp & DeltaTicks() noexcept
Frame delta ticks (raw elapsed ticks between frames).
Definition srl_timer.hpp:930
Note
This is a 48-bit value split across two 32-bit fields. The total tick count is (high << 16) | (low >> 16) in 48-bit terms.
See also
DeltaSeconds(), DeltaMilliseconds()