CM2Model::FreeBatches
function · models · host
- Address
0x711880· 215 bytes, up to0x711956- Meaning
- Frees an instance's own batch table, its index buffer and its shader ids
- Confidence
- verified, proof one
- Finding
- models/model#own-batches
Finding: Own batches in models: the instance
BuildBatches gives an instance its own batch table when merging shrinks it: walking the selected
view's texture units in order, it keeps each visible one and drops one that matches the last kept
one in colour index, material, texture combination, transparency, texture transform and the
submesh's first bone lookup. Only when some unit was dropped does it build the table, with its own
index buffer and shader ids; otherwise the instance keeps none. Building first frees the old table
and clears the instance's batchable flag +0xb8.
The derivation is in the doc.
Callers 3
- CM2Model::~CM2Model models
- CM2Model::SetGeosetRange models
- CM2Model::BuildBatches models
Callees 3
- 0x58a040 gx
- GxBufferRelease gx
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.