benilla-re systems structs docs

CMap::Update

function · terrain · orchestration

Address
0x698390 · 347 bytes, up to 0x6984ea
Signature
void __thiscall (CMap *this)
Meaning
Runs the frame's map update: object frame, tile loads, doodads, unloads, map objects, node reset
Confidence
verified, proof one
Finding
terrain/mapupdate#map-update-order
Test
terrain::fade_time_gate_difftest, terrain::fade_count_index_difftest

Finding: Map update order in terrain: map update

0x698390 runs once a frame from the world frame with 1, and from the map loaders with 0. With the teleport flag set it first clears the pending work (0x6a6710). It then runs, in this order: the map object frame start 0x6b3890, the tile load pass 0x6985d0, the progress hook with 0.5, the pending doodads 0x698c50, the area unload 0x6984f0, the map object update 0x698720, the node reset 0x6989e0 and the progress hook with 1.0. Only with a nonzero argument does it go on to refresh the sky gradient texture when 2.0 seconds have passed since the last refresh, step the liquid animation and age the queued ripples.

The derivation is in the doc.

Callers 3

Callees 11

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