[PR #8] [MERGED] Preserve fresh render budgets and measure compact Java headers #2258

Closed
opened 2026-11-02 15:54:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/8
Author: @ludovic111
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @ludovic111

Base: main ← Head: compact-header-measurements


📝 Commits (2)

  • 4bf82ef Preserve fresh render budgets and measure compact Java headers
  • d61fa87 Record cross-platform header allocations and final runtime validation

📊 Changes

22 files changed (+566 additions, -10 deletions)

View changed files

📝 .github/workflows/ci.yml (+3 -0)
📝 README.md (+6 -1)
➕ benchmarks/object-headers-2026-10-03/macos-26.txt (+104 -0)
➕ benchmarks/object-headers-2026-10-03/ubuntu-latest.txt (+104 -0)
➕ benchmarks/object-headers-2026-10-03/windows-latest.txt (+104 -0)
➕ docs/compact-headers.md (+73 -0)
📝 docs/playable-validation.md (+15 -0)
📝 docs/server-quickstart.txt (+6 -1)
📝 mods/horizon-lab/src/main/java/dev/horizonlab/metrics/Recording.java (+9 -0)
📝 mods/horizon-lab/src/main/resources/fabric.mod.json (+1 -1)
📝 mods/horizon-lab/src/test/java/dev/horizonlab/metrics/MetricsTest.java (+6 -0)
➕ mods/horizon-lab/src/test/java/dev/horizonlab/metrics/ObjectHeaderBenchmark.java (+59 -0)
📝 packs/START-HERE.txt (+12 -0)
📝 packs/mods.lock.json (+1 -1)
📝 tests/test_packs.py (+14 -0)
📝 tools/Compare-Benchmarks.html (+5 -0)
📝 tools/build_mod.py (+31 -2)
📝 tools/build_pack.py (+1 -1)
📝 tools/build_release.py (+1 -1)
📝 tools/compare_benchmarks.py (+5 -0)

...and 2 more files

📄 Description

Fresh Minecraft 26.3 instances applied the default Fancy preset at startup, overriding the pack's chosen render distance. Explicitly select the custom preset to retain 12 full-detail chunks (8 in low-memory), with simulation distance unchanged.

Capture actual compact-object-header and garbage-collector settings in benchmark reports and the offline viewer. Add optional process-local Java 25 header flags and an isolated allocation probe using actual publisher types, separate off/on JVMs, excluded warm-up/reference storage and value checks.

Validation: original mod, metrics with compact headers, native-reader, pack and 20 Python checks passed on Linux, Windows and Apple Silicon macOS. All platforms measured matching object layouts; raw results are committed. The exact final JAR completed a 120-second game capture with render/simulation 12/12, header flag true, collector names and RSS; 793 frames and 2,409 ticks match CSV summaries. Offline viewer checks passed. Object-layout savings and software-rendered compatibility are not claimed as whole-game RAM or M2 FPS gains.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/8 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `compact-header-measurements` --- ### 📝 Commits (2) - [`4bf82ef`](https://github.com/horizon-rust/horizon/commit/4bf82ef5307547f76ec3c4195bfa30f241807454) Preserve fresh render budgets and measure compact Java headers - [`d61fa87`](https://github.com/horizon-rust/horizon/commit/d61fa875e3c121cf9f26fe278fd825947b818992) Record cross-platform header allocations and final runtime validation ### 📊 Changes **22 files changed** (+566 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+3 -0) 📝 `README.md` (+6 -1) ➕ `benchmarks/object-headers-2026-10-03/macos-26.txt` (+104 -0) ➕ `benchmarks/object-headers-2026-10-03/ubuntu-latest.txt` (+104 -0) ➕ `benchmarks/object-headers-2026-10-03/windows-latest.txt` (+104 -0) ➕ `docs/compact-headers.md` (+73 -0) 📝 `docs/playable-validation.md` (+15 -0) 📝 `docs/server-quickstart.txt` (+6 -1) 📝 `mods/horizon-lab/src/main/java/dev/horizonlab/metrics/Recording.java` (+9 -0) 📝 `mods/horizon-lab/src/main/resources/fabric.mod.json` (+1 -1) 📝 `mods/horizon-lab/src/test/java/dev/horizonlab/metrics/MetricsTest.java` (+6 -0) ➕ `mods/horizon-lab/src/test/java/dev/horizonlab/metrics/ObjectHeaderBenchmark.java` (+59 -0) 📝 `packs/START-HERE.txt` (+12 -0) 📝 `packs/mods.lock.json` (+1 -1) 📝 `tests/test_packs.py` (+14 -0) 📝 `tools/Compare-Benchmarks.html` (+5 -0) 📝 `tools/build_mod.py` (+31 -2) 📝 `tools/build_pack.py` (+1 -1) 📝 `tools/build_release.py` (+1 -1) 📝 `tools/compare_benchmarks.py` (+5 -0) _...and 2 more files_ </details> ### 📄 Description Fresh Minecraft 26.3 instances applied the default Fancy preset at startup, overriding the pack's chosen render distance. Explicitly select the custom preset to retain 12 full-detail chunks (8 in low-memory), with simulation distance unchanged. Capture actual compact-object-header and garbage-collector settings in benchmark reports and the offline viewer. Add optional process-local Java 25 header flags and an isolated allocation probe using actual publisher types, separate off/on JVMs, excluded warm-up/reference storage and value checks. Validation: original mod, metrics with compact headers, native-reader, pack and 20 Python checks passed on Linux, Windows and Apple Silicon macOS. All platforms measured matching object layouts; raw results are committed. The exact final JAR completed a 120-second game capture with render/simulation 12/12, header flag true, collector names and RSS; 793 frames and 2,409 ticks match CSV summaries. Offline viewer checks passed. Object-layout savings and software-rendered compatibility are not claimed as whole-game RAM or M2 FPS gains. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:54:26 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2258
No description provided.