mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +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.device = device;
|
||||||
allocatorCreateInfo.instance = instance;
|
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{};
|
VmaVulkanFunctions vulkanFunctions{};
|
||||||
|
|
||||||
vulkanFunctions.vkGetInstanceProcAddr = vkGetInstanceProcAddr;
|
vulkanFunctions.vkGetInstanceProcAddr = vkGetInstanceProcAddr;
|
||||||
|
|||||||
Reference in New Issue
Block a user