Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed feedback; all three points were fair, and #3165 addresses them.

Configuring SingleBufferAllocationLimitBytes. MemoryAllocatorOptions now has a SingleBufferAllocationLimitMegabytes option, so you can raise the 1 GB default without writing an allocator:

MemoryAllocator allocator = MemoryAllocator.Create(new MemoryAllocatorOptions
{
    // Raise the contiguous single-buffer cap from the 1 GB default to the 2 GB ceiling.
    SingleBufferAllocationLimitMegabytes = 2047,

    // Optional: the total per-image limit for discontiguous groups. Default is 4 GB on 64-bit.
    AllocationLimitMegabytes = 8192
});

Configuration.Default.MemoryAllocator = allocator;

The line you f…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Socolin
Comment options

Answer selected by Socolin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants