M2SceneAdvance
function · models · orchestration
- Address
0x7074b0· 300 bytes, up to0x7075db- Meaning
- Advances a scene's clock and every animated model, then runs the queued model callbacks in order
- Confidence
- verified, proof one
- Finding
- models/scene#scene-advance
Finding: Scene advance in models: the scene
0x7074b0(dt) does nothing for dt 0. Otherwise it adds dt to the clock, evicting released
shared models, runs CM2Model::Update(dt) on every instance of the animate list, then runs the
callbacks the updates queued. The queue is sorted by each record's time key, largest first, ties in
queue order; a kind-0 record calls fn(ecx=model, edx=a, b, c, d, e, f), a kind-1 record passes a
copy of its position before the last three arguments. Each record's instance is then released and
the queue emptied.
The derivation is in the doc.
Callers 5
- RenderWorldFrame ui
- CCamera::UpdateShot uicamera
- DrawSky lighting
- CSimpleModel::OnFrameUpdate ui
- DrawStars lighting
Callees 7
- GetUint32ArrayQuantum core
- RoundUpToQuantum core
- ReallocUint32Array core
- M2SceneSetTime models
- HandleClose2 models
- CM2Model::Update models
- M2SortIndices models
Calls and jumps by a bare address, from tables/calls.tsv.