banner
Rating
Voted0

Mod Bad Optimizations (1.20.4) - optimization of minor

Category - Optimization
1
Mod version:1
Game version:1.20.4
The mod has been successfully tested for the absence of viruses
1121.22K132.87K

Report mod

  • image
modalImage

About This Mod

Bad Optimisations Mod (1.20.4) started with trivial optimization and only a slight increase in performance (hence the name), but later became a serious optimization. While most mods of optimization focus on rendering performance and optimization of Minecraft's rendering engine, this mod focuses on something else. This mod is intended to be used in conjunction with other optimization mods such as Sodium.

Don't do F3 calculations unless you're on the F3 menu: it's the biggest optimization, even if F3 isn't open, you'll be surprised at how expensive calculations against F3 can be. Specifically, the FPS string uses a very slow call to the String.format function. This mod ensures that this function will only be called when you are really on the F3 menu; don't worry, it won't break the FPS counter mod. (Also, you should not use F3 frequently anyway. Use the FPS counter mod as it severely degrades performance).

Eliminate unnecessary thread synchronization from DataTracker / SyncedEntityData: Minecraft uses thread locks to ensure that only one thread accesses DataTracker at a time. It's completely redundant. I wrote a temporary script that, when more than one thread called the DataTracker of one entity, would crash the game. The game never fell.

No unnecessary FOV calculations: When there are no players or anyone watching, the game will calculate your FOV factor even if the scale of the FOV effect is 0. Maud removes this calculation when the FOV effects scale is zero.

Replaces the removeIf call in ToastManager by replacing the standard Java removeIf call used for vanilla toasts with a more direct one. The default Java implementation invokes the predicate twice, so each toast is rendered twice. This mode replaces the removeIf call with an iterator, which improves performance with and without toasts.

Similar Mods/Addons

Game Version *

1.20.4 (c8ea1bd0b7037de967a13ae910807d4a.jar)