Skip to content

Commit 305288c

Browse files
committed
change: disable dfc by default
1 parent 7472914 commit 305288c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
package com.ishland.c2me.opts.dfc;
22

3+
import com.ishland.c2me.base.common.config.ConfigSystem;
4+
35
public class ModuleEntryPoint {
46

5-
private static final boolean enabled = true;
7+
private static final boolean enabled = new ConfigSystem.ConfigAccessor()
8+
.key("vanillaWorldGenOptimizations.useDensityFunctionCompiler")
9+
.comment("""
10+
Whether to use density function compiler to accelerate world generation
11+
12+
Density function: https://minecraft.wiki/w/Density_function
13+
14+
This functionality compiles density functions from world generation
15+
datapacks (including vanilla generation) to JVM bytecode to increase
16+
performance by allowing JVM JIT to better optimize the code
17+
18+
Currently, all functions provided by vanilla are implemented.
19+
Chunk upgrades from pre-1.18 versions are not implemented and will
20+
fall back to the unoptimized version of density functions.
21+
""")
22+
.getBoolean(false, false);
623

724
}

0 commit comments

Comments
 (0)