BatchSortQuads
function · ui · orchestration
- Address
0x7731a0· 29 bytes, up to0x7731bc- Meaning
- Sorts the quad records of a batch by texture handle with qsort
- Confidence
- verified, proof one
- Finding
- ui/draworder#layer-batches
Finding: Layer batches in ui: draw order
The draw pass rebuilds a level when its strata record asks, and only the layers whose bit is set in
the level's mask +0x10c. A rebuild empties the batch, asks every frame of the level without the
self-drawing bit for its regions of that layer in list order, sorts the batch, and then, whether
rebuilt or not, relinks every non-empty batch of the level at the head of the level's batch list in
layer order. The batches are submitted from the tail, so layers go out 0 to 4 whatever was
rebuilt.
The derivation is in the doc.
Callers 2
Callees 1
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.