[PR #7175] [MERGED] tools: pacing_bench first-sight, screens and F3+T scenarios #7393

Closed
opened 2026-11-03 06:38:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

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


📝 Commits (1)

  • 8bac5c0 tools: pacing_bench first-sight, screens and F3+T scenarios

📊 Changes

1 file changed (+83 additions, -2 deletions)

View changed files

📝 tools/pacing_bench.py (+83 -2)

📄 Description

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

New tools/pacing_bench.py scenarios for the stalls players notice the first time something happens:

  • mobs, items, block_entities put 68 mob types, 50 item models and 34 block entities in view one at a time, recording 0.6 s after each. They run through chat, as a player types the command: horizon-ctl's command blocks the frame until the next server tick, and in a first try it produced fake 50 ms "stalls" on every step.
  • screens opens the creative inventory and clicks its 12 tabs, then the survival inventory and its recipe book, twice each. It prints the worst frame of each step, so a first open can be compared with the second. The tabs and the recipe book button are clicked where vanilla puts them (checked on screenshots).
  • reload records 15 s after F3+T.

First results on the Mac mini (main, RD 12, offscreen 1280x720):

Scenario Worst frame Frames > 33 ms
mobs (68 types, first sight) 3.8 ms 0
items (50 models) 4.4 ms 0
block_entities (34) 5.1 ms 0
creative inventory, first open / tabs 5.1 / ≤ 6.3 ms (second open ≤ 3.8) 0
inventory + recipe book, first open 4.1 / 2.6 ms 0
F3+T 84–95 ms (one frame: the apply step) 1

None of the first-sight cases stall. F3+T's one stall is the frame that swaps the reloaded resources in. #7187 takes ~23 ms off it; the renderer rebuild (~60 ms) is what remains.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 73f5486b9, 1 min 33 s)

Check Result
Scope ✅ 1 files, +83 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (1 min 33 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 ➖ 17 affected, to run in CI (--quick): 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, item_use_order and 5 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/7175 **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-sight` --- ### 📝 Commits (1) - [`8bac5c0`](https://github.com/horizon-rust/horizon/commit/8bac5c09fe582afaf8c6c6557a46958845200340) tools: pacing_bench first-sight, screens and F3+T scenarios ### 📊 Changes **1 file changed** (+83 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/pacing_bench.py` (+83 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. New `tools/pacing_bench.py` scenarios for the stalls players notice the first time something happens: - `mobs`, `items`, `block_entities` put 68 mob types, 50 item models and 34 block entities in view one at a time, recording 0.6 s after each. They run through chat, as a player types the command: horizon-ctl's `command` blocks the frame until the next server tick, and in a first try it produced fake 50 ms "stalls" on every step. - `screens` opens the creative inventory and clicks its 12 tabs, then the survival inventory and its recipe book, twice each. It prints the worst frame of each step, so a first open can be compared with the second. The tabs and the recipe book button are clicked where vanilla puts them (checked on screenshots). - `reload` records 15 s after F3+T. First results on the Mac mini (main, RD 12, offscreen 1280x720): | Scenario | Worst frame | Frames > 33 ms | |---|---|---| | mobs (68 types, first sight) | 3.8 ms | 0 | | items (50 models) | 4.4 ms | 0 | | block_entities (34) | 5.1 ms | 0 | | creative inventory, first open / tabs | 5.1 / ≤ 6.3 ms (second open ≤ 3.8) | 0 | | inventory + recipe book, first open | 4.1 / 2.6 ms | 0 | | F3+T | 84–95 ms (one frame: the apply step) | 1 | None of the first-sight cases stall. F3+T's one stall is the frame that swaps the reloaded resources in. #7187 takes ~23 ms off it; the renderer rebuild (~60 ms) is what remains. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 73f5486b9, 1 min 33 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +83 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (1 min 33 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 | ➖ 17 affected, to run in CI (--quick): 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, item_use_order and 5 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 06:38:52 +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#7393
No description provided.