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.
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:
That is it. No new blocks, no new items, no menus, no config. You install it, the leak stops happening.
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.
If Compact Machines is not installed, this mod does nothing and stays out of the way.
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.