Skip to content

Releases

MTR Memory Saver v0.4.9

Choose a tag to compare

@github-actions github-actions released this 30 Nov 02:55
8e96228

Bilingual Release Notes: English | 简体中文

Summary

0.4.9 is the scoped formal release of MTR Memory Saver for Minecraft 1.21.1 (Client), Java 21, NeoForge 21.1.265 (exact), and Official MTR 4.1.0-beta.2 (official-nf265).

It promotes the 0.4.8 streaming-snapshot and single-pass digest architecture to a non-prerelease formal release, adds polished neoforge.mods.toml and bilingual resource-pack descriptions alongside the refreshed 512x512 pack.png icon (bff0021a...), binds fresh 0.4.9 69-check packaged verification (engineering-058) into config/delivery-evidence.json, and links the 3 GiB (-Xmx3072M) official-nf265 F2 evidence screenshots (engineering-057, captured on the identical Java runtime sources prior to the icon refresh).


What's New in 0.4.9

  • Formal Release & Polished Mod Metadata: Sets modVersion=0.4.9, updates neoforge.mods.toml (issueTrackerURL, displayURL, and full multi-line mod summary), updates en_us / zh_cn pack descriptions, updates the 512x512 RGBA pack.png icon (bff0021a..., logoBlur=false), and updates .github/workflows/release.yml so formal version tags publish as a Latest release with release notes from docs/releases/<tag>.md.
  • Version-Bound 0.4.9 Packaged Verification (engineering-058): The exact icon-updated 0.4.9 product JAR (3d2a1407...) passes 69 packaged client checks (24 lifecycle + 18 strict-resource + 27 OBJ checks, settled workspace, exit code 0, readable JFR) and rejects a same-version modified MTR JAR via MixinInitialisationError before registration (exit 1, readable JFR), bound into docs/VALIDATION.json (status: verified-packaged-scope).
  • In-Game Evidence Captures (engineering-057): Native F2 screenshots captured from isolated official-nf265 clients prior to the pack.png refresh (3239b939..., identical src/ runtime) cover the NeoForge Mods screen and full 16-pack world loading (1,092 declarations / 1,091 unique IDs) at -Xmx3072M.
  • Retained Streaming & Memory Core (0.4.x / 0.3.x): Continues single-channel DELETE_ON_CLOSE UTF-16 streaming for .bbmodel, .obj, and .mtl inputs with single-pass SHA-256 hashing (-19.24% CPU / -19.37% wall time on the 65.26 MB BBModel microbenchmark in 0.4.8), lossless 36-byte Deflater.BEST_SPEED vertex chunks (0 CPU StoredVertexData), PartType.DISPLAY-only transforms, epoch-shared vehicle JSON trees, 96 MiB bounded text LRU, and 2 + 64 bounded scheduling.

In-Game Evidence Screenshots (official-nf265, 0.4.9)

  • NeoForge Mods Screen (pack.png + 0.4.9 Description, PID 3872)

MTR Memory Saver 0.4.9 Mods Screen

  • All 16 Native-Catalogue Packs Running at -Xmx3072M with F3 HUD (PID 5932, 1,092 decls / 1,091 IDs)

MTR Memory Saver 0.4.9 F3 3072MB

  • Clean In-World DC01 Update Train Consist After -Xmx3072M 16-Pack Load (PID 31244)

MTR Memory Saver 0.4.9 In-Game Train


Memory Footprint: Official MTR 4.1.0-beta.2 Alone vs With Memory Saver

