benilla-re systems structs docs

RescheduleContext

function · core · orchestration

Address
0x421570 · 708 bytes, up to 0x421833
Signature
void __fastcall (uint32_t slot, EvtContext *context, uint32_t due, uint32_t cost)
Meaning
Stores a context's next due time and cost and puts it back in a slot's heap
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 9

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