From 11892b8c0f0f14e81c3384510b0b2ac7293ca237 Mon Sep 17 00:00:00 2001 From: 2No2Name <2no2name@web.de> Date: Sat, 26 Oct 2024 17:02:52 +0200 Subject: [PATCH] Disable math.sine_lut --- .../lithium/mixin/math/sine_lut/package-info.java | 5 ++++- lithium-fabric-mixin-config.md | 9 ++++++--- lithium-neoforge-mixin-config.md | 11 +++++------ 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/common/src/main/java/net/caffeinemc/mods/lithium/mixin/math/sine_lut/package-info.java b/common/src/main/java/net/caffeinemc/mods/lithium/mixin/math/sine_lut/package-info.java index 2e81cf89e..c1b632027 100644 --- a/common/src/main/java/net/caffeinemc/mods/lithium/mixin/math/sine_lut/package-info.java +++ b/common/src/main/java/net/caffeinemc/mods/lithium/mixin/math/sine_lut/package-info.java @@ -1,4 +1,7 @@ -@MixinConfigOption(description = "Reduces the sine table size to reduce memory usage and increase access speed") +@MixinConfigOption( + description = "Reduces the sine table size to reduce memory usage and increase access speed. Broken in 1.21.2 and 1.21.3.", + enabled = false +) package net.caffeinemc.mods.lithium.mixin.math.sine_lut; import net.caffeinemc.gradle.MixinConfigOption; \ No newline at end of file diff --git a/lithium-fabric-mixin-config.md b/lithium-fabric-mixin-config.md index fbb959497..15de0756d 100644 --- a/lithium-fabric-mixin-config.md +++ b/lithium-fabric-mixin-config.md @@ -148,7 +148,8 @@ FluidStates store directly whether they are empty Fluid optimizations ### `mixin.block.fluid.flow` -(default: `false`) + +(default: `true`) Fluid flow optimization ### `mixin.block.hopper` @@ -404,8 +405,10 @@ Avoids indirection and inlines several functions Avoid indirection and inline several functions in Direction, Axis and Box code ### `mixin.math.sine_lut` -(default: `true`) -Reduces the sine table size to reduce memory usage and increase access speed + +(default: `false`) +Reduces the sine table size to reduce memory usage and increase access speed. Broken in 1.21.2 and 1.21.3. + ### `mixin.minimal_nonvanilla` (default: `true`) diff --git a/lithium-neoforge-mixin-config.md b/lithium-neoforge-mixin-config.md index 48756c861..6f107d33c 100644 --- a/lithium-neoforge-mixin-config.md +++ b/lithium-neoforge-mixin-config.md @@ -21,7 +21,6 @@ mixin.gen.biome_noise_cache=false Mob AI optimizations ### `mixin.ai.pathing` - (default: `false`) A faster code path is used for determining what kind of path-finding node type is associated with a given block. Additionally, a faster chunk cache will be used for accessing blocks while evaluating @@ -150,7 +149,7 @@ Fluid optimizations ### `mixin.block.fluid.flow` -(default: `false`) +(default: `true`) Fluid flow optimization ### `mixin.block.hopper` @@ -383,8 +382,10 @@ Avoids indirection and inlines several functions Avoid indirection and inline several functions in Direction, Axis and Box code ### `mixin.math.sine_lut` -(default: `true`) -Reduces the sine table size to reduce memory usage and increase access speed + +(default: `false`) +Reduces the sine table size to reduce memory usage and increase access speed. Broken in 1.21.2 and 1.21.3. + ### `mixin.minimal_nonvanilla` (default: `true`) @@ -461,7 +462,6 @@ Allow accessing certain fields and functions that are normally inaccessible Allows access to existing BlockEntities without creating new ones ### `mixin.util.block_tracking` - (default: `false`) Chunk sections count certain blocks inside them and provide a method to quickly check whether a chunk contains any of these blocks. Furthermore, chunk sections can notify registered listeners about certain blocks being placed or broken. Requirements: @@ -598,7 +598,6 @@ Requirements: Faster block and fluid access due to inlining and reduced method size ### `mixin.world.inline_height` - (default: `false`) Reduces indirection by inlining world height access methods