From c30de984496f03a6df117b3f7be59f0c5ae83468 Mon Sep 17 00:00:00 2001 From: RePixelatedMC Date: Sun, 26 Nov 2023 19:02:50 +0100 Subject: [PATCH] e --- .../main/java/com/volmit/iris/util/mantle/Mantle.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java b/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java index 72af5f2fc..af609ffda 100644 --- a/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java +++ b/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java @@ -443,7 +443,6 @@ public class Mantle { dynamicThreads.set(IrisSettings.get().getPerformance().getTectonicUnloadThreads()); } } - int dth = dynamicThreads.get(); adjustedIdleDuration.set(baseIdleDuration); @@ -501,10 +500,10 @@ public class Mantle { } } - // BurstExecutor burstExecutor = new BurstExecutor(Executors.newFixedThreadPool(1), toUnload.size()); + BurstExecutor burstExecutor = new BurstExecutor(Executors.newFixedThreadPool(dynamicThreads.get()), toUnload.size()); for (Long i : toUnload) { - // burstExecutor.queue(() -> { + burstExecutor.queue(() -> { hyperLock.withLong(i, () -> { TectonicPlate m = loadedRegions.get(i); if (m != null) { @@ -519,10 +518,9 @@ public class Mantle { } } }); - // }); + }); } - // burstExecutor.complete(); - + burstExecutor.complete(); } finally { io.set(false); }