File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 11package com .ishland .c2me .opts .dfc ;
22
3+ import com .ishland .c2me .base .common .config .ConfigSystem ;
4+
35public 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}
You can’t perform that action at this time.
0 commit comments