benilla-re systems structs docs

GameTimeSetScale

function · gametime · primitive

Address
0x643820 · 102 bytes, up to 0x643885
Signature
float __thiscall (void *this, float scale)
Meaning
Stores the time scale clamped to 1/60 through 60, a NaN quieted, and returns the scale it held
Confidence
verified, proof two
Finding
gametime/overview#time-scale
Test
gametime::gametime_643820_set_scale

Finding: Time scale in gametime: overview

0x643820(scale) stores scale in +0x2c, in game minutes per real second, clamped to [1/60, 60]: below 0x3c888889 (negatives and zero of either sign included) it stores that, above 60.0 (0x42700000) it stores 60.0, and a NaN is stored through fld (0x64387c): a quiet one with its bits, a signalling one with its quiet bit set. It returns the scale the clock held, in st0.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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