M2ElementCompareOpaque
function · models · primitive
- Address
0x70aa30· 977 bytes, up to0x70ae00- Meaning
- Orders opaque elements by kind, shader, model, material and textures to minimize state changes
- Confidence
- verified, proof one
- Finding
- models/scene#batch-grouping
Finding: Batch grouping in models: the scene
Before sorting, the grouped list (kind 2 elements) is grouped by inputs: a 251-bucket hash of the shared model, batch index, fog range, fog colour, spherical harmonic terms, colour and the instance colours finds each element's first equal element, the list is sorted by that representative, and each run of equal elements becomes one element with the run length, drawn as one batched run. Lists 0, 1 and 2 are then sorted: list 0 by the opaque order, lists 1 and 2 by the transparent order.
The derivation is in the doc.
Callers 1
- M2ElementCompareTransparent models
Callees 1
- CompareHandles base
Calls and jumps by a bare address, from tables/calls.tsv.