Configuration -Xmx Heap Cap Sampled Java Heap Windows Working Set / Private Startup & F3+T Outcome
Official MTR 4.1.0-beta.2 Alone (Fabric, legacy 16 packs) 12 GiB (OOM) 11.98 GiB before crash; 9.87 GiB partial shallow heap (76.64M StoredVertexData + 75.31M Color) Not recorded in early baseline OutOfMemoryError (exit -1) before parsing completed (histogram)
Official MTR + Memory Saver v0.3.0 (NF265, same legacy 16 packs) 3 GiB (-Xmx3072M) 2.812–2.896 GiB (0 CPU StoredVertexData) WS 3.86–4.77 GiB (lifetime 5.36 GiB) / Private 4.02–5.62 GiB Startup + F3+T reload passed (2/2 clients, v0.3.0)
Official MTR + Memory Saver 0.4.8 / 0.4.9 (NF248/NF265, native-catalogue 16 packs) 3 GiB (-Xmx3072M) Steady 2.30–2.31 GiB (0.4.8 NF248); 20-reload med 2.35 GiB (0.4.8 NF265); 0.4.9 in-world 2.07–2.65 GiB Steady WS 4.25–4.31 GiB / Priv 4.46–4.47 GiB (NF248); 20-reload med WS 4.39 GiB / Priv 4.87 GiB (NF265) 0.4.9 startup + 16-pack showcase passed; 20 / 20 F3+T reloads verified on identical runtime bytecode in 0.4.8 (nf265-reload20)

Note: The unmodified no-companion baseline was measured on Fabric 0.20.1 + legacy 16 packs (OS process counters omitted; no unmodified NeoForge 21.1.265 no-companion baseline is sealed yet). Remember -Xmx3072M limits Java heap only; total Windows process memory remains ~4.25–5.86 GiB.


Validation Scope vs Known Limits

Verified on 0.4.9 (official-nf265, JAR 3d2a1407...)

  • Automated Suites: 106 Java unit/regression tests, 682 historical script index checks, and 354 Python tool tests pass; Linux & Windows CI verify the reproducible release ZIP and its JAR fingerprint.
  • Packaged Client & Binary Mismatch (engineering-058): Passes 69 packaged checks (24 lifecycle + 18 strict-resource + 27 OBJ), clean workspace settlement (exit 0, readable JFR), and startup rejection (exit 1, MixinInitialisationError) when launched against a modified MTR JAR (nf265-packaged).
  • Live 16-Pack World & Mods Captures (engineering-057): Fresh isolated official-nf265 clients passed Mods screen rendering and 16-pack startup (1,092 declarations / 1,091 distinct IDs) at -Xmx3072M with clean exits (0) on the identical src/ runtime prior to the pack.png icon refresh (screenshots).
  • Runtime Code Continuity: Java runtime sources under src/ are unchanged from 0.4.8 (920c1f83...), where 20 / 20 consecutive 16-pack F3+T reloads passed at 3 GiB.

Not Yet Certified / Excluded Scope

  • Whole-Client Performance Acceptance Pending: Earlier 12-JVM paired Spark trials on 0.4.8 NF248 missed the performance thresholds (−0.282% steady private memory vs <= -10%; +9.840% loading time vs <= +5%) with concurrent host load leaving timing attribution inconclusive; the 48-JVM controlled client benchmark (config/client-experiment.json) has not yet been run.
  • Open Functional Gates: Independent display-frame timing (ETW/PresentMon), a 2-hour uninterrupted route, and exhaustive full-catalog vehicle visual/window/door/boarding interaction checks remain pending.
  • Custom Performance v6 Excluded: Only official-nf265 is built and released for 0.4.9; v6 work remains paused.

Installation & Checksums

  1. Download mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.jar directly (or download mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.zip for the full bundle with manifest/docs), and verify against the accompanying .sha256 files.
  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 NeoForge 21.1.265 and Official MTR 4.1.0-beta.2.
  3. Remove any older mtr-memory-saver / mtr_memory_sharing JAR first (never install two versions together). The test probes/observers are excluded from the release archive. To roll back, close Minecraft and delete the companion JAR.
Artifact SHA-256
mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.jar 3d2a1407745085a5646f0765b38f66442fdb56be2d22b7e366b7ab6407e8e34c
Official MTR 4.1.0-beta.2 JAR ff2b753d03f2bcc000d053a9014e4250c8ba720daa9b69b6899fe7dc26be1efa
src/main/resources/pack.png (512x512 RGBA) bff0021a4d8982abd4a98cf952edfba4670fd8f30ceea43f90f5754b8a9597a8
mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.zip Published in attached mtr-memory-saver-0.4.9-mtr4.1.0-beta.2-mc1.21.1-neoforge21.1.265.zip.sha256

