Click or drag to resize
Ab4d.SharpEngine logo

VulkanMemoryAllocatorCleanup 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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public 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

Implements

IVulkanMemoryAllocatorCleanup(Boolean, Boolean)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.VulkanMemoryAllocator.Cleanup(System.Boolean,System.Boolean)"]

See Also