[PR #7706] [MERGED] pacing_bench: first-use scenarios (End, weather, particles, post chains) #7776

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

📋 Pull Request Information

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

Base: main ← Head: tools/pacing-first-use


📝 Commits (1)

  • 95ed635 pacing_bench: first-use scenarios (End, weather, particles, post chains)

📊 Changes

1 file changed (+58 additions, -1 deletions)

View changed files

📝 tools/pacing_bench.py (+58 -1)

📄 Description

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

tools/pacing_bench.py gets four new scenarios. Each records the frames right after something is used for the first time, which is when a pipeline gets compiled during play:

Scenario What it does
end Overworld → the End → Overworld, twice (/execute in … run tp), recording 8 s after each trip
weather rain, thunder, a lightning bolt, then clear, recording 4 s after each
particles 53 particle kinds, 60 of each (/particle … force), recording 0.6 s after each
post a glowing mob, then spectating a creeper, a spider, an enderman and a cave spider (their post chains), recording 2 s after each

These scenarios found the spectator post-chain freezes fixed in #7686: 918 / 306 / 101 ms when the shaders were not cached yet. The docstring also explains how to see such costs cold: the OS or driver shader cache hides them after the first run, so give the game a resources folder whose shaders differ.

Validation on the Mac mini (RD 8, main + #7600, warm Metal cache): end: worst frame 8.7 ms · weather: 6.9 ms · particles: 9.0 ms · post: 8.5 ms. Run order matters. portal passes alone and after nether, weather or post, but fails after end: that is a game bug, filed as #7702. The default order runs portal before end, and a comment in the scenario says so.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at b451b111e, 4 min 27 s)

Check Result
Scope ✅ 1 files, +58 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (4 min 26 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/7706 **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-first-use` --- ### 📝 Commits (1) - [`95ed635`](https://github.com/horizon-rust/horizon/commit/95ed63525db54cf0513422111718a2a5af1848c8) pacing_bench: first-use scenarios (End, weather, particles, post chains) ### 📊 Changes **1 file changed** (+58 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/pacing_bench.py` (+58 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. `tools/pacing_bench.py` gets four new scenarios. Each records the frames right after something is used for the first time, which is when a pipeline gets compiled during play: | Scenario | What it does | | --- | --- | | `end` | Overworld → the End → Overworld, twice (`/execute in … run tp`), recording 8 s after each trip | | `weather` | rain, thunder, a lightning bolt, then clear, recording 4 s after each | | `particles` | 53 particle kinds, 60 of each (`/particle … force`), recording 0.6 s after each | | `post` | a glowing mob, then spectating a creeper, a spider, an enderman and a cave spider (their post chains), recording 2 s after each | These scenarios found the spectator post-chain freezes fixed in #7686: 918 / 306 / 101 ms when the shaders were not cached yet. The docstring also explains how to see such costs cold: the OS or driver shader cache hides them after the first run, so give the game a resources folder whose shaders differ. Validation on the Mac mini (RD 8, main + #7600, warm Metal cache): `end`: worst frame 8.7 ms · `weather`: 6.9 ms · `particles`: 9.0 ms · `post`: 8.5 ms. Run order matters. `portal` passes alone and after `nether`, `weather` or `post`, but fails after `end`: that is a game bug, filed as #7702. The default order runs `portal` before `end`, and a comment in the scenario says so. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at b451b111e, 4 min 27 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +58 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (4 min 26 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:24:01 +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#7776
No description provided.