MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / ClearGeometryCache

Method ClearGeometryCache

Code/CryEngine/CryAction/ItemSystem.cpp:1011–1030  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1009
1010//------------------------------------------------------------------------
1011void CItemSystem::ClearGeometryCache()
1012{
1013 for (TObjectCacheIt oit = m_objectCache.begin(); oit != m_objectCache.end(); ++oit)
1014 {
1015 if (oit->second)
1016 oit->second->Release();
1017 }
1018 m_objectCache.clear();
1019
1020 for (TCharacterCacheIt cit = m_characterCache.begin(); cit != m_characterCache.end(); ++cit)
1021 {
1022 cit->second->Release();
1023 }
1024 m_characterCache.clear();
1025
1026 for (TItemParamsMap::iterator it = m_params.begin(); it != m_params.end(); ++it)
1027 {
1028 it->second.precacheFlags &= ~SItemParamsDesc::eIF_PreCached_Geometry;
1029 }
1030}
1031
1032//------------------------------------------------------------------------
1033void CItemSystem::PrecacheLevel()

Callers 2

UnLoadLevelMethod · 0.80
OnCloseLevelMethod · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
ReleaseMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected