mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-22 16:17:44 +00:00
smth like this
This commit is contained in:
1 parent
cc95e1ae63
commit
8bb1964b30
2 files changed
+2
-2
No files matched your search
@@ -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