CWorld::BeginFrame
function · terrain · orchestration
- Address
0x66fd50· 449 bytes, up to0x66ff10- 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
- CWorld::UpdateSkyAndFog terrain
- RecordFrameTime terrain
- CWorld::PrepareAreaOfInterest terrain
- UpdateWeather lighting
- CaptureSceneCamera terrain
- AdvectDriftCloud terrain
- CMap::Update terrain
- GetLightState lighting
Calls and jumps by a bare address, from tables/calls.tsv.