MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CleanupCache

Method CleanupCache

Source/Engine/Renderer/RenderList.cpp:277–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void RenderList::CleanupCache()
278{
279 // Don't call it during rendering (data may be already in use)
280 ASSERT(GPUDevice::Instance == nullptr || GPUDevice::Instance->CurrentTask == nullptr);
281
282 MemPoolLocker.Lock();
283 FreeRenderList.ClearDelete();
284 for (auto& e : MemPool)
285 Platform::Free(e.First);
286 MemPool.Clear();
287 MemPoolLocker.Unlock();
288}
289
290RenderList::IExtension::IExtension()
291{

Callers

nothing calls this directly

Calls 5

LockMethod · 0.80
UnlockMethod · 0.80
FreeFunction · 0.50
ClearDeleteMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected