M2CacheDestroy
function · models · host
- Address
0x706900· 324 bytes, up to0x706a43- Meaning
- Stops the helper thread, destroys every cached shared model and releases the model shaders
- Confidence
- verified, proof one
- Finding
- models/cache#helper-thread
Finding: Helper thread in models: the cache
With bit 4 granted the cache runs one helper thread. A job is a function and an argument stored on
the cache, then the start event; the thread runs job(argument) with the argument in ecx, sets
the done event and waits again. Destroying the cache sets the stop flag, wakes the thread and waits
for its handle.
The derivation is in the doc.
Callers 1
- M2Destroy models
Callees 7
- AsyncFileReadWait client
- GxShaderRelease gx
- SMemFree storm
- SEventWait storm
- SEvent::Set storm
- CM2Shared::~CM2Shared models
- ParticleBuffersRelease models
Calls and jumps by a bare address, from tables/calls.tsv.