MTR Memory Saver

A Minecraft Mod aiming at cut memory use of MTR mod while loading A LOT OF vehicle resourcepacks (train packs).
hero-mem-57-3gb.png

hero-mem-57-3gb.png

Description

MTR Memory Saver

MTR Memory Saver

English | 简体中文

Minecraft 1.21.1 (Client) · NeoForge 21.1.265 · Java 21 · Official MTR 4.1.0-beta.2 · Mod ID: mtr_memory_sharing · License: MIT

MTR Memory Saver prevents OutOfMemoryError crashes and cuts required Java heap by over 75% when running large Official MTR 4.1.0-beta.2 vehicle resource pack collections. Drop the JAR into mods/—models, textures, interaction boxes, displays, and doors stay lossless and your resource pack ZIPs stay untouched.

At a Glance (16 Full Vehicle Packs)

What Changes Official MTR 4.1.0-beta.2 Alone With Memory Saver 0.4.9 User Impact
Loading 16 Heavy Packs Crashes with OutOfMemoryError even at 12 GiB -Xmx Launches stably at 3 GiB (-Xmx3072M) −75%+ Java heap cap required (12 GiB OOM -> 3 GiB pass)
Repeated F3+T Reloads Fails on startup alone (earlier builds OOMed on 4th–7th reload) 20 / 20 consecutive full reloads at 3 GiB (0 OOM; verified on 0.4.8 runtime) Reload resource packs safely in-world without restarting
Actual Memory Usage Peaked at 11.98 GiB heap used (9.87 GiB live objects before finishing) 2.30–2.35 GiB steady Java heap (~4.25–4.47 GiB steady Windows RAM; ~4.39–5.86 GiB across 20 reloads) Eliminates 76.64M duplicate CPU vertex graphs (StoredVertexData -> 0)
Visuals & Gameplay Unmodified baseline Lossless (36 B lossless chunks, native geometry/boxes preserved) Resource packs and saves stay untouched; remove JAR anytime to revert

Player tip: -Xmx3072M limits Java heap only—Windows Working Set / Private Commit (including JVM runtime and GPU/native buffers) runs around 4.25–5.86 GiB. See For the Community below for exact fixture caveats, raw measurements, and pending performance checks.


For Players: Quick Start & Safety

The 0.4.9 formal release targets official-nf265 (config/targets.json is the single authority for dependency hashes and loader versions):

Parameter Required Value
Target Preset official-nf265
Minecraft / Java 1.21.1 (Client only) · Java 21
NeoForge 21.1.265 (exact)
Official MTR 4.1.0-beta.2 SHA-256 ff2b753d03f2bcc000d053a9014e4250c8ba720daa9b69b6899fe7dc26be1efa
Released Companion JAR (0.4.9) SHA-256 3239b9395719da0dc8fd75b13584a7f410b880a6f27bb698af1af5e984c07c08

Install in 3 Steps

  1. Download mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.jar directly (or mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.zip with its manifest/README) from GitHub Releases (see v0.4.9 Release Notes).
  2. Place mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.jar into your client's mods/ folder alongside exact NeoForge 21.1.265 and Official MTR 4.1.0-beta.2.
  3. Keep your existing ZIPs inside resourcepacks/ (no pack modification needed) and set at least -Xmx3072M (3 GiB).

Source records and SHA-256 fingerprints: evidence/engineering-057/screenshots/README.md.

MTR Memory Saver Team

profile avatar
Owner
  • 2
    Projects
  • 1.5K
    Downloads

MTR | Create | NPC | Neoforge player. Administrator of the server "Creating Server"

Donate

More from BenLi06