vulkan: reduce memory use in some situations

This commit is contained in:
Sasha Szpakowski
2024-06-28 21:53:03 -03:00
parent 10622e194b
commit 9f18595559
+4
View File
@@ -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;