benilla-re systems structs docs

IEvtTimerTimeToNext

function · core · orchestration

Address
0x428720 · 98 bytes, up to 0x428781
Signature
uint32_t __fastcall (EvtContext *context, uint32_t now)
Meaning
Returns the time to the earliest timer, 0 when overdue, or 0xffffffff with none
Confidence
verified, proof two
Finding
core/loop#next-due-time

Finding: Next due time in core: the frame loop

After a tick the next due time is the tick's start time s plus a wait w. With flag 4 still set, w is 0. Otherwise w starts as the time to the earliest timer (0 when overdue, 0xffffffff with none), or as the idle time +0x48 when the two idle fields differ, and is then lowered to max(0, last + idle − s), compared unsigned, with last the time the frame time was taken. For the client (idle 1 ms) the next tick is due about 1 ms after the last frame time, sooner if a timer is due.

The derivation is in the doc.

Callers 2

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.