问题所在
在没有“个人缩小装置”的情况下右键点击紧凑型机器时,会弹出一个内部结构的 3D 预览。这很方便!但问题是,每次打开预览时,游戏都会占用大量内存来绘制它,而在关闭预览后永远不会释放这些内存。
打开几个小型机器的预览会导致你的 RAM 使用量逐渐上升。如果打开一个大型机器的单个预览(一个 45x45x45 的房间可能会占用高达1 GB 的内存),你的游戏可能会冻结几分钟或直接崩溃。如果在里面放置了密集的 Mekanism 或 Oritech 配置,你只需单击一次就可能消耗掉超过50 GB的提交内存。
更糟糕的是,正常的堆内存工具显示没有任何异常,因为这种内存泄漏发生在堆外/GPU 内存中。大多数玩家只会看到“Minecraft 吃掉了我的所有 RAM”,却不知道为什么。
此模组的作用
当你打开预览时,此模组会挂钩到屏幕界面,确保在以下任一情况发生时,预览所占用的内存被正确释放:
仅此而已。没有新方块、新物品、菜单或配置文件。你安装它,泄漏就会停止。
它修复的症状
- 预览大型或繁忙的紧凑型机器时,游戏卡顿数秒(或数分钟)。
- Minecraft 的 RAM 使用量在你每次打开预览时攀升,且永不回落。
- 在单次游戏会话中打开几个预览后导致内存不足崩溃。
- 由于 Minecraft 吃掉了所有可用内存,导致整个电脑变得迟缓。
如果你遇到过上述任何情况,那么这个模组就是为你准备的。
仅客户端。泄漏位于预览渲染代码中,该代码在你的计算机上运行。你不需要在服务器上安装此模组。它不会导致你与其他玩家不同步。
可以随时添加或删除于现有世界中。
兼容性
- Minecraft: 1.21.1
- 加载器: NeoForge 21.1.55 或更高版本
- 依赖项: Compact Machines(任何仍带有损坏预览功能的 1.21.1 版本)
如果没有安装 Compact Machines,此模组将不起作用且不会干扰其他内容。
我何时可以卸载此模组?
一旦 Compact Machines 本身发布了针对底层预览泄漏的修复补丁,你就可以安全地移除这个模组。在此之前,请保留它。
The problem
Right clicking a Compact Machine without a Personal Shrinking Device pops up a little 3D preview of what is inside. Handy! Except every time you open one, the game grabs a huge chunk of memory to draw it, and then never gives that memory back when you close the preview.
Open a few previews of a small machine and your RAM use creeps up. Open a single preview of a big machine (a 45x45x45 room can use a full gigabyte of RAM), and your game can freeze for minutes or crash outright. Open one with a packed Mekanism or Oritech setup inside and you can blow past 50 GB of committed memory in a single click.
Worse, normal heap memory tools show nothing wrong, because the leak is in off heap / GPU memory. Most players just see "Minecraft is eating all my RAM" and have no idea why.
What this mod does
When you open a preview, this mod hooks into the screen and makes sure the memory the preview reserved is properly released as soon as either of the following happens:
- You close the preview.
- The preview screen swaps in a new preview.
That is it. No new blocks, no new items, no menus, no config. You install it, the leak stops happening.
Symptoms it fixes
- Game freezing for several seconds (or minutes) when previewing a large or busy compact machine.
- Minecraft's RAM usage climbing every time you open a preview and never going back down.
- Out of memory crashes after opening a few previews in a single play session.
- Whole PC becoming sluggish because Minecraft has eaten all available memory.
If any of those sound familiar, this mod is for you.
Client side only. The leak is in the preview rendering code, which runs on your computer. You do not need to install this on the server. It will not desync you from other players.
Safe to add to or remove from existing worlds at any time.
Compatibility
- Minecraft: 1.21.1
- Loader: NeoForge 21.1.55 or newer
- Requires: Compact Machines (any 1.21.1 version that still has the broken preview)
If Compact Machines is not installed, this mod does nothing and stays out of the way.
When can I uninstall this?
As soon as Compact Machines itself ships a fix for the underlying preview leak, you can safely remove this mod. Until then, leave it in.
评论 0
登录后参与评分
还没有评论,来抢沙发吧