[PR #1413] [MERGED] Benchmark: a 1080p set next to 720p #3500

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

📋 Pull Request Information

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

Base: main ← Head: feat/bench-1080p


📝 Commits (1)

  • 5c9f11b Benchmark: a 1080p set next to 720p

📊 Changes

4 files changed (+62 additions, -19 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+15 -3)
📝 docs/benchmark.md (+3 -3)
📝 tests/test_perf_bench.py (+8 -0)
📝 tools/perf_bench.py (+36 -13)

📄 Description

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

What

tools/perf_bench.py ran every game in a 1280x720 window only (rdbt asked on Discord why the benchmarks are 720p). The standard set now runs at 1280x720 and 1920x1080, each size with its own reports:

  • --sizes (default 1280x720,1920x1080) replaces vanilla's --width/--height; every game gets the size, vanilla and NeoForge through their --width/--height launch arguments as before.
  • Horizon takes the same --width N --height N arguments for its window's starting size (1280x720 by default, both window creations: the loading window and the game's). perf_bench passes them only off 720p, so builds from before this one still run the 720p set.
  • Reports: <label>-rd<N>.json at 1280x720 as before (the website's data and --table keep working), <label>-1080p-rd<N>.json at 1920x1080, <label>-<W>x<H>-rd<N>.json for other sizes. The size each game really rendered at stays in conditions.window.
  • docs/benchmark.md: the "Same resolution" rule and the options.

Part of #1346 (the resolution item). Not done here: five repeats alternating game order, separate warm/generation/load/simulation tests, and the results page's new layout.

Proof

Desktop (RTX 4080), in a 1920x1080 headless GPU sway with floating windows, perf_bench --game horizon --distances 8 --scenes village,mountain --repeats 1 (load 2.2–3.4):

report conditions.window village avg FPS / GPU p50 mountain avg FPS / GPU p50
sizes-check-rd8.json [1280, 720] 4518 / 0.058 ms 4401 / 0.067 ms
sizes-check-1080p-rd8.json [1920, 1080] 4069 / 0.081 ms 3952 / 0.092 ms

Note for publishing runs: a tiling compositor resizes windows to its output; the headless sway used for the published desktop and ThinkPad numbers needs a 1920x1080 output (and floating windows) for the 1080p set, or conditions.window will show the size it forced.

How tested

  • python3 -m unittest tests.test_perf_bench: 8 tests OK (new test_window_sizes_name_their_reports)
  • cargo fmt --all --check, cargo clippy -p horizon-client -- -D warnings: clean
  • the run above

🤖 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/1413 **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/bench-1080p` --- ### 📝 Commits (1) - [`5c9f11b`](https://github.com/horizon-rust/horizon/commit/5c9f11b9546e4067ba9fc406290024a3428e64fc) Benchmark: a 1080p set next to 720p ### 📊 Changes **4 files changed** (+62 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+15 -3) 📝 `docs/benchmark.md` (+3 -3) 📝 `tests/test_perf_bench.py` (+8 -0) 📝 `tools/perf_bench.py` (+36 -13) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `tools/perf_bench.py` ran every game in a 1280x720 window only (rdbt asked on Discord why the benchmarks are 720p). The standard set now runs at **1280x720 and 1920x1080**, each size with its own reports: - `--sizes` (default `1280x720,1920x1080`) replaces vanilla's `--width`/`--height`; every game gets the size, vanilla and NeoForge through their `--width`/`--height` launch arguments as before. - Horizon takes the same `--width N --height N` arguments for its window's starting size (1280x720 by default, both window creations: the loading window and the game's). perf_bench passes them only off 720p, so builds from before this one still run the 720p set. - Reports: `<label>-rd<N>.json` at 1280x720 as before (the website's data and `--table` keep working), `<label>-1080p-rd<N>.json` at 1920x1080, `<label>-<W>x<H>-rd<N>.json` for other sizes. The size each game really rendered at stays in `conditions.window`. - docs/benchmark.md: the "Same resolution" rule and the options. Part of #1346 (the resolution item). Not done here: five repeats alternating game order, separate warm/generation/load/simulation tests, and the results page's new layout. ## Proof Desktop (RTX 4080), in a 1920x1080 headless GPU sway with floating windows, `perf_bench --game horizon --distances 8 --scenes village,mountain --repeats 1` (load 2.2–3.4): | report | `conditions.window` | village avg FPS / GPU p50 | mountain avg FPS / GPU p50 | |---|---|---|---| | `sizes-check-rd8.json` | [1280, 720] | 4518 / 0.058 ms | 4401 / 0.067 ms | | `sizes-check-1080p-rd8.json` | [1920, 1080] | 4069 / 0.081 ms | 3952 / 0.092 ms | Note for publishing runs: a tiling compositor resizes windows to its output; the headless sway used for the published desktop and ThinkPad numbers needs a 1920x1080 output (and floating windows) for the 1080p set, or `conditions.window` will show the size it forced. ## How tested - `python3 -m unittest tests.test_perf_bench`: 8 tests OK (new `test_window_sizes_name_their_reports`) - `cargo fmt --all --check`, `cargo clippy -p horizon-client -- -D warnings`: clean - the run above 🤖 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:59 +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#3500
No description provided.