benilla-re systems structs docs

UpdateAreaResidency

function · terrain · orchestration

Address
0x6984f0 · 222 bytes, up to 0x6985cd
Signature
void __fastcall (uint32_t arg1)
Meaning
Unloads areas outside the outer window and updates the chunks of those inside
Confidence
verified, proof one
Finding
terrain/mapupdate#area-unload

Finding: Area unload in terrain: map update

0x6984f0 unloads areas that lie outside the outer window and gives the rest their chunk update. For each loaded area it compares the tile indices with the window's bounds shifted right 4; an area outside it clears its slot in the area table, its state bit 1 and its read handle, unlinks and destroys the area. An area inside goes to 0x6c1f70 with the pass argument. Only the window decides: no age, no memory test.

The derivation is in the doc.

Callers 1

Callees 3

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