From 06a26771eea270007efc24db90ab6bcd84df2d00 Mon Sep 17 00:00:00 2001 From: Micle Date: Sun, 25 May 2025 01:13:26 +0100 Subject: [PATCH] Improved cache config option description. Disabled cache by default. --- src/main/java/dev/micle/xptools/config/Config.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/micle/xptools/config/Config.java b/src/main/java/dev/micle/xptools/config/Config.java index 6f02c2e..1f8b219 100644 --- a/src/main/java/dev/micle/xptools/config/Config.java +++ b/src/main/java/dev/micle/xptools/config/Config.java @@ -90,9 +90,11 @@ public final class Config { builder.comment("Settings for optimizations").push("optimization"); optimizationUseCache = builder - .comment("When enabled, the list of operations to perform per unique_id will be cached after the first calculation.") - .comment("Although this does increase performance at the cost of RAM, the overall performance hit of this mod is tiny anyway... but oh well") - .define("optimizationUseCache", true); + .comment("Allows saving lists of operations per unique id (block_id/entity_id etc.).") + .comment("This will speed up getting the order of operations after the initial calculation.") + .comment("The downside is that it uses more RAM of course (I don't know how much), while it shouldn't be a lot it might not be worth it if you don't have many operations.") + .comment("The cache is not persistent and gets cleared whenever the config gets reloaded.") + .define("optimizationUseCache", false); builder.pop(); builder.comment("Settings for block breaking").push("block_breaking");