benilla-re systems structs docs

CM2Shared::FreeBuffers

function · models · host

Address
0x71dff0 · 93 bytes, up to 0x71e04c
Meaning
Frees a shared model's device index and vertex buffers
Confidence
verified, proof one
Finding
models/shared#device-buffers

Finding: Device buffers in models: the shared model

The buffers hold +0x15c copies of the selected view, one per instance of a batched draw; a load sets it to 1, and drawing a batched run of n raises it to n rounded up to 16, at most +0x160, and frees the buffers to be rebuilt. Per copy the vertex buffer holds the vertices the view's lookup names, in lookup order, 48 bytes each, their bone index bytes replaced by the view's palette bytes plus copy · bones. Per submesh and copy the index buffer holds the submesh's triangle entries plus copy · lookup count with shader ids, else the copy's vertex offset less the submesh's first vertex; the submesh copy in +0x158 gets its run's start.

The derivation is in the doc.

Callers 2

Callees 2

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