Skip to content

Commit

Permalink
vulkan: reduce memory use in some situations
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jun 29, 2024
1 parent 10622e1 commit 9f18595
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/graphics/vulkan/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,10 @@ void Graphics::initVMA()
allocatorCreateInfo.device = device;
allocatorCreateInfo.instance = instance;

// Default of 256 MB is a little too wasteful for most love games.
// TODO: Tune this more.
allocatorCreateInfo.preferredLargeHeapBlockSize = 128 * 1024 * 1024;

VmaVulkanFunctions vulkanFunctions{};

vulkanFunctions.vkGetInstanceProcAddr = vkGetInstanceProcAddr;
Expand Down

0 comments on commit 9f18595

Please sign in to comment.