s_drawnEntityCount
global · terrain
- Address
0xc7b744· 4 bytes, up to0xc7b747- Type
uint32_t- Meaning
- Counts the entities and their second-list entries the frame drained
- Confidence
- verified, proof one
- Finding
- terrain/scene#entity-draw
Finding: Entity draw in terrain: scene
0x683dd0 draws the entities. For each in the draw list it unlinks the node, sets the model
animated and visible when +0x90 bit 3 is clear, installs the lighting callback 0x672a20
with the entity as its argument, and calls the entity's callback +0xb4 with edx = 1 and
its four arguments; when the callback is null or returns 0 and the model is not hidden (+0x90
bits 3 and 10), it runs the decal pass 0x6d78f0. The second list gets the same callback
with edx = 2 and nothing else. Each entity increments the drawn counter 0xc7b744.
The derivation is in the doc.