benilla-re systems structs docs

GameTimeUpdateFromFrame

function · unassigned · orchestration

Address
0x6c5d50 · 22 bytes, up to 0x6c5d65
Signature
uint32_t __fastcall (const float *dt, uint32_t unused)
Meaning
Calls the clock's per-frame update with the float its argument points to and returns 1
Confidence
verified, proof one
Finding
gametime/overview#per-frame-advance

Finding: Per-frame advance in gametime: overview

0x6435a0(dt) adds dt · [+0x2c] + [+0x30], stored as a float in +0x30. When +0x34 (minutes to skip) is not 0 and the sum is at least 1.0, k = min(+0x34, trunc(sum)) is taken from both. Then, while +0x30 >= 1.0, it subtracts 1.0 and advances a minute. 0x6c5d50 calls it with the float at [ecx]; the client tick handler 0x401ec0 calls 0x6c5d50.

The derivation is in the doc.

Callers 1

Callees 1

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