mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
vulkan: reduce memory use in some situations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user