 |
GpuDynamicMemoryBlockPoolTCleanup Method |
Cleanup method checks all memory blocks.
Memory block is freed when it is empty and freeEmptyMemoryBlocks is true or when it empty for at least EngineRuntimeOptions.
FramesCountToReleaseEmptyMemoryBlock frames.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void Cleanup(
bool increaseFrameNumber,
bool freeEmptyMemoryBlocks,
Action<int>? memoryBlockDisposedCallback = null
)
Parameters
- increaseFrameNumber Boolean
- when true then the frame count for empty block is increased
- freeEmptyMemoryBlocks Boolean
- when true, the empty memory block is immediately freed; when false the empty memory block is freed if it is empty for at least EngineRuntimeOptions.FramesCountToReleaseEmptyMemoryBlock frames
- memoryBlockDisposedCallback ActionInt32 (Optional)
- optional callback Action that is called when a memory block is disposed (index of the disposed memory block is called as an argument to the Action)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.GpuDynamicMemoryBlockPool`1.Cleanup(System.Boolean,System.Boolean,System.Action{System.Int32})"]
See Also