Click or drag to resize
Ab4d.SharpEngine logo

IVulkanMemoryAllocatorCleanup 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.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
void Cleanup(
	bool increaseFrameNumber,
	bool freeEmptyMemoryBlocks
)

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
See Also