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

Method Free

Source/Engine/Renderer/RenderList.cpp:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void RendererAllocation::Free(void* ptr, uintptr size)
242{
243 PROFILE_CPU();
244 size = AllocationUtils::AlignToPowerOf2((int32)size); // Reduce fragmentation by operating on power-of-2 blocks
245 MemPoolLocker.Lock();
246 MemPool.Add({ ptr, size });
247 MemPoolLocker.Unlock();
248}
249
250RenderList* RenderList::GetFromPool()
251{

Callers 5

ClearMethod · 0.45
RenderListBufferClass · 0.45
FlushNewObjectsMethod · 0.45
CompactObjectsMethod · 0.45
TestLibraryImportsMethod · 0.45

Calls 4

AlignToPowerOf2Function · 0.85
LockMethod · 0.80
UnlockMethod · 0.80
AddMethod · 0.45

Tested by 1

TestLibraryImportsMethod · 0.36