benilla-re systems structs docs

s_frameCounter

global · terrain

Address
0xc7b2c8 · 4 bytes, up to 0xc7b2cb
Type
uint32_t
Meaning
Holds the world frame counter, incremented once a frame
Confidence
verified, proof one
Finding
terrain/world#world-frame

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.