Ice and Fire Memory Fix
Modby TheFlareStar
Reduces Ice and Fire memory leaks and entity tick overhead with weak-reference caches and allocation-free state queries.
Type
Mod
CurseForge Downloads
29,732
CurseForge ID
1615379
Last Updated
Sep 5, 2026
Description
đ Mod Description
Ice and Fire attaches a "status data packet" to every single living entity in the game (including animals, monsters, and villagers) to track effects like frozen, chain, siren charm, and more. The problem is â the vast majority of these entities never use these features, yet they still carry around the full data packet, and the game has to look it up every single tick.
The result: high memory overhead and unnecessary performance cost.
This mod does exactly this: eliminates unnecessary memory usage and shortens the query path.
TL;DR: ~20% less memory, ~7% more performance.
âī¸ How It Works
1. Cache Query Results â No More Detours
The first time an entity needs its status data, it queries normally. After that, the result is stored directly on the entity itself. Next time, it's a direct hit â no more wandering through global registries.
2. Create Only When Needed â No Upfront Allocation
Originally, every entity immediately allocates 4 objects (chain, charm, rotten egg, misc) regardless of whether they'll ever use them. After optimization, objects are only created when actually needed. Ordinary animals/monsters/villagers will never allocate these unnecessary objects.
3. Reads Stay Reads, Writes Stay Writes
Read-only paths use a shared empty object and never generate new data. Only paths that actually modify state will create dedicated data.
4. Release on Empty State, Save Only What Matters
When states return to empty, their corresponding objects are released immediately. NBT only saves meaningful data. Fully compatible with old saves â upgrade with peace of mind.
đ Optimization Results
Metric Unoptimized Optimized Improvement Ice and Fire related memory 382 KB 272 KB -28.7% Status data packet internal memory 169 KB 72 KB -57.0% Status data cost per entity ~220 B ~96 B -56.1% Total 4 lazy sub-objects 3,080 17 -99.45% JVM used heap 4.13 GiB 3.57 GiB ~ -478 MiBTest method: Spark heapsummary, same mod pack, same seed, exploring for 5 minutes.
đšī¸ 6-Hour Gameplay Comparison
Metric Unoptimized Optimized Difference Per-tick queries Hundreds of millions of global lookups Direct local cache reads Most queries eliminated JVM used heap ~6.2 GiB ~4.9 GiB ~ -1.3 GiBSame mod pack, render distance, and entity distance. TPS stable at 20. Alternating between exploration and base activities.
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Rev's Better Structures
A mod that adds immersive, randomly generated vanilla-style structures like ruins, trees, and castles to enhance explora...
Life Steal Enchantment (Fabric/Forge/NeoForge/Quilt)
New enchantment for weapons thats steal life from victims!
Gearifiers
RPG Affixes for all your gear! Find gear with modifiers like Sharp, protective, legendary, useless, and many more. Re-ro...
FastFood Delight
A mod that aims at bringing some fast food stuff to minecraft !
Allure
A mod that ports Quark and Charm features to fabric.
Another Rotten Flesh To Leather
With this mod you can smelt rotten flesh to leather
