benilla-re systems structs docs

M2ElementCompareGroup

function · models · primitive

Address
0x70a710 · 746 bytes, up to 0x70a9f9
Meaning
Compares two elements' shared model, batch, lighting and colour inputs for grouping
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

Callees 0

None by a direct call or jump.

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