BadOptimizations

Mod

Optimization mod that focuses on things other than rendering

Client Optimization

2.06M downloads
695 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

BadOptimizations

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

Wait, what does this even do?

It does multiple things:

  • Avoid updating lightmap

    Updating lightmap textures are probably the most expensive part of the client tick. During each tick, the client will do some 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 brightness is changed. This mod will cancel lightmap updates if nothing that changes brightness (e.g. gamma slider, potion effects) has changed.

  • Sky color calculation optimizations

    Minecraft uses CubicScampler.sampleColor 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 this function only get called if you are between biomes with different sky colors and only makes it get called every tick. Otherwise, a shorter, simpler and faster sky color calculation is used.

  • 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 to process.

That's all the major ones, at least. You can disable any optimization in the config file if you need to.

But how much does it help?

(tested on my own PC with 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:

Dependencies?

None.

(Also available on CurseForge!)


Project members

thosea

Owner

Details

Licensed MIT
Published 10 months ago
Updated 3 months ago