mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-23 16:39:22 +00:00
smth like this
This commit is contained in:
@@ -141,6 +141,7 @@ public class IrisSettings {
|
|||||||
public int resourceLoaderCacheSize = 1_024;
|
public int resourceLoaderCacheSize = 1_024;
|
||||||
public int objectLoaderCacheSize = 4_096;
|
public int objectLoaderCacheSize = 4_096;
|
||||||
public int scriptLoaderCacheSize = 512;
|
public int scriptLoaderCacheSize = 512;
|
||||||
|
public int tectonicUnloadThreads = 1;
|
||||||
public boolean dynamicPerformanceMode = true;
|
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(IrisSettings.get().getPerformance().tectonicUnloadThreads), toUnload.size());
|
||||||
BurstExecutor burstExecutor = new BurstExecutor(Executors.newFixedThreadPool(numThreads), toUnload.size());
|
|
||||||
|
|
||||||
|
|
||||||
for (Long i : toUnload) {
|
for (Long i : toUnload) {
|
||||||
|
|||||||
Reference in New Issue
Block a user