Documentation
Benchmarks & validation
Full memory measurements comparing Official MTR 4.1.0-beta.2 alone vs Memory Saver, plus verified scope and open gates.
MTR Memory Saver preserves every failure log, rejected trial, and passing benchmark under hash-indexed evidence/ directories in the GitHub repository.
Official MTR 4.1.0-beta.2 alone vs with Memory Saver
| Metric | Official MTR 4.1.0-beta.2 Alone |
Official MTR + v0.3.0 (Same Legacy 16 Packs) |
Official MTR + 0.4.8 / 0.4.9 (Native-Catalogue 16 Packs) |
|---|---|---|---|
| Fixture & Loader | Legacy 16 packs (2,541 vehicles), Fabric 0.20.1 |
Legacy 16 packs (2,541 vehicles), NF265 |
Native-catalogue 16 packs (1,092 decls / 1,091 IDs + 974 OBJ), NF248 / NF265 |
Minimum Verified -Xmx |
> 12 GiB (OOM at 6 GiB & 12 GiB) |
3 GiB (-Xmx3072M, -75%+ vs 12 GiB) |
3 GiB (-Xms512M -Xmx3072M) |
| Sampled Java Heap | Peaked at 11.98 GiB before crashing |
2.812–2.815 GiB (startup) / 2.890–2.896 GiB (reload) |
Steady 2.299–2.307 GiB (NF248); 20-reload med 2.346 GiB (NF265); 0.4.9 captures 2.07–2.65 GiB |
| Live Heap Histogram | 9.87 GiB shallow (76.64M StoredVertexData 3.43 GiB + 75.31M Color 2.24 GiB) |
0 StoredVertexData (36 B lossless chunks) |
0 StoredVertexData (36 B lossless chunks + streaming UTF-16 I/O) |
| Windows Working Set | Not recorded in early baseline | Sampled 3.86–4.77 GiB (lifetime 5.24–5.36 GiB) |
Steady 4.25–4.31 GiB (NF248); 20-reload med 4.39 GiB / peak 5.59 GiB (NF265) |
| Windows Private Commit | Not recorded in early baseline | Sampled 4.02–4.14 GiB / reload 4.74–5.62 GiB |
Steady 4.46–4.47 GiB (NF248); 20-reload med 4.87 GiB / peak 5.86 GiB (NF265) |
Startup & F3+T Outcome |
Startup OutOfMemoryError (exit -1) |
Passed startup + F3+T (2/2 clients) |
0.4.9 16-pack showcase passed; matching 0.4.8 runtime passed 20 / 20 reloads (exit 0) |
Scope note: The unmodified no-companion baseline was measured on Fabric
0.20.1+ legacy 16 packs with JVM heap/jcmdcounters only; a standalone unmodifiedNeoForge 21.1.265no-companion baseline is not yet sealed. Compacting models and capping virtual-thread parallelism alone still OOMed at-Xmx12G.
Cumulative optimization gains (v0.1.1 to 0.4.9)
| Optimization Stage | Before | After | Measured Scope |
|---|---|---|---|
| Minimum Heap Cap | > 12 GiB OOM alone / 8 GiB (v0.1.1) |
3 GiB (-Xmx3072M) |
Both 16-pack fixtures |
CPU StoredVertexData |
79,359,867 live instances (v0.1.1) |
0 (36 B Deflater.BEST_SPEED) |
391 Shanghai models (47.37M vertices -> 367.77 MB) |
| Matrix Metadata | 2,494,194 StoredMatrixTransformations (~753 MiB) |
2,234 (-99.91%) |
PartType.DISPLAY transforms only (v0.2.1) |
| Vehicle Gson Shallow Heap | 385.75 MB |
99.87 MB (-74.11%) |
Shared epoch JsonObject trees (v0.2.2) |
| Retained Text Cache | 592.01 MB compressed |
96 MiB bounded LRU |
Evicts 3,010 entries/epoch; oversize bypass (v0.3.0+) |
| Large Text SHA-256 Alloc | 134.22 MB – 738.20 MB (16M units) |
136.7–136.9 KB (-99.898% to -99.981%) |
Fixed buffer streaming UTF-8 digest (v0.2.9+) |
| Single-Pass Snapshot Digest | Second disk read after capture | -19.24% CPU / -19.37% wall time |
6-pair 65.26 MB real BBModel benchmark (0.4.8 engineering-055) |
| Consecutive 16-Pack Reloads | 4th–7th reload OOM in early 0.4.x |
20 / 20 at 3 GiB (0 OOM) |
epochs 3–22 in -Xmx3072M G1 JVM (0.4.8 engineering-056) |
| Halt Cleanup & Mismatch Guard | Left .utf16 spills / continued boot |
4 / 4 zero residue + exit 1 |
DELETE_ON_CLOSE (0.4.7+) & MixinInitialisationError |
What is verified vs open
Verified on 0.4.9 (official-nf265, JAR 3d2a1407...)
- Automated suites:
106Java unit/regression tests (including-Xmx64Mstreaming OOM negative controls),682historical script catalog checks, and354Python tool tests pass on Linux & Windows CI. - Packaged client checks (
engineering-058): Passes69 / 69checks (24lifecycle +18strict-resource +27OBJ checks), settled zero-byte workspace, readable JFR, and exit code1before vehicle registration when launched against a modified same-version MTR JAR. - In-game
3 GiBcaptures (engineering-057): Fresh-Xmx3072Misolated clients passed Mods screen rendering and 16-pack world loading (1,092declarations /1,091unique IDs, sampled heap2.07–2.65 GiB, clean exits0, captured prior to thepack.pngrefresh on3239b939...with identicalsrc/runtime). - 20-reload continuity: Runtime
src/classes in0.4.9are identical to0.4.8(920c1f83...), which passed20 / 20consecutive full 16-packF3+Treloads.
Explicitly open (not yet certified)
- Controlled whole-client performance acceptance: Earlier 12-JVM paired Spark trials on
0.4.8NF248missed the preset gates (-0.282%steady private memory vs<= -10%;+9.840%load time vs<= +5%) with concurrent host CPU/I/O load leaving timing attributioninconclusive. The 48-JVM controlled client protocol (config/client-experiment.json) has not yet been run after single-pass digest optimization. - Open P1 gameplay gates: Independent display-frame presentation timing (ETW/PresentMon), a 2-hour uninterrupted transit route (historical attempts 01–03 failed), and exhaustive full-catalog door/window/boarding checks.
- Custom
Performance v6: Excluded from0.4.9and paused.
Offline cryptographic replay
Anyone can verify the sealed 20 / 20 reload dataset read-only from a clone of the repository without launching Minecraft:
python -X utf8 evidence/engineering-056/nf265-reload20/verify_sealed.py
The replay checks all 607 payload SHA-256 digests and outputs "passed": true.
Detailed Protocols & Full Stage Records
- Experiment methodology: Nine-step controlled loop, 48-JVM & 12-JVM paired protocols, Spark profiling, and evidence applicability boundaries.
- Stage records & hashes: Chronological
v0.1.1–v0.4.9trial tables, rejected designs, 12-JVM raw data, and the complete 64-char SHA-256 registry. - Technical principles: Four-layer architecture diagram, 7 JVM
-Dproperties, and all 18 Mixins/Accessors.