benilla-re systems structs docs

InitM2Cache

function · models · orchestration

Address
0x706d90 · 10 bytes, up to 0x706d99
Meaning
Constructs the model cache and registers its destructor with _atexit; a static initializer
Confidence
verified, proof one
Finding
models/cache#cache-object

Finding: Cache object in models: the cache

The cache is a 0x1038-byte static. Its constructor zeroes the initialized flag, the 1021 bucket heads and the release list, and creates the two thread events; its destructor logs Model2: M2Destroy never called when the flag is still set, then closes the thread and the events.

offsetholds
+0x000initialized flag
+0x004granted feature mask
+0x008scene sort and draw mode, stored by 0x706e00
+0x00c, +0x010release list: head, address of the tail link
+0x0141021 bucket heads of shared models
+0x100c to +0x1028helper thread: handle, running, stop, start event, done event, thread context, job, argument
+0x102c, +0x1030vertex shader array (1800 handles), pixel shader array (32 handles)
+0x1034a 4-byte device object the texture loads read

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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