benilla-re systems structs docs

s_asyncWaitDepth

global · client

Address
0x8856e0 · 4 bytes, up to 0x8856e3
Type
uint32_t
Meaning
Holds how many single-read waits are running
Confidence
verified, proof one
Finding
glue/enterworld#waiting-for-one-read

Finding: Waiting for one read in glue: entering and leaving the world

AsyncFileReadWait(read) returns at once for a read whose done byte +0x1c is set. Otherwise it records the read as the one awaited and, unless it is the read in progress, its byte +0x1d is 0 or its byte +0x28 is set, moves it to the head of the queue 0x885688. It then drains finished reads and sleeps 1 ms until the drain clears the awaited read. A depth count is held across the wait. Texture, map object, model and terrain loads call it.

The derivation is in the doc.