benilla-re systems structs docs

ResiftHeapNode

function · core · orchestration

Address
0x421860 · 365 bytes, up to 0x4219cc
Signature
void __thiscall (void *this)
Meaning
Removes a node from its heap and inserts it again after a key change
Confidence
verified, proof two
Finding
core/loop#scheduler-heap
Test
core::heap_resift_matches_binary

Finding: Scheduler heap in core: the frame loop

Each slot keeps its contexts in a binary min-heap ordered by due time, compared as (int32)(a − b) ≤ 0, so due times may wrap. Taking the root moves the last element down, choosing the right child when it is not later than the left. Timers use the same heap code and comparator.

The derivation is in the doc.

Callers 2

Callees 1

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