Skip to content

Sodium Relief

By ErotoroOwner

Reduces inventory tooltip & hover stutter for smoother GUIs — a lightweight client-side optimization mod and Sodium companion. Caches tooltip layouts & text-width measurements. No FPS cost, no gameplay changes.

12k downloads Updated
26.3 26.2

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

🚀 Smooth your Minecraft inventory experience

Minecraft inventories can feel slightly stuttery, especially when hovering over items, opening chests, or browsing modded inventories. Sodium Relief is a lightweight, client-side Fabric mod that reduces redundant tooltip and hover work without changing gameplay.

Support SodiumRelief on Ko-fi

Sodium Relief benchmark banner from before 1.3.1

The banner shows an earlier benchmark. The table below shows the 1.3.1 results on Minecraft 26.3.

⚙️ What it does

  • Smooths tooltip rendering on inventory-like screens.
  • Reuses prepared tooltip lines when the item and tracked tooltip inputs are unchanged.
  • Reduces redundant work as the cursor moves across items.
  • Caches text-width measurements for repeated strings, such as item stack counts.
  • Targets tooltip-heavy interactions in chests, inventories, and compatible modded container screens.

📊 Measured impact

The goal is less redundant work, not more FPS. An automated test opened a real inventory on Minecraft 26.3 with Sodium Relief 1.3.1, Sodium 0.9.3, and Enchantment Descriptions 26.3.0.2. It counted actual tooltip builds on the optimized path.

Scenario Tooltip requests Fresh builds Reused Reuse rate
Resting on one item 2,417 1 2,416 99.96%
Scanning 36 inventory slots (3 passes) 1,281 35 1,246 97.27%

The earlier run shown in the banner recorded 2 fresh builds from 2,429 requests at rest and 38 from 3,714 while scanning. Individual builds in that run took roughly 0.1–0.3 ms; the roughly half-second saving shown in the banner was an estimate, not a measured FPS gain. Build costs and reuse rates vary by setup.

Choose Export Benchmark in the mod settings to export a JSON snapshot from your own session.

Minecraft inventory screenshot from an in-game Sodium Relief test

🧠 How it works

  • Keeps a bounded tooltip cache (LRU with a time-to-live) and reuses results on unchanged hovers.
  • Uses lightweight hover smoothing to avoid redundant work as the pointer moves across slots.
  • Caches repeated text-width measurements rather than recalculating them every frame.

The optimizations run on the client and are designed to work alongside Sodium. When the tooltip cache is disabled or a compatibility check calls for fresh content, Sodium Relief lets the normal tooltip path run.

🎯 When it helps

  • Browsing large inventories, chests, or storage systems.
  • Moving quickly across many items or comparing their tooltips.
  • Using mods with complex item tooltips.
  • Noticing small hitches while hovering even when the rest of the game runs smoothly.

❗ What this mod does NOT do

  • It is not designed to increase open-world FPS.
  • It does not optimize chunks, world rendering, or GPU load.
  • It is not a general-purpose performance booster.

🧩 Compatibility

  • Fabric: Minecraft 1.21–1.21.11 (Java 21) and 26.1.x, 26.2, and 26.3 (Java 25).
  • Client-side only. No server installation or gameplay changes.
  • Fabric API required. Sodium is recommended but optional. Mod Menu is optional.
  • Available in English, Russian, and Ukrainian.

Enchantment Descriptions: 1.3.1 fixes stale tooltips with require_keybind enabled. Enchanted items and books now show or hide descriptions when you press or release Shift without moving the cursor. Ordinary tooltips still use the cache. If you disabled enableTooltipLayoutCache as a workaround, you can turn it back on.

💡 Why use Sodium Relief?

Most performance mods focus on rendering or world logic. Sodium Relief focuses on a smaller problem: inventories can still hitch when the client rebuilds the same tooltip frame after frame.

📦 Installation

  1. Install Fabric Loader and Fabric API for your Minecraft version.
  2. Download the matching Sodium Relief JAR from the Versions tab.
  3. Place it in your client's mods/ folder. Remove the old Sodium Relief JAR when upgrading.

The Modrinth App can install required dependencies for you.

❤️ Support

If you enjoy the mod, consider supporting development on Ko-fi or leaving feedback.


Disclaimer

Sodium Relief is an unofficial, independent companion mod. It is not affiliated with, endorsed by, or sponsored by CaffeineMC or the Sodium project, and it does not include or modify any Sodium code.

Sodium is the work of CaffeineMC. Sodium Relief is designed to work alongside it. All product names, logos, and brands are property of their respective owners.