subtract 1gb from memory limit instead of 512 mb

This commit is contained in:
mcrcortex
2025-06-04 16:21:14 +10:00
parent 6bbd2c521a
commit a0c33a439b

View File

@@ -50,7 +50,7 @@ public class RenderService<T extends AbstractSectionRenderer<J, Q>, J extends Vi
//Limit to available dedicated memory if possible //Limit to available dedicated memory if possible
if (Capabilities.INSTANCE.canQueryGpuMemory) { if (Capabilities.INSTANCE.canQueryGpuMemory) {
//512mb less than avalible, //512mb less than avalible,
long limit = Capabilities.INSTANCE.getFreeDedicatedGpuMemory() - 512*1024*1024; long limit = Capabilities.INSTANCE.getFreeDedicatedGpuMemory() - 1024*1024*1024;
// Give a minimum of 512 mb requirement // Give a minimum of 512 mb requirement
limit = Math.max(512*1024*1024, limit); limit = Math.max(512*1024*1024, limit);