Skip to content
Snippets Groups Projects

vulkan/malloc: use dynamic maximum page size

Merged Niklas Haas requested to merge haasn/libplacebo:max_page_alloc into master
  1. Apr 18, 2023
    • Niklas Haas's avatar
      vulkan/malloc: use dynamic maximum page size · 51584f4a
      Niklas Haas authored
      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.
      51584f4a
Loading