From 9a945837cdb5aed11a85f89ca05dcd01d35e467d Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Mon, 10 Jul 2023 23:09:02 +0200 Subject: [PATCH] Actually just after 1 region is generated switch --- .../com/volmit/iris/core/pregenerator/IrisPregenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/volmit/iris/core/pregenerator/IrisPregenerator.java b/src/main/java/com/volmit/iris/core/pregenerator/IrisPregenerator.java index 4b19ca5f7..9ef0faebf 100644 --- a/src/main/java/com/volmit/iris/core/pregenerator/IrisPregenerator.java +++ b/src/main/java/com/volmit/iris/core/pregenerator/IrisPregenerator.java @@ -111,7 +111,7 @@ public class IrisPregenerator { } private long computeETA() { - return (long) ((generated.get() > totalChunks.get() >> 3) ? // Generated chunks exceed 1/8th of total? + return (long) (totalChunks.get() > 1024 ? // Generated chunks exceed 1/8th of total? // If yes, use smooth function (which gets more accurate over time since its less sensitive to outliers) ((totalChunks.get() - generated.get()) * ((double) (M.ms() - startTime.get()) / (double) generated.get())) : // If no, use quick function (which is less accurate over time but responds better to the initial delay)