Links: Packaged 0.4.9 Checks · 0.4.9 Screenshots · 0.4.8 20-Reload Proof · Support Scope · Install & Rollback · Technical Principles (zh-CN)


简体中文说明

0.4.9 是面向 Minecraft 1.21.1 客户端、Java 21、NeoForge 21.1.265(精确版本) 与 官方 MTR 4.1.0-beta.2 的 official-nf265 限定范围正式发布版本。

本版本将经 0.4.8 验证通过的全流式快照与单遍摘要运行时升级为正式 Release(Latest),更换为新版 512x512 像素风 pack.png 图标(bff0021a...)并完善了 neoforge.mods.toml 多行描述、仓库/Issue 链接与中英双语资源包简介,在 config/delivery-evidence.json 绑定了专属的 0.4.9 69 项实机打包验证与错包拦截证据(engineering-058),并保留独立实机采拍的 3 GiB 游戏内截图与 Mods 页面截图(engineering-057)。

主要更新

  • *正式版元数据与工作流完善...
Read more

MTR Memory Saver 0.4.8 — NeoForge 21.1.265 preview

Choose a tag to compare

@github-actions github-actions released this 23 Nov 15:21
15b5c8a

Bilingual Release Notes: English | 简体中文

Summary

0.4.8 is a scoped client-side development pre-release for Minecraft 1.21.1, Java 21, NeoForge 21.1.265 (exact), and Official MTR 4.1.0-beta.2.

This release resolves the multi-reload heap exhaustion observed on earlier builds (0.4.7 4th-reload BBModel String.join OOM and initial 0.4.8 7th-reload OBJ String.join OOM) by streaming Blockbench, OBJ, and MTL inputs through single owned DELETE_ON_CLOSE UTF-16 snapshots and computing SHA-256 digests in a single read/write pass.


Key Changes in 0.4.8

  • Streaming Blockbench, OBJ & Material Inputs: Replaces synchronous whole-String assembly (String.join) on audited ResourceProvider paths with owned UTF-16 file snapshots and bounded 8 KiB readers/streams (StreamedObjCache, ResourceTextSnapshot), preserving native parsing and mesh construction.
  • Single-Pass Snapshot Digest (engineering-055): Computes UTF-8 SHA-256 inside the FilterReader pipeline while writing the UTF-16 snapshot channel, eliminating the redundant full-channel disk read pass before parsing. Across six balanced AB/BA pairs on the real 65.26 MB 02a05_arknight.bbmodel input, median thread CPU time dropped by 19.24% (wall-clock elapsed −19.37%, 6/6 pairs improved).
  • Retained Core Memory Architecture (0.4.x / 0.3.x Foundation): Keeps lossless 36-byte Deflater.BEST_SPEED packed vertices (0 CPU StoredVertexData), PartType.DISPLAY-only transform retention, epoch-shared vehicle JSON trees, 96 MiB bounded text LRU, 2 + 64 bounded descriptor scheduling, and MixinInitialisationError startup rejection (exit code 1) on mismatched MTR JARs.

Memory Footprint: Official MTR 4.1.0-beta.2 Alone vs With Memory Saver

Configuration -Xmx Heap Cap Sampled Java Heap Windows Working Set / Private Startup & F3+T Outcome
Official MTR 4.1.0-beta.2 Alone (Fabric, legacy 16 packs) 12 GiB (OOM) 11.98 GiB before crash; 9.87 GiB partial shallow heap (76.64M StoredVertexData + 75.31M Color) Not recorded in early baseline OutOfMemoryError (exit -1) before parsing completed (histogram)
Official MTR + Memory Saver v0.3.0 (NF265, same legacy 16 packs) 3 GiB (-Xmx3072M) 2.812–2.896 GiB (0 CPU StoredVertexData) WS 3.86–4.77 GiB (lifetime 5.36 GiB) / Private 4.02–5.62 GiB Startup + F3+T reload passed (2/2 clients, v0.3.0)
Official MTR + Memory Saver 0.4.8 (NF248/NF265, native-catalogue 16 packs) 3 GiB (-Xmx3072M) Steady 2.30–2.31 GiB (NF248); 20-reload med 2.35 GiB / peak 2.87 GiB (NF265) Steady WS 4.25–4.31 GiB / Priv 4.46–4.47 GiB (NF248); 20-reload med WS 4.39 GiB / Priv 4.87 GiB (NF265) Startup + 20 / 20 consecutive F3+T reloads passed (0 OOM, exit 0, nf265-reload20)

