Skip to content

Commit

Permalink
use VMA_POOL_CREATE_BUDDY_ALGORITHM_BIT as the default pool algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoyao-cn committed Jan 10, 2022
1 parent 2953d58 commit 2c5803e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15614,7 +15614,7 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) :
GetBufferImageGranularity(),
pCreateInfo->frameInUseCount,
false, // explicitBlockSize
false); // linearAlgorithm
VMA_POOL_CREATE_BUDDY_ALGORITHM_BIT); // algorithm
// No need to call m_pBlockVectors[memTypeIndex][blockVectorTypeIndex]->CreateMinBlocks here,
// becase minBlockCount is 0.
m_pDedicatedAllocations[memTypeIndex] = vma_new(this, AllocationVectorType)(VmaStlAllocator<VmaAllocation>(GetAllocationCallbacks()));
Expand Down

0 comments on commit 2c5803e

Please sign in to comment.