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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user