Note: The no-companion baseline was measured on Fabric 0.20.1 + legacy 16 packs (OS process counters omitted; no unmodified NeoForge 21.1.265 no-companion baseline is sealed yet). Remember -Xmx3072M limits Java heap only; total Windows process memory remains ~4.25–5.86 GiB.


Validation Scope vs Known Limits

Verified on exact official-nf265 product JAR (920c1f83...)

  • Automated Suites: 106 Java unit/regression tests (including -Xmx64M 40 MiB BBModel/OBJ streaming vs String.join OOM controls), 682 historical script index checks, and 354 Python tool tests pass.
  • Packaged Client & Binary Mismatch Checks: Passes 69 actual packaged client checks (24 lifecycle + 18 strict-resource + 27 OBJ), full sixteen-pack startup (1,092 declarations / 1,091 distinct IDs), readable JFR summary, and fatal exit code 1 before registration when launched against an altered MTR JAR (nf265-packaged).
  • 20 Consecutive Full 16-Pack F3+T Reloads (3 GiB Heap): Passes 20 / 20 consecutive native F3+T reloads in a fresh -Xms512M -Xmx3072M G1 JVM (epochs 3–22, 19 intermediate dual-clock >= 60 s stable intervals, 14/14 post-20 samples over 65.003 s, zero OOM, clean Alt+F4 exit 0, readable 213.90 MB JFR), independently replayable via evidence/engineering-056/nf265-reload20/verify_sealed.py (nf265-reload20).

Not Yet Certified / Excluded Scope

  • Whole-Client Performance Unconfirmed: Earlier 12-JVM paired Spark trials on NF248 (943b3d45... vs v0.3.0) missed the performance gates (−0.282% steady private memory vs <= -10%; +9.840% loading time vs <= +5%), with concurrent host workloads leaving timing attribution inconclusive (practical-spark, outlier-sensitivity). The optimized 920c1f83... candidate has not yet completed a full 48-JVM controlled client benchmark.
  • Open Functional Gates: Independent display-frame timing (ETW permission error / empty PresentMon CSV), a 2-hour uninterrupted route, and exhaustive full-catalog vehicle visual/window/door/boarding checks remain pending.
  • Custom Performance v6 Excluded: Only official-nf265 is built and released for 0.4.8; v6 work remains paused.

Installation & Checksums

  1. Download mtr-memory-saver-official-nf265-0.4.8.zip from this release's assets below.
  2. Put mtr-memory-saver-official-nf265-0.4.8.jar in your client's mods/ folder next to NeoForge 21.1.265 and Official MTR 4.1.0-beta.2.
  3. Remove any older mtr-memory-saver / mtr_memory_sharing companion JAR first. Do not install two versions together. The test observer probe is excluded from the release bundle.
Artifact SHA-256
mtr-memory-saver-official-nf265-0.4.8.zip ebc68df4241c6fce5af8b5816966aba070bf3d4da8b8c80e3d24e34e832568c2
mtr-memory-saver-official-nf265-0.4.8.jar 920c1f833b6f173c7443ff5956493b779acfeceb293fa640817a459985db3f5b
Official MTR 4.1.0-beta.2 JAR ff2b753d03f2bcc000d053a9014e4250c8ba720daa9b69b6899fe7dc26be1efa

Links: Release Decision · Support Scope · Install & Rollback · Technical Principles (zh-CN)


简体中文说明

0.4.8 是面向 Minecraft 1.21.1 客户端、Java 21、NeoForge 21.1.265(精确版本) 与 官方 MTR 4.1.0-beta.2 的限定范围开发预发布版本。

