状态
2022年1月23日
本仓库已被归档,因为我们已没有时间或资源来维护该项目。不会再发布任何更新,我们也不会提供关于如何使用它的帮助。
如果您正在寻找替代品,建议查看 FerriteCore,它在模组化场景中通常能提供更显著的内存使用改进,并且目前支持 Minecraft 最新版本。
在流行的 All of Fabric 3 整合包中安装 Hydrogen 前后的内存使用情况对比。
Hydrogen 是一款免费且开源的模组,旨在通过实现更节省内存的数据结构和逻辑来降低游戏的内存需求。它主要针对重度模组化的场景进行优化,但在轻度模组化或原版场景中也能带来(小幅度的)改进。
该模组同时适用于客户端和服务端,且不需要在两端都安装此模组。不过,截至目前,在服务端运行 Hydrogen 带来的收益相当有限。
功能
-
为方块状态和属性实现了更紧凑的数据结构,在使用添加大量复杂方块的模组时,显著减少内存占用
-
去重方块模型几何体,在使用多部分方块模型时为客户端节省内存
-
修复了区块加载代码中的几处内存泄漏问题,防止区块加载后磁盘上的 NBT 数据继续保留在内存中
-
简化和扁平化方块模型谓词,以减少不必要的链式调用
Status
January 23rd, 2022
This repository has been archived as we do not have the time or resources needed to maintain the project. No further updates will be published, and we won't be providing help for using it.
If you are looking for a replacement, consider taking a look at FerriteCore, as it generally offers more significant improvements to memory usage in modded scenarios and is currently available for the latest version of Minecraft.
Memory usage before and after installing Hydrogen into the popular All of Fabric 3 modpack.
Hydrogen is a free and open-source mod designed to reduce the game's memory requirements by implementing more memory-efficient data structures and logic. It's primarily designed for more heavily modded scenarios, but can offer (small) improvements even in lightly modded or vanilla scenarios.
The mod works on both the client and server, and doesn't require the mod to be installed on both sides. However, the benefits of running Hydrogen on the server are pretty small as of the moment.
Features
-
Implements more compact data structures for block states and properties, reducing memory usage significantly when using mods that add lots of complex blocks
-
De-duplicates block model geometry, saving memory on the client when multi-part block models are used
-
Fixes a few leaks in chunk loading code that results in the NBT data on disk being kept in memory after a chunk has loaded
-
Simplifies and flattens block model predicates to reduce unnecessary chaining
评论 0
登录后参与评分
还没有评论,来抢沙发吧