[PR #1274] [MERGED] Website: Releases page, Recently added, Benchmarks against Java #3474

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

📋 Pull Request Information

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

Base: main ← Head: feat/site-releases-bench


📝 Commits (5)

  • aae60c1 Website: a Releases page, "Recently added" on the home page, and a Benchmarks page
  • fd9e6a7 Benchmarks: the Mac mini's runs, Horizon v2026.10.22.04 against vanilla 26.3
  • 63d59b2 Benchmarks: the ThinkPad's runs, and Java's per-scene wins
  • e5fbba2 Releases: a title made of issue numbers reads its line from the notes
  • baf013d Merge remote-tracking branch 'origin/main' into feat/site-releases-bench

📊 Changes

32 files changed (+6122 additions, -170 deletions)

View changed files

📝 website/Caddyfile (+4 -2)
📝 website/README.md (+34 -8)
📝 website/build.mjs (+96 -18)
➕ website/data/benchmarks/fleet.json (+46 -0)
➕ website/data/benchmarks/macmini/horizon-macmini-rd12.json (+758 -0)
➕ website/data/benchmarks/macmini/horizon-macmini-rd32.json (+758 -0)
➕ website/data/benchmarks/macmini/vanilla-macmini-rd12.json (+707 -0)
➕ website/data/benchmarks/macmini/vanilla-macmini-rd32.json (+707 -0)
➕ website/data/benchmarks/thinkpad/horizon-thinkpad-rd12.json (+606 -0)
➕ website/data/benchmarks/thinkpad/vanilla-thinkpad-r1-rd12.json (+371 -0)
➕ website/data/benchmarks/thinkpad/vanilla-thinkpad-r2-rd12.json (+371 -0)
📝 website/docs/performance.md (+1 -1)
📝 website/package.json (+1 -1)
➕ website/public/benchmarks.json (+318 -0)
➕ website/scripts/benchmarks.mjs (+196 -0)
➕ website/scripts/benchmarks.test.mjs (+67 -0)
➕ website/scripts/fixtures/benchmarks/README.md (+10 -0)
➕ website/scripts/fixtures/benchmarks/expected.json (+16 -0)
➕ website/scripts/fixtures/benchmarks/items.jsonl (+14 -0)
➕ website/src/bench.js (+134 -0)

...and 12 more files

📄 Description

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

Stacked on #1259 (feat/website-blocks): it uses the Blocks look, so the base is that branch. Once #1259 merges, retarget this to main.

What

  • /releases: one page with every game and launcher release, newest first. Each is marked Stable / Alpha / Launcher, with a filter. The newest three are open. Each release shows what it added and fixed, then the full notes, its downloads with their sizes, and a GitHub link. The list is baked at build time; when GitHub has a newer release, the page fetches the full list again. /releases#release-<tag> opens that release. There are no per-release pages.
  • Home: "Recently added" replaces the patch-notes block: the last five releases, one line each, plus three highlights. The highlights are the newest "New" items, by PR number.
  • /benchmarks:
    • Measured by us: Horizon vs vanilla Java Edition 26.3 on our machines. Average FPS, 1% lows, p95 frame time, start to world, chunk load after a teleport, steady and peak memory, at render distance 12 and 32. Each row gets "Nx faster/slower", and the page says where Java is ahead.
    • Picker: choose a GPU and a CPU. You get a measurement when one exists (ours, or a players' group). Otherwise you get an estimate, marked as such, shown as a range, and scaled from the nearest measured machine with our own spec table (TFLOPS, bandwidth, single-thread score). The method and the table are on the page.
    • From players: read live from https://telemetry.playhorizon.dev/v1/benchmarks/summary (3 s timeout). If that fails, the page shows the baked public/benchmarks.json. Groups of 3+ installs only; no install ID.
  • website/scripts/benchmarks.mjs builds public/benchmarks.json from our raw reports (data/benchmarks/fleet.json). The rules are the same as the server's summary endpoint (phase 2 PR, coming next), and both test against the same fixtures (scripts/fixtures/benchmarks/).
  • Releases and Benchmarks are in the nav and footer. Docs links are unchanged; docs/performance.md now links /benchmarks. The CSP allows the telemetry host, and the Caddyfile has the rewrites.
  • Fix: Pixelify Sans' "fi" ligature turned "fixes" into "Axes", so common ligatures are now off.
  • Release titles made of issue numbers and "fix" (the release tool named 2026.10.22.07 "#1255, mob pushes, fix, #1222") now take their line from the notes instead.

Numbers (Mac mini M4 Pro, Horizon v2026.10.22.04 vs vanilla 26.3, 3 runs each, 1280x720, VSync off)

RD 12 Horizon RD 12 Java RD 32 Horizon RD 32 Java
Avg FPS 144 (display cap) 123 144 (display cap) 43
1% low 97 29 109 8
p95 frame 7.7 ms 17 ms 7.7 ms 88 ms
Start to world 11 s 22 s 16 s 66 s
Chunk load 9.4 s 10 s 16 s 51 s
RAM steady / peak 1.2 / 1.3 GB 2.2 / 2.4 GB 1.8 / 2.2 GB 2.9 / 2.9 GB
  • On macOS, Horizon's average FPS is capped at the 144 Hz display, even with VSync off: it presents in step with the display. The page marks it "(cap)", says "at least" in comparisons, and the estimates use it only as a floor. That is a finding about the game, not the site.
  • The Mac mini was loaded by CI and simulators during the runs (1-min load 20 to 56). That's recorded in the reports and the page says so.

ThinkPad (i7-7500U, HD Graphics 620, Linux/Mesa 26.1.8; headless, so both games drew to a GPU compositor in a 1280x720 window). Render distance 12: Horizon ran 2 flights per scene, vanilla ran 2 games.

Horizon Java
Avg FPS 209 126
1% low 39 29
p95 frame 14 ms 17 ms
Start to world 51 s 68 s
Chunk load 60 s 47 s (Java ahead)
RAM steady / peak 797 / 986 MB 2.0 / 2.1 GB
  • Java is also faster over the mountain scene: 205 vs 111 FPS. The page lists both under "Where Java is ahead"; per-scene wins are now detected automatically.
  • RD 32 is not published for the ThinkPad. With the default 5 minutes, neither game loaded the spawn. Given 25 minutes, Horizon reached the flights but kept only ~900–1,400 chunk columns resident instead of the ~3,200 a full view needs: the count went down while the player stood still, with nothing pending. The two games wouldn't draw the same world, so the page says so instead of showing numbers. That's a finding for the perf team: at RD 32 on a weak machine, Horizon's effective view shrinks.
  • Desktop (RTX 4080) not measured: it's in daily use. The page says so and shows its last Horizon-only figures as non-comparable.

The benchmark needed a fix to tools/perf_bench.py, now PR #1275. Right after a teleport, Horizon reports steady counts with nothing queued for over a second before it starts loading, so wait_loaded stopped the clock with 0–3 sections meshed. The fix requires the counts to change once, and requires 80% of the view circle to be resident. The fix is in #1275.

How tested

website$ npm test            # 15 pass (estimate, versions, benchmarks aggregation incl. shared fixtures)
website$ node build.mjs      # built dist/: 149 releases (125 game), 6 benchmark rows, 11 docs pages
Playwright shots, dark + light, 1440 + 390: home "Recently added", /releases, one release opened by hash,
/benchmarks, the picker. No page errors. The only horizontal scroll is the home page at 390 px, from #1259's
.tabs row (433 px wide), not from this PR.

The console shows ERR_NAME_NOT_RESOLVED for telemetry.playhorizon.dev until that DNS exists; the fallback to the baked file works. Raw reports and logs are in ~/code/horizon-parity/shots/web-releases-bench-1/reports/, and the screenshots are in shots-final/ there.

Needs Ludovic

  • Nothing to decide. Label skip-release (site only).

🤖 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/1274 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/site-releases-bench` --- ### 📝 Commits (5) - [`aae60c1`](https://github.com/horizon-rust/horizon/commit/aae60c16bac995eeb323c243e60f7c68fd0c8770) Website: a Releases page, "Recently added" on the home page, and a Benchmarks page - [`fd9e6a7`](https://github.com/horizon-rust/horizon/commit/fd9e6a7e78d98be344737c164b04ab9aa8d47032) Benchmarks: the Mac mini's runs, Horizon v2026.10.22.04 against vanilla 26.3 - [`63d59b2`](https://github.com/horizon-rust/horizon/commit/63d59b26cf1f16e1a0b3d725501b99164742e9a5) Benchmarks: the ThinkPad's runs, and Java's per-scene wins - [`e5fbba2`](https://github.com/horizon-rust/horizon/commit/e5fbba281cba0d239ee111e0d7a7d26c0d85f27c) Releases: a title made of issue numbers reads its line from the notes - [`baf013d`](https://github.com/horizon-rust/horizon/commit/baf013dd3f084adec204c6797a4728350691ed9c) Merge remote-tracking branch 'origin/main' into feat/site-releases-bench ### 📊 Changes **32 files changed** (+6122 additions, -170 deletions) <details> <summary>View changed files</summary> 📝 `website/Caddyfile` (+4 -2) 📝 `website/README.md` (+34 -8) 📝 `website/build.mjs` (+96 -18) ➕ `website/data/benchmarks/fleet.json` (+46 -0) ➕ `website/data/benchmarks/macmini/horizon-macmini-rd12.json` (+758 -0) ➕ `website/data/benchmarks/macmini/horizon-macmini-rd32.json` (+758 -0) ➕ `website/data/benchmarks/macmini/vanilla-macmini-rd12.json` (+707 -0) ➕ `website/data/benchmarks/macmini/vanilla-macmini-rd32.json` (+707 -0) ➕ `website/data/benchmarks/thinkpad/horizon-thinkpad-rd12.json` (+606 -0) ➕ `website/data/benchmarks/thinkpad/vanilla-thinkpad-r1-rd12.json` (+371 -0) ➕ `website/data/benchmarks/thinkpad/vanilla-thinkpad-r2-rd12.json` (+371 -0) 📝 `website/docs/performance.md` (+1 -1) 📝 `website/package.json` (+1 -1) ➕ `website/public/benchmarks.json` (+318 -0) ➕ `website/scripts/benchmarks.mjs` (+196 -0) ➕ `website/scripts/benchmarks.test.mjs` (+67 -0) ➕ `website/scripts/fixtures/benchmarks/README.md` (+10 -0) ➕ `website/scripts/fixtures/benchmarks/expected.json` (+16 -0) ➕ `website/scripts/fixtures/benchmarks/items.jsonl` (+14 -0) ➕ `website/src/bench.js` (+134 -0) _...and 12 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. **Stacked on #1259 (feat/website-blocks)**: it uses the Blocks look, so the base is that branch. Once #1259 merges, retarget this to `main`. ## What - **`/releases`**: one page with every game and launcher release, newest first. Each is marked Stable / Alpha / Launcher, with a filter. The newest three are open. Each release shows what it added and fixed, then the full notes, its downloads with their sizes, and a GitHub link. The list is baked at build time; when GitHub has a newer release, the page fetches the full list again. `/releases#release-<tag>` opens that release. There are no per-release pages. - **Home**: "Recently added" replaces the patch-notes block: the last five releases, one line each, plus three highlights. The highlights are the newest "New" items, by PR number. - **`/benchmarks`**: - **Measured by us**: Horizon vs vanilla Java Edition 26.3 on our machines. Average FPS, 1% lows, p95 frame time, start to world, chunk load after a teleport, steady and peak memory, at render distance 12 and 32. Each row gets "Nx faster/slower", and the page says where Java is ahead. - **Picker**: choose a GPU and a CPU. You get a measurement when one exists (ours, or a players' group). Otherwise you get an **estimate**, marked as such, shown as a range, and scaled from the nearest measured machine with our own spec table (TFLOPS, bandwidth, single-thread score). The method and the table are on the page. - **From players**: read live from `https://telemetry.playhorizon.dev/v1/benchmarks/summary` (3 s timeout). If that fails, the page shows the baked `public/benchmarks.json`. Groups of 3+ installs only; no install ID. - `website/scripts/benchmarks.mjs` builds `public/benchmarks.json` from our raw reports (`data/benchmarks/fleet.json`). The rules are the same as the server's summary endpoint (phase 2 PR, coming next), and both test against the same fixtures (`scripts/fixtures/benchmarks/`). - Releases and Benchmarks are in the nav and footer. Docs links are unchanged; `docs/performance.md` now links `/benchmarks`. The CSP allows the telemetry host, and the Caddyfile has the rewrites. - Fix: Pixelify Sans' "fi" ligature turned "fixes" into "Axes", so common ligatures are now off. - Release titles made of issue numbers and "fix" (the release tool named 2026.10.22.07 "#1255, mob pushes, fix, #1222") now take their line from the notes instead. ## Numbers (Mac mini M4 Pro, Horizon v2026.10.22.04 vs vanilla 26.3, 3 runs each, 1280x720, VSync off) | | RD 12 Horizon | RD 12 Java | RD 32 Horizon | RD 32 Java | |---|---|---|---|---| | Avg FPS | 144 (display cap) | 123 | 144 (display cap) | 43 | | 1% low | 97 | 29 | 109 | 8 | | p95 frame | 7.7 ms | 17 ms | 7.7 ms | 88 ms | | Start to world | 11 s | 22 s | 16 s | 66 s | | Chunk load | 9.4 s | 10 s | 16 s | 51 s | | RAM steady / peak | 1.2 / 1.3 GB | 2.2 / 2.4 GB | 1.8 / 2.2 GB | 2.9 / 2.9 GB | - **On macOS, Horizon's average FPS is capped at the 144 Hz display**, even with VSync off: it presents in step with the display. The page marks it "(cap)", says "at least" in comparisons, and the estimates use it only as a floor. That is a finding about the game, not the site. - The Mac mini was loaded by CI and simulators during the runs (1-min load 20 to 56). That's recorded in the reports and the page says so. **ThinkPad** (i7-7500U, HD Graphics 620, Linux/Mesa 26.1.8; headless, so both games drew to a GPU compositor in a 1280x720 window). Render distance 12: Horizon ran 2 flights per scene, vanilla ran 2 games. | | Horizon | Java | |---|---|---| | Avg FPS | 209 | 126 | | 1% low | 39 | 29 | | p95 frame | 14 ms | 17 ms | | Start to world | 51 s | 68 s | | Chunk load | **60 s** | **47 s** (Java ahead) | | RAM steady / peak | 797 / 986 MB | 2.0 / 2.1 GB | - Java is also faster over the mountain scene: 205 vs 111 FPS. The page lists both under "Where Java is ahead"; per-scene wins are now detected automatically. - **RD 32 is not published for the ThinkPad.** With the default 5 minutes, neither game loaded the spawn. Given 25 minutes, Horizon reached the flights but kept only **~900–1,400 chunk columns resident** instead of the ~3,200 a full view needs: the count went *down* while the player stood still, with nothing pending. The two games wouldn't draw the same world, so the page says so instead of showing numbers. That's a finding for the perf team: at RD 32 on a weak machine, Horizon's effective view shrinks. - **Desktop (RTX 4080) not measured**: it's in daily use. The page says so and shows its last Horizon-only figures as non-comparable. The benchmark needed a fix to `tools/perf_bench.py`, now PR #1275. Right after a teleport, Horizon reports steady counts with nothing queued for over a second before it starts loading, so `wait_loaded` stopped the clock with 0–3 sections meshed. The fix requires the counts to change once, and requires 80% of the view circle to be resident. The fix is in #1275. ## How tested ``` website$ npm test # 15 pass (estimate, versions, benchmarks aggregation incl. shared fixtures) website$ node build.mjs # built dist/: 149 releases (125 game), 6 benchmark rows, 11 docs pages Playwright shots, dark + light, 1440 + 390: home "Recently added", /releases, one release opened by hash, /benchmarks, the picker. No page errors. The only horizontal scroll is the home page at 390 px, from #1259's .tabs row (433 px wide), not from this PR. ``` The console shows ERR_NAME_NOT_RESOLVED for telemetry.playhorizon.dev until that DNS exists; the fallback to the baked file works. Raw reports and logs are in `~/code/horizon-parity/shots/web-releases-bench-1/reports/`, and the screenshots are in `shots-final/` there. ## Needs Ludovic - Nothing to decide. Label `skip-release` (site only). 🤖 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:47 +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#3474
No description provided.