benilla-re systems structs docs

CWorld::BeginFrame

function · terrain · orchestration

Address
0x66fd50 · 449 bytes, up to 0x66ff10
Signature
void __fastcall (CWorld *arg1, const float *position, void *camera)
Meaning
Runs the world frame: windows, teleport flag, texture offsets, camera capture, sky, map update, weather
Confidence
verified, proof one
Finding
terrain/world#world-frame
Test
terrain::scroll_accumulate_difftest, terrain::scroll_update_wrap_probe

Finding: World frame in terrain: world

0x66fd50 runs each frame with a camera position and a camera. It stores the frame time, sizes the area of interest at the position, sets the teleport flag, advances the frame counter and the eight liquid texture offsets, captures the scene camera, updates the sky and fog, runs the map update and sets the fog end. With world flag 0x2000000 set and the camera liquid state not 0xf, it advects the drift cloud; the weather update always runs.

The derivation is in the doc.

Callers 1

Callees 8

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