本版本针对前期构建在连续重载时触发的堆耗尽问题(0.4.7 第 4 次重载 BBModel String.join OOM 与 0.4.8 初版第 7 次重载 OBJ String.join OOM),改用单一所有权的 DELETE_ON_CLOSE UTF-16 快照流式读取 .bbmodel、.obj 与 .mtl,并将 SHA-256 哈希计算合并进写盘读取的单遍循环中。

主要更新

  • BBModel / OBJ / MTL 全链路流式读取:在已审计的原生 ResourceProvider 入口以流式快照代替 String.join 整块字符串拼接(StreamedObjCache、ResourceTextSnapshot),保留原生解析与网格计算逻辑。
  • 单遍边写边算哈希优化(engineering-055):在 FilterReader 写入 UTF-16 通道的同一遍循环内计算 UTF-8 SHA-256,省去解析前的二次读盘步骤。以 65.26 MB 真实 02a05_arknight.bbmodel 运行 6 对均衡 AB/BA 微基准测得:NF265 线程 CPU 中位下降 19.24%,墙钟耗时下降 19.37%(6 对全部改善)。
  • 既有基础机制:保持 36 字节/顶点 Deflater.BEST_SPEED 无损压缩(0 个 CPU StoredVertexData)、仅留 PartType.DISPLAY 变换、同世代共享车辆配置 Gson 树、96 MiB 有界压缩文本 LRU、2 + 64 有界调度队列以及不匹配 MTR JAR 注册前退出码 1 拦截(MixinInitialisationError)。

内存占用对比:仅装官方 MTR 4.1.0-beta.2 vs 安装 Memory Saver

对比配置 -Xmx 堆上限 采样 Java 堆占用 Windows 工作集 / 私有提交 启动与 F3+T 热重载结果
仅装官方 MTR 4.1.0-beta.2(Fabric,旧 16 包) 12 GiB(OOM) 崩溃前 11.98 GiB;部分加载浅堆 9.87 GiB(含 76.64M 顶点 + 75.31M Color) 早期基线未采集 解析未完成即 OutOfMemoryError(退码 -1,堆直方图)
官方 MTR + Memory Saver v0.3.0(NF265,同旧 16 包) 3 GiB(-Xmx3072M) 2.812–2.896 GiB(0 个 CPU StoredVertexData) WS 3.86–4.77 GiB(高水位 5.36 GiB)/ Private 4.02–5.62 GiB 启动与 F3+T 通过(2/2 客户端,v0.3.0)
官方 MTR + Memory Saver 0.4.8(NF248/NF265,原生目录 16 包) 3 GiB(-Xmx3072M) 稳态 2.30–2.31 GiB(NF248);20 次重载中位 2.35 GiB / 峰值 2.87 GiB(NF265) 稳态 WS 4.25–4.31 GiB / Priv 4.46–4.47 GiB(NF248);20 次重载中位 WS 4.39 GiB / Priv 4.87 GiB(NF265) 启动与 20 / 20 次连续 F3+T 重载通过(0 OOM,退码 0,nf265-reload20)

说明:无伴侣基线采自 Fabric 0.20.1 + 旧 16 包(未采集 OS 进程内存,尚未单独封存不装伴侣模组的 NeoForge 21.1.265 基线)。-Xmx3072M 仅约束 Java 堆,含原生与显存开销后的 Windows 实际进程内存约为 4.25–5.86 GiB。

验证范围与未关闭限制

  • 已验证项(产物 JAR 920c1f83...):
    • 106 项 Java 回归测试(含 -Xmx64M 流式 vs String.join OOM 负对照)、682 份历史脚本校验与 354 项 Python 工具测试全部通过;
    • 实机 NF265 客户端通过 69 项打包检查(24 生命周期 + 18 严格资源 + 27 OBJ)、全 16 包启动(1,092 声明 / 1,091 去重 ID)、JFR 读取及假包注册前退出码 1 拒绝;
    • 在 -Xms512M -Xmx3072M(3 GiB 堆上限)下连续通过 20 / 20 次真实全 16 包 `F...
Read more