s_mapLoading
global · terrain
- Address
0x86a2d0· 4 bytes, up to0x86a2d3- Type
uint32_t- Meaning
- Holds 1 while CMap::Load runs, making tile reads synchronous; 0 otherwise
- Confidence
- verified, proof one
- Finding
- terrain/files#map-load
Finding: Map load in terrain: files
CMap::Load (0x6941f0) loads the map named in ecx with the map id in edx. It sets the shader
flags from the world flags and the shaders' availability, builds the map directory
World\Maps\<name>, the name, and the WDT path <dir>\<name>.wdt, makes the map's light
object, reads the WDL, reports 0.1 progress, reads the WDT, reports 0.25, runs one map update and
loads the map's lights. While it runs, 0x86a2d0 is 1 and tile files are read at once rather
than queued.
The derivation is in the doc.