benilla-re systems structs docs

ComputeLoadingFraction

function · loadingscreen · primitive

Address
0x406920 · 188 bytes, up to 0x4069db
Signature
void __cdecl (void)
Meaning
Blends the three load fractions into the bar fill and clamps it to 0 through 1
Confidence
verified, proof one
Finding
loadingscreen/screen#progress-fraction
Test
loadingscreen::progress_fraction_difftest, loadingscreen::progress_fraction_signed_zero_and_nan_difftest

Finding: Progress fraction in loadingscreen: screen

The bar's fill is 0x882be4. With the interface progress P (0x882894) zero it is 0.7·A + 0.3·B; otherwise 0.5·P + 0.35·A + 0.15·B, where A is the asynchronous load fraction (0x882bd0) and B the map load fraction (0x882df4). A sum below 0 gives 0, and 1 or above, or a NaN, gives 1. Each input has a setter that stores a new value only when it is greater than the stored one (or a NaN) and then repaints; the loaders call them as progress callbacks.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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