9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 03:29:06 +00:00

smth like this

This commit is contained in:
RePixelatedMC
2023-11-23 16:49:45 +01:00
parent cc95e1ae63
commit 8bb1964b30
2 changed files with 2 additions and 2 deletions

View File

@@ -141,6 +141,7 @@ public class IrisSettings {
public int resourceLoaderCacheSize = 1_024;
public int objectLoaderCacheSize = 4_096;
public int scriptLoaderCacheSize = 512;
public int tectonicUnloadThreads = 1;
public boolean dynamicPerformanceMode = true;
}

View File

@@ -470,8 +470,7 @@ public class Mantle {
}
*/
int numThreads = 1; // Specify the number of threads you want
BurstExecutor burstExecutor = new BurstExecutor(Executors.newFixedThreadPool(numThreads), toUnload.size());
BurstExecutor burstExecutor = new BurstExecutor(Executors.newFixedThreadPool(IrisSettings.get().getPerformance().tectonicUnloadThreads), toUnload.size());
for (Long i : toUnload) {