BadOptimizations

Mod

Optimization mod that focuses on things other than rendering

Client Optimization

2.76M downloads
827 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!

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.

  • Sky color calculation optimizations

    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.

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

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:

Dependencies?

None.

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


Project members

thosea

Owner

Details

Licensed MIT
Published a year ago
Updated 18 days ago