Skip to content

vulkan/malloc: use dynamic maximum page size

Niklas Haas requested to merge haasn/libplacebo:max_page_alloc into master

Solves issue of frequent unnecessary memory allocations when allocating large textures (above 64M), even if we have gigabytes and gigabytes of VRAM to play with.

Fixes this by putting the cut-off threshold for the page allocator at 1/16 of VRAM, instead of at a fixed maximum size.

Merge request reports

Loading