[PR #1358] [MERGED] Benchmarks: the desktop (RTX 4080), players' hardware breakdowns, memory in the estimate #3493

Closed
opened 2026-11-03 04:09:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/site-desktop-hardware


📝 Commits (1)

  • 0a450d2 Benchmarks: the desktop (RTX 4080), players' hardware breakdowns, memory in the estimate

📊 Changes

14 files changed (+3425 additions, -53 deletions)

View changed files

📝 website/build.mjs (+2 -2)
➕ website/data/benchmarks/desktop/horizon-desktop-rd12.json (+774 -0)
➕ website/data/benchmarks/desktop/horizon-desktop-rd32.json (+774 -0)
➕ website/data/benchmarks/desktop/vanilla-desktop-rd12.json (+723 -0)
➕ website/data/benchmarks/desktop/vanilla-desktop-rd32.json (+723 -0)
📝 website/data/benchmarks/fleet.json (+27 -0)
📝 website/public/benchmarks.json (+206 -1)
📝 website/src/bench.js (+34 -1)
📝 website/src/benchmarks-page.js (+27 -6)
📝 website/src/benchmarks.html (+11 -5)
📝 website/src/estimate.js (+38 -5)
📝 website/src/estimate.test.mjs (+37 -0)
📝 website/src/hardware.js (+47 -32)
📝 website/src/style.css (+2 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

The desktop's benchmark, plus the site side of players' hardware data (#1337). This PR stands alone: the page reads breakdowns when the server sends them and shows nothing extra without them.

The desktop (RTX 4080, i7-13700KF), measured 2026-10-23

  • Build: Horizon v2026.10.22.13, the Alpha release tarball (checksum matches the release). Vanilla 26.3 (Fabric loader only, to drive it). tools/perf_bench.py: render distance 12 and 32, 3 runs each, VSync off, no cap, 1280x720, HORIZON_TELEMETRY_URL=off.
  • Where it ran: never on Ludovic's screen. Both games drew to a headless sway rendering on the RTX 4080 (GLES on renderD128, not pixman), with a 1280x720 output so both windows tile to exactly that. Horizon used Wayland/Vulkan; vanilla used Xwayland, also on Vulkan.
  • Caveat: other jobs were running (another session's parity/vanilla JVMs, the KDE file indexer). The 1-minute load average was 18 to 25 on 24 threads during every run, and the note on the page says so. A rerun on a quiet machine would be cleaner, especially for Horizon at 32, which is CPU-bound (CPU 1.1 ms against GPU 0.3 ms per frame).
RD 12 Horizon RD 12 Java RD 32 Horizon RD 32 Java
Average FPS 2,993 2,600 672 849
1% low FPS 311 312 89 112
p95 frame time 0.5 ms 0.5 ms 3.6 ms 3.1 ms
Start to in-world 18.0 s 30.5 s 9.0 s 58.6 s
Chunk load after a teleport 1.8 s 10.8 s 4.7 s 31.8 s
Memory while playing 1.2 GB 2.9 GB 1.6 GB 3.4 GB

At render distance 32 on this machine, Java is ahead on average FPS, 1% lows and p95, and on the village and forest flights. The page lists all of it under "Where Java is ahead". Raw reports and logs: ~/code/horizon-parity/shots/desktop-bench-2026-10-23/.

perf_bench.py records the checkout's commit in app.commit, even with --build pointing at a release tarball. The two Horizon reports here are corrected by hand to the release's commit (07e71797).

Nearby GPUs (rechecked)

With the desktop measured, the picker's base for high-end NVIDIA/AMD cards is now the desktop, no longer the Mac mini (capped at 144 Hz) or the ThinkPad:

  • RTX 4090 with an i7-13700K: Horizon 2,544–5,315 FPS at RD 12. Horizon is CPU-bound there, so the GPU factor 1.54 doesn't move the central value.
  • RTX 4070 at RD 32: Horizon 370–773, Java 468–976.
  • RX 7900 XTX with a 7800X3D at RD 12: 2,480–4,472.

Entry cards paired with older CPUs (RTX 4060 with a 5600X, RTX 3060 with a 12400) still take the Mac mini as their nearest base, so they show "at least" floors, as before.

Players' hardware on /benchmarks

  • Each players' group shows its hardware split under its badge, for example "16 GB RAM (3) · 12 GB graphics memory (5) · Windows (4)".
  • A new "Players' hardware" section reads /v1/aggregate?days=30 breakdowns: installs, hours, and mean median and p99 frame time for each RAM, VRAM, drive, system and GPU-kind class. It stays hidden until the server has a class with at least 3 installs.
  • The players' section text says what is published (coarse classes, ≥3 installs) and what isn't.

Memory in the estimate

  • The picker gets an optional Memory field (8/16/32/64+ GB).
  • Each GPU in hardware.js gets vram_gb (0 = shared), which the spec table now shows.
  • When a players' group has breakdowns, a base whose installs don't include the picked RAM class or the GPU's VRAM class counts as further away (+0.2 in the log distance, about a 20% speed gap per class). The result then says what that group's players had.
  • With a RAM size picked, a note appears when either game's peak memory goes over 40% of it. For example, an RTX 4070 + 13700K + 8 GB at RD 32 gives "Java used up to 3.4 GB here…".
  • The "How the estimates work" section explains all of this.

Checks

  • npm test: 17 pass, including new tests for memory-class steering and notes, breakdown wording, and the hardware table showing only with data.
  • node build.mjs builds 10 benchmark rows.
  • Rendered locally with sample breakdowns injected into the page only; nothing was sent anywhere.
pr_ready

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 92b0ee134, 13 s)

Check Result
Scope ⚠️ 14 files, +3425 −53; 3478 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ no harness affected
Label skip-release

🤖 Generated with Claude Code


🔄 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/1358 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/site-desktop-hardware` --- ### 📝 Commits (1) - [`0a450d2`](https://github.com/horizon-rust/horizon/commit/0a450d2963e8b0d5a6bc7e5d3709fcbc3fe9fdf8) Benchmarks: the desktop (RTX 4080), players' hardware breakdowns, memory in the estimate ### 📊 Changes **14 files changed** (+3425 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `website/build.mjs` (+2 -2) ➕ `website/data/benchmarks/desktop/horizon-desktop-rd12.json` (+774 -0) ➕ `website/data/benchmarks/desktop/horizon-desktop-rd32.json` (+774 -0) ➕ `website/data/benchmarks/desktop/vanilla-desktop-rd12.json` (+723 -0) ➕ `website/data/benchmarks/desktop/vanilla-desktop-rd32.json` (+723 -0) 📝 `website/data/benchmarks/fleet.json` (+27 -0) 📝 `website/public/benchmarks.json` (+206 -1) 📝 `website/src/bench.js` (+34 -1) 📝 `website/src/benchmarks-page.js` (+27 -6) 📝 `website/src/benchmarks.html` (+11 -5) 📝 `website/src/estimate.js` (+38 -5) 📝 `website/src/estimate.test.mjs` (+37 -0) 📝 `website/src/hardware.js` (+47 -32) 📝 `website/src/style.css` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The desktop's benchmark, plus the site side of players' hardware data (#1337). This PR stands alone: the page reads `breakdowns` when the server sends them and shows nothing extra without them. ## The desktop (RTX 4080, i7-13700KF), measured 2026-10-23 - **Build**: Horizon **v2026.10.22.13**, the Alpha release tarball (checksum matches the release). Vanilla 26.3 (Fabric loader only, to drive it). `tools/perf_bench.py`: render distance 12 and 32, 3 runs each, VSync off, no cap, 1280x720, `HORIZON_TELEMETRY_URL=off`. - **Where it ran**: never on Ludovic's screen. Both games drew to a headless sway rendering on the RTX 4080 (GLES on `renderD128`, not pixman), with a 1280x720 output so both windows tile to exactly that. Horizon used Wayland/Vulkan; vanilla used Xwayland, also on Vulkan. - **Caveat**: other jobs were running (another session's parity/vanilla JVMs, the KDE file indexer). The 1-minute load average was 18 to 25 on 24 threads during every run, and the note on the page says so. A rerun on a quiet machine would be cleaner, especially for Horizon at 32, which is CPU-bound (CPU 1.1 ms against GPU 0.3 ms per frame). | | RD 12 Horizon | RD 12 Java | RD 32 Horizon | RD 32 Java | |---|---|---|---|---| | Average FPS | 2,993 | 2,600 | 672 | **849** | | 1% low FPS | 311 | 312 | 89 | **112** | | p95 frame time | 0.5 ms | 0.5 ms | 3.6 ms | **3.1 ms** | | Start to in-world | **18.0 s** | 30.5 s | **9.0 s** | 58.6 s | | Chunk load after a teleport | **1.8 s** | 10.8 s | **4.7 s** | 31.8 s | | Memory while playing | **1.2 GB** | 2.9 GB | **1.6 GB** | 3.4 GB | At render distance 32 on this machine, Java is ahead on average FPS, 1% lows and p95, and on the village and forest flights. The page lists all of it under "Where Java is ahead". Raw reports and logs: `~/code/horizon-parity/shots/desktop-bench-2026-10-23/`. `perf_bench.py` records the checkout's commit in `app.commit`, even with `--build` pointing at a release tarball. The two Horizon reports here are corrected by hand to the release's commit (07e71797). ## Nearby GPUs (rechecked) With the desktop measured, the picker's base for high-end NVIDIA/AMD cards is now the desktop, no longer the Mac mini (capped at 144 Hz) or the ThinkPad: - RTX 4090 with an i7-13700K: Horizon 2,544–5,315 FPS at RD 12. Horizon is CPU-bound there, so the GPU factor 1.54 doesn't move the central value. - RTX 4070 at RD 32: Horizon 370–773, Java 468–976. - RX 7900 XTX with a 7800X3D at RD 12: 2,480–4,472. Entry cards paired with older CPUs (RTX 4060 with a 5600X, RTX 3060 with a 12400) still take the Mac mini as their nearest base, so they show "at least" floors, as before. ## Players' hardware on /benchmarks - Each players' group shows its hardware split under its badge, for example "16 GB RAM (3) · 12 GB graphics memory (5) · Windows (4)". - A new "Players' hardware" section reads `/v1/aggregate?days=30` `breakdowns`: installs, hours, and mean median and p99 frame time for each RAM, VRAM, drive, system and GPU-kind class. It stays hidden until the server has a class with at least 3 installs. - The players' section text says what is published (coarse classes, ≥3 installs) and what isn't. ## Memory in the estimate - The picker gets an optional **Memory** field (8/16/32/64+ GB). - Each GPU in `hardware.js` gets `vram_gb` (0 = shared), which the spec table now shows. - When a players' group has breakdowns, a base whose installs don't include the picked RAM class or the GPU's VRAM class counts as further away (+0.2 in the log distance, about a 20% speed gap per class). The result then says what that group's players had. - With a RAM size picked, a note appears when either game's peak memory goes over 40% of it. For example, an RTX 4070 + 13700K + 8 GB at RD 32 gives "Java used up to 3.4 GB here…". - The "How the estimates work" section explains all of this. ## Checks - `npm test`: 17 pass, including new tests for memory-class steering and notes, breakdown wording, and the hardware table showing only with data. - `node build.mjs` builds 10 benchmark rows. - Rendered locally with sample breakdowns injected into the page only; nothing was sent anywhere. <details><summary>pr_ready</summary> **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 92b0ee134, 13 s) | Check | Result | | --- | --- | | Scope | ⚠️ 14 files, +3425 −53; 3478 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ no harness affected | | Label | `skip-release` | </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:55 +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#3493
No description provided.