mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Cap oversized soft-memory allocations at 512MB
* This allows a larger soft-memory limit without allocating too much memory in one block, but still allows low soft-memory limits to cap the size of memory blocks.
This commit is contained in:
@@ -348,7 +348,7 @@ MemoryAllocation WrappedVulkan::AllocateMemoryForResource(bool buffer, VkMemoryR
|
||||
}
|
||||
|
||||
uint64_t initStateLimitMB = RenderDoc::Inst().GetCaptureOptions().softMemoryLimit;
|
||||
if(initStateLimitMB > 0)
|
||||
if(initStateLimitMB > 0 && initStateLimitMB < 512)
|
||||
allocSize = RDCMAX(initStateLimitMB, allocSize);
|
||||
|
||||
uint32_t memoryTypeIndex = 0;
|
||||
|
||||
Reference in New Issue
Block a user