What are you searching for?

puzzle-piece

BadOptimizations

Optimization mod that focuses on things other than rendering

download 20.5M Downloads · favorite 2,429 Followers · Updated 1 month ago
Fabric Forge Neoforge Optimization 1.19.1 1.19.2 1.19.3 1.19.4 1.20.1 +17 more

Versions

inventory_2
2.4.1 (1.21.11)

2.4.1 · 1 month ago · 263.23 KB

Release download
Fabric Neoforge 1.21.11
inventory_2
2.4.1 (1.21.10)

2.4.1 · 1 month ago · 274.33 KB

Release download
Fabric Neoforge 1.21.10
inventory_2
2.4.1 (1.21.6-1.21.8)

2.4.1 · 1 month ago · 277.14 KB

Release download
Fabric Neoforge 1.21.6 1.21.7 1.21.8
inventory_2
2.4.1 (1.21.2-1.21.5)

2.4.1 · 1 month ago · 276.05 KB

Release download
Fabric Neoforge 1.21.2 1.21.3 1.21.4
inventory_2
2.4.1 (1.21.1)

2.4.1 · 1 month ago · 276.92 KB

Release download
Fabric Neoforge 1.21.1

About

BadOptimizations

A collection of mostly micro optimizations that add up to something bigger!

What does it do?

Multiple things:

  • Avoid updating lightmap

    Updating lightmap textures are one of the most expensive parts of the client tick. During each tick, the client will do vector math to calculate lightmaps for blocks and the sky, then upload that new texture to the GPU. However, this can be completely avoided and cached if nothing affecting block brightness has changed. This mod will cancel lightmap updates if nothing that changes block brightness (e.g. gamma slider, potion effects, dimension) has changed.

  • Don't do debug logic if we don't need to

    Minecraft has four debug renderers that can be activated with a debug server: bees, game events, game test and villager AI. Even if there's nothing to process, the logic for these debug renderers are still executed. This mod will only execute them if debug is enabled and there is data from the server to process.

  • Sky color calculation optimizations (1.21.10 and below)

    Minecraft uses a cubic color sampler every frame to calculate the current sky color. This function loops 216 times to factor in surrounding biomes, even if all surrounding biomes are identical or have identical sky colors. This mod makes the color sampler only used if you are between biomes with different sky colors, and caches it for each tick. Otherwise, a shorter, simpler and faster sky color calculation is used.

That's a few of them, at least. You can disable any optimization in the config file if you need to.

How much does it help?

Depends on your system and luck, but on my own PC, an RTX 3060, intel i7 12700 and 4GB of allocated ram on Fabulously Optimized:

Without toasts, it goes from 1926-1955 FPS:

To 2008-2023 FPS:

And with toasts, it goes from 1351-1384 FPS:

To 1414-1458 FPS:

My mod is incompatible!

You can mark your mod as incompatible with specific BadOptimizations options. If your mod is present, BadOptimizations will automatically disable the specific options you specify.
You can also add hooks that tell BadOptimizations when the lightmap or sky color needs to be updated instead of adding a hard incompatibility to the caching optimizations.

Dependencies?

None.

(Also available on CurseForge, if that's your thing.)

open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Unsupported
gavel MIT

Conversation

What are your thoughts?

Related projects

Optimization
Sodium
Sodium

by jellysquid3

The fastest and most compatible rendering optimization mod for Minecraft. Now available for both NeoForge and Fabric!

download 117.8M
favorite 32,752
Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.1M
favorite 23,748
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.0M
favorite 12,704
Optimization
Entity Culling
Entity Culling

by tr7zw

Using async path-tracing to hide Block-/Entities that are not visible

download 83.6M
favorite 13,745
lock Cookie consent

SkinMC uses cookies to provide functionality and features.