[PR #7599] [MERGED] tools(pacing_bench): --max-fps for a player's frame cap #7706

Closed
opened 2026-11-03 07:22:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7599
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: tools/pacing-max-fps


📝 Commits (1)

  • 39872d4 tools(pacing_bench): --max-fps for a player's frame cap

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 tools/pacing_bench.py (+9 -0)

📄 Description

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

pacing_bench.py runs every game uncapped (maxFps:260), so the frame limiter never paces a single frame. --max-fps N writes maxFps:N into the game's options. If perf_bench's options stop writing maxFps:260, it raises instead of silently doing nothing.

At --max-fps 60 it showed every frame at 17–20 ms on macOS, with a 1% low of 50 FPS. The cause is that the limiter's sleeps run late; the fix is in the companion PR fix/limiter-park-steps. The option was used for that PR's A/B (3 alternated pairs, RD 16, elytra and fly64).

pr_ready

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 2050c4e0f, 2 min 17 s)

Check Result
Scope ✅ 1 files, +9 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (2 min 16 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more
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/7599 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `tools/pacing-max-fps` --- ### 📝 Commits (1) - [`39872d4`](https://github.com/horizon-rust/horizon/commit/39872d4b4bea52c776cafcead46cf1adac91ddad) tools(pacing_bench): --max-fps for a player's frame cap ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/pacing_bench.py` (+9 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. `pacing_bench.py` runs every game uncapped (`maxFps:260`), so the frame limiter never paces a single frame. `--max-fps N` writes `maxFps:N` into the game's options. If perf_bench's options stop writing `maxFps:260`, it raises instead of silently doing nothing. At `--max-fps 60` it showed every frame at 17–20 ms on macOS, with a 1% low of 50 FPS. The cause is that the limiter's sleeps run late; the fix is in the companion PR `fix/limiter-park-steps`. The option was used for that PR's A/B (3 alternated pairs, RD 16, elytra and fly64). ## pr_ready **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 2050c4e0f, 2 min 17 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +9 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (2 min 16 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more | | Label | `skip-release` | 🤖 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 07:22:16 +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#7706
No description provided.