🚀 让你的 Minecraft 背包体验更丝滑
Minecraft 的背包操作有时会出现轻微的卡顿,尤其是在悬停物品、打开箱子或浏览模组背包时。Sodium Relief 是一款轻量级的客户端 Fabric 模组,它在不改变游戏玩法的前提下,减少了冗余的工具提示和悬停计算工作。

横幅显示的是较早的基准测试结果。下表展示了 Minecraft 26.3 环境下 1.3.1 版本的测试结果。
⚙️ 功能说明
- 平滑类背包界面的工具提示渲染。
- 当物品和追踪的工具提示输入未发生变化时,复用已准备好的工具提示行。
- 减少光标在物品间移动时的冗余工作。
- 对重复出现的字符串(如物品堆叠数量)缓存文本宽度测量结果。
- 针对箱子、背包以及兼容的模组容器界面中依赖大量工具提示的交互场景进行优化。
📊 实测影响
我们的目标是减少冗余工作,而非单纯提升 FPS。一项自动化测试在 Minecraft 26.3 环境下,使用 Sodium Relief 1.3.1、Sodium 0.9.3 和 Enchantment Descriptions 26.3.0.2,打开了一个真实的背包并统计了优化路径上的实际工具提示构建次数。
| 场景 | 工具提示请求数 | 全新构建 | 复用次数 | 复用率 |
|---|---|---|---|---|
| 静止悬停在一个物品上 | 2,417 | 1 | 2,416 | 99.96% |
| 扫描 36 个背包槽位(3 次遍历) | 1,281 | 35 | 1,246 | 97.27% |
横幅中显示的早期运行记录显示:静止状态下从 2,429 次请求中仅进行了 2 次全新构建,扫描过程中从 3,714 次请求中进行了 38 次全新构建。该次运行中单次构建耗时约为 0.1–0.3 毫秒;横幅中显示的约 0.5 秒节省时间仅为估算值,并非实测的 FPS 提升。构建成本和复用率会因配置不同而有所差异。
你可以在模组设置中选择 Export Benchmark(导出基准测试),以从你自己的游戏会话中导出 JSON 快照。

🧠 工作原理
- 维护一个有界工具提示缓存(采用 LRU 算法并带有存活时间),并在悬停状态未变化时复用结果。
- 使用轻量级的悬停平滑技术,避免指针在槽位间移动时产生冗余工作。
- 缓存重复的文本宽度测量结果,而不是每帧重新计算。
这些优化仅在客户端运行,并设计为与 Sodium 协同工作。当工具提示缓存被禁用或兼容性检查要求刷新内容时,Sodium Relief 会让正常的工具提示路径继续运行。
🎯 适用场景
- 浏览大型背包、箱子或存储系统。
- 快速扫过大量物品或比较它们的工具提示。
- 使用具有复杂物品工具提示的模组。
- 即使游戏其他部分运行流畅,但在悬停时仍注意到微小的卡顿。
❗ 此模组不做什么
- 它不是旨在提升开放世界 FPS 的模组。
- 它不优化区块、世界渲染或 GPU 负载。
- 它不是通用的性能增强器。
🧩 兼容性
- Fabric: Minecraft 1.21–1.21.11(Java 21)以及 26.1.x, 26.2, and 26.3(Java 25)。
- 仅限客户端。 无需安装服务器端,也不改变游戏玩法。
- 需要 Fabric API。 推荐安装 Sodium,但非必需。Mod Menu 可选。
- 提供 英语、俄语和乌克兰语 支持。
Enchantment Descriptions: 1.3.1 修复了在启用 require_keybind 时工具提示过时的问题。现在,当你按下或释放 Shift 键而不移动光标时,附魔物品和书籍会根据按键状态显示或隐藏描述信息。普通工具提示仍使用缓存。如果你之前禁用了 enableTooltipLayoutCache 作为变通方法,现在可以重新开启它。
💡 为什么使用 Sodium Relief?
大多数性能模组专注于渲染或世界逻辑。Sodium Relief 则聚焦于一个较小的问题:当客户端逐帧重建相同的工具提示帧时,背包操作仍可能出现卡顿。
📦 安装指南
- 为你的 Minecraft 版本安装 Fabric Loader 和 Fabric API。
- 从 Versions tab 下载匹配的 Sodium Relief JAR 文件。
- 将其放入客户端的
mods/文件夹中。升级时请移除旧的 Sodium Relief JAR 文件。
Modrinth App 可以为你自动安装所需的依赖项。
❤️ 支持
如果你喜欢这个模组,可以考虑在 Ko-fi 上支持开发,或者留下反馈。
免责声明
Sodium Relief 是一个非官方的独立辅助模组。它与 CaffeineMC 或 Sodium 项目没有任何关联、背书或赞助关系,也不包含或修改任何 Sodium 代码。
Sodium 是 CaffeineMC 的作品。Sodium Relief 设计用于与其协同工作。所有产品名称、标志和品牌均为其各自所有者的财产。
🚀 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.

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.

🧠 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
- Install Fabric Loader and Fabric API for your Minecraft version.
- Download the matching Sodium Relief JAR from the Versions tab.
- 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.
下载 Sodium Relief
下载 Sodium Relief
下载 Sodium Relief
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sodium Relief
下载 Sodium Relief
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sodium Relief
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sodium Relief
下载 Sodium Relief
下载 Sodium Relief
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Sodium Relief
更新日志
- 为 Minecraft 26.3(Java 25)添加了 Fabric 构建版本。
- 修复了与 Enchantment Descriptions 的兼容性问题:现在按住 Shift 键会更新附魔物品和书籍的工具提示,而不会关闭普通物品的缓存。
- 禁用工具提示布局缓存时,也会同时禁用回退工具提示复用功能。
- 更新了 README 和构建工具,并修复了 Gradle 包装器的可执行权限。
所有之前的 Minecraft 目标版本仍然受支持。仅安装与您 Minecraft 版本匹配的 JAR 文件;需要 Fabric API。
已在 Sodium 0.9.3 和 Enchantment Descriptions 26.3.0.2 环境下验证了 26.3 客户端,并在 26.2 版本中运行了库存测试。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