VulkanMemoryAllocator icon indicating copy to clipboard operation
VulkanMemoryAllocator copied to clipboard

Bad Shared data in DefragmentationContext

Open CannibalVox opened this issue 1 year ago • 0 comments

During defragmentation, users can specify that a move should be ignored, and the block the candidate allocation resides in will be marked as "immovable" for the remainder of the pass. This is done by incrementing the immovable block count and moving the block to the beginning of the block list.

Unfortunately, the immovable block count is shared between all block lists currently being defragmented. This will result, potentially, in several blocks being marked immovable (and not defragmented) when they are not.

CannibalVox avatar Aug 22 '24 15:08 CannibalVox