Skip to content

Commit

Permalink
Disable math.sine_lut
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Oct 26, 2024
1 parent 536951a commit 11892b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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;
9 changes: 6 additions & 3 deletions lithium-fabric-mixin-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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`)
Expand Down
11 changes: 5 additions & 6 deletions lithium-neoforge-mixin-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -150,7 +149,7 @@ Fluid optimizations

### `mixin.block.fluid.flow`

(default: `false`)
(default: `true`)
Fluid flow optimization

### `mixin.block.hopper`
Expand Down Expand Up @@ -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`)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 11892b8

Please sign in to comment.