GameTimeUpdate
function · gametime · primitive
- Address
0x6435a0· 155 bytes, up to0x64363a- Signature
void __thiscall (void *this, float dt)- Meaning
- Adds dt times the scale to the minute fraction and advances a minute per whole one
- Confidence
- verified, proof one
- Finding
- gametime/overview#per-frame-advance
- Test
gametime::gametime_6435a0_minute_accum
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
- GameTimeUpdateFromFrame unassigned
Callees 2
- __ftol crt
- GameTimeAdvanceMinute gametime
Calls and jumps by a bare address, from tables/calls.tsv.