[PR #33] [MERGED] Capture shared graphics context in integrated-server tick reports #2283

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

📋 Pull Request Information

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

Base: main ← Head: integrated-tick-context


📝 Commits (2)

  • 357cc90 Capture shared client graphics in integrated-server reports
  • f485ee5 Check actual backend context independently of renderer preference

📊 Changes

16 files changed (+286 additions, -13 deletions)

View changed files

📝 .github/workflows/ci.yml (+6 -0)
📝 README.md (+3 -1)
📝 docs/mac-first-test.md (+5 -5)
➕ docs/server-graphics-context.md (+34 -0)
📝 mods/horizon-lab/src/main/java/dev/horizonlab/HorizonLab.java (+8 -1)
📝 mods/horizon-lab/src/main/java/dev/horizonlab/client/HorizonClient.java (+1 -1)
➕ mods/horizon-lab/src/main/java/dev/horizonlab/metrics/ServerContext.java (+27 -0)
📝 mods/horizon-lab/src/main/resources/fabric.mod.json (+1 -1)
📝 mods/horizon-lab/src/test/java/dev/horizonlab/metrics/MetricsTest.java (+10 -0)
➕ mods/horizon-lab/src/test/java/dev/horizonlab/metrics/ServerGraphicsIntegration.java (+69 -0)
📝 packs/mods.lock.json (+1 -1)
📝 tests/test_packs.py (+20 -0)
📝 tools/Compare-Benchmarks.html (+13 -1)
📝 tools/build_mod.py (+1 -1)
📝 tools/compare_benchmarks.py (+17 -1)
➕ tools/test_server_graphics.py (+70 -0)

📄 Description

Integrated-server tick reports previously omitted the graphics backend competing for the same process CPU budget. Version 0.21 copies GPU/backend/driver from the client recording-start context, labels integrated/dedicated/unknown runtime kind, and preserves the original recording API for existing callers. Server ticks never query graphics APIs. The offline viewer and CLI flag different backends/runtime kinds and warn when old reports lack context.

The private fixture starts an ordinary 10-second recording through the client/F8 recorder, compares both reports against the actual device, saves the world and exits without simulation changes. It is compiled on Windows and run against the actual game-selected backend on Linux and hosted macOS. Fixture classes remain outside production downloads. Rendering/gameplay defaults are unchanged; this is a measurement correctness fix, not a performance gain.

Validation: 50 offline tests, production mod build, immutable allowlist snapshot checks, whitespace and public-tree checks pass locally. Fresh applied OpenGL and Vulkan runs pass with correct context, saved worlds and clean exits. The first private OpenGL fixture emitted twice during shutdown; its guard was fixed and that outcome was excluded. Real tick JSON+CSV pairs in the offline viewer flag only backend and driver differences, retain legacy unknown warnings, and pass desktop/mobile layout and chart checks. Final-head Windows, Linux and macOS CI passes (run 37201452872), including live Mac/Linux integrated-server context checks. The independent hosted Mac production JAR is byte-identical to the local build. The first Linux check passed device/report matching but rejected renderer fallback; the default metadata check now accepts the actual device, while explicit backend experiments still reject fallback. Start snapshots do not verify later graphics changes or full client workload equivalence; physical M2 Pro performance remains unmeasured.


🔄 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/33 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/4/2026 **Status:** ✅ Merged **Merged:** 10/4/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `integrated-tick-context` --- ### 📝 Commits (2) - [`357cc90`](https://github.com/horizon-rust/horizon/commit/357cc903266b26372d13d938b316e3e03db08800) Capture shared client graphics in integrated-server reports - [`f485ee5`](https://github.com/horizon-rust/horizon/commit/f485ee53cc4e3494b50393fb4ceaa72f89f36b76) Check actual backend context independently of renderer preference ### 📊 Changes **16 files changed** (+286 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+6 -0) 📝 `README.md` (+3 -1) 📝 `docs/mac-first-test.md` (+5 -5) ➕ `docs/server-graphics-context.md` (+34 -0) 📝 `mods/horizon-lab/src/main/java/dev/horizonlab/HorizonLab.java` (+8 -1) 📝 `mods/horizon-lab/src/main/java/dev/horizonlab/client/HorizonClient.java` (+1 -1) ➕ `mods/horizon-lab/src/main/java/dev/horizonlab/metrics/ServerContext.java` (+27 -0) 📝 `mods/horizon-lab/src/main/resources/fabric.mod.json` (+1 -1) 📝 `mods/horizon-lab/src/test/java/dev/horizonlab/metrics/MetricsTest.java` (+10 -0) ➕ `mods/horizon-lab/src/test/java/dev/horizonlab/metrics/ServerGraphicsIntegration.java` (+69 -0) 📝 `packs/mods.lock.json` (+1 -1) 📝 `tests/test_packs.py` (+20 -0) 📝 `tools/Compare-Benchmarks.html` (+13 -1) 📝 `tools/build_mod.py` (+1 -1) 📝 `tools/compare_benchmarks.py` (+17 -1) ➕ `tools/test_server_graphics.py` (+70 -0) </details> ### 📄 Description Integrated-server tick reports previously omitted the graphics backend competing for the same process CPU budget. Version 0.21 copies GPU/backend/driver from the client recording-start context, labels integrated/dedicated/unknown runtime kind, and preserves the original recording API for existing callers. Server ticks never query graphics APIs. The offline viewer and CLI flag different backends/runtime kinds and warn when old reports lack context. The private fixture starts an ordinary 10-second recording through the client/F8 recorder, compares both reports against the actual device, saves the world and exits without simulation changes. It is compiled on Windows and run against the actual game-selected backend on Linux and hosted macOS. Fixture classes remain outside production downloads. Rendering/gameplay defaults are unchanged; this is a measurement correctness fix, not a performance gain. Validation: 50 offline tests, production mod build, immutable allowlist snapshot checks, whitespace and public-tree checks pass locally. Fresh applied OpenGL and Vulkan runs pass with correct context, saved worlds and clean exits. The first private OpenGL fixture emitted twice during shutdown; its guard was fixed and that outcome was excluded. Real tick JSON+CSV pairs in the offline viewer flag only backend and driver differences, retain legacy unknown warnings, and pass desktop/mobile layout and chart checks. Final-head Windows, Linux and macOS CI passes (run 37201452872), including live Mac/Linux integrated-server context checks. The independent hosted Mac production JAR is byte-identical to the local build. The first Linux check passed device/report matching but rejected renderer fallback; the default metadata check now accepts the actual device, while explicit backend experiments still reject fallback. Start snapshots do not verify later graphics changes or full client workload equivalence; physical M2 Pro performance remains unmeasured. --- <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:36 +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#2283
No description provided.