promotional bannermobile promotional banner

LazyRAM

Automatic client-side RAM optimization through deduplication, compact memory structures, adaptive cache cleanup and Deep AFK mode.

๐Ÿง  LazyRAM

Available on CurseForge Available on Nexus Mods fabric-apiAvailable on Modrinth

NeoForge Supported fabric quilt forge

โš ๏ธ NOTE: Requires Fabric API on fabric

LazyRAM is a fully automatic, client-side memory optimization mod for Minecraft 1.21.1 NeoForge, Quilt, Forge and Fabric. ๐Ÿง โš™๏ธ

It is designed to reduce unnecessary RAM overhead by compacting, deduplicating and retiring several memory-heavy Minecraft client structures. ๐Ÿ“‰

There is no menu, no HUD and no keybinds. LazyRAM works automatically in the background and does not reduce your render distance or graphics settings. ๐Ÿ˜Ž

๐Ÿงน What does LazyRAM optimize?

LazyRAM works directly with several internal Minecraft memory structures.

It can:

  • ๐Ÿงต Deduplicate model variant strings.
  • ๐Ÿ”ท Deduplicate identical BakedQuad vertex arrays.
  • ๐Ÿ“ฆ Compact baked-model face lists and directional face maps.
  • โ™ป๏ธ Reuse identical model face lists instead of keeping unnecessary copies.
  • ๐ŸงŠ Deduplicate collision and occlusion VoxelShapes.
  • ๐Ÿงฉ Deduplicate VoxelShape arrays used by block-state caches.
  • ๐Ÿ—‚๏ธ Replace repeated 6-value block face arrays with shared canonical arrays.
  • ๐Ÿ”— Compact BlockState neighbour lookup data into a shared indexed representation.
  • ๐Ÿชถ Reuse empty DataComponent patch maps.
  • โšก Cache and reuse multipart block-model predicates.
  • ๐Ÿงฑ Deduplicate equivalent multipart baked models.
  • ๐Ÿ—‘๏ธ Automatically discard temporary optimization lookup caches after they are no longer needed.

The goal is not to remove game data, but to avoid keeping multiple equivalent Java objects in memory when the same immutable data can safely be shared. โ˜•

๐Ÿ“Š Adaptive heap pressure control

LazyRAM monitors Java heap usage while Minecraft is running. ๐Ÿ‘€

When memory pressure becomes high, rebuildable internal optimization caches can be automatically discarded instead of being allowed to grow indefinitely. ๐Ÿ—‘๏ธ๐Ÿ”ฅ

The mod also includes a leak-growth sentinel which watches the heap baseline and retires temporary caches when sustained memory growth is detected. ๐Ÿšจ

At critical heap pressure, LazyRAM can request an explicit garbage collection cycle. โ™ป๏ธ

These systems are automatic and configurable. โš™๏ธ

๐Ÿ˜ด Deep AFK mode

LazyRAM includes an automatic Deep AFK mode.

By default, after 60 seconds without keyboard or mouse activity, LazyRAM can:

  • ๐Ÿ—‘๏ธ Retire temporary optimization caches.
  • ๐Ÿงน Clear cached model/predicate lookup data.
  • โœจ Remove existing particles.
  • ๐Ÿ›‘ Stop processing and spawning new particles while AFK.
  • โ™ป๏ธ Run a garbage collection cycle.
  • โธ๏ธ Pause the integrated server simulation in singleplayer.

As soon as keyboard or mouse activity is detected, normal operation resumes automatically. โšก

In singleplayer, this means the world simulation can be frozen while you are away and resumed when you return. Multiplayer servers are not paused. ๐ŸŒ

๐Ÿ›ก๏ธ Crash and hang protection

LazyRAM also contains an optional aggressive crash/hang guard. ๐Ÿ’€

By default:

  • ๐Ÿ’ฅ Fatal Minecraft crashes can immediately terminate the JVM instead of opening the normal crash screen.
  • ๐Ÿ‘๏ธ A watchdog monitors the client render loop.
  • โฑ๏ธ If the client stops responding for approximately 45 seconds, the watchdog can forcibly terminate the JVM.
  • ๐Ÿงฏ Resource reloads receive an extended grace period to avoid treating heavy reload operations as a hang.

These features can be disabled in the configuration file if you prefer Minecraft's normal crash behaviour.

โš™๏ธ Configuration

LazyRAM intentionally has no in-game configuration screen.

Configuration is stored in:

config/lazyram.properties\

Individual optimization systems can be enabled or disabled separately, including the heap-pressure engine, leak sentinel, explicit GC, crash guard, hang watchdog and Deep AFK behaviour. ๐Ÿ”ง

๐Ÿ”Œ Compatibility

  • ๐ŸŽฎ Minecraft: 1.21.1
    - ๐Ÿงฉ Mod loader: NeoForge 21.1+
    - ๐Ÿ’ป Side: Client only
    - โ˜• Java: 21
    - ๐ŸŒ Server installation: Not required
    - ๐Ÿ“œ License: MIT

LazyRAM uses Mixins to modify low-level Minecraft client memory structures, so when combining it with other mods that heavily modify the same rendering, model or BlockState internals, testing the combination is recommended. ๐Ÿงช

๐Ÿง  Philosophy

LazyRAM does not add gameplay content and does not lower visual quality to save memory. โœจ

Instead, it focuses on reducing duplicated data, using more compact representations, cleaning temporary lookup structures when they become cold, and reacting automatically to memory pressure. ๐Ÿ“‰โ™ป๏ธ

Install it and let it work in the background. ๐Ÿ˜Ž๐Ÿง 

Thanks to intergrav for cozy badges! โค๏ธ
(if someone wants to see here is the link https://intergrav.github.io/devins-badges-docs/badges/cozy/)

LazyRAM Team

profile avatar
Owner
  • 1
    Followers
  • 1
    Projects
  • 926
    Downloads