MDLCACHE_CRITICAL_SECTION()
Jump to navigation
Jump to search
The MDLCACHE_CRITICAL_SECTION()
macro causes everything loaded into the model cache from its invocation to the end of the current scope to be "cache locked". This prevents the data from being deleted if the engine starts running out of memory.
Todo: When wouldn't you use this?
Tip:Call
mdlcache->EndLock()
to end the lock early.