MDLCACHE_CRITICAL_SECTION()

From Valve Developer Community
(Redirected from MDLCACHE CRITICAL SECTION)
Jump to: navigation, 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.pngTip:Call mdlcache->EndLock() to end the lock early.

See also