BadOptimizations

Mod

Optimization mod that focuses on things other than rendering

Client Optimization

465.6k downloads
298 followers
Created5 months ago
Updated9 days ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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!)

External resources



Project members

thosea

Owner


Technical information

License
MIT
Client side
required
Server side
unsupported
Project ID