[PR #892] [MERGED] fly: report the world's tick time (the server thread's too) #2891

Closed
opened 2026-11-02 15:59:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/flight-server-tick-ms


📝 Commits (1)

  • be161f1 Report the world's tick time in flight summaries

📊 Changes

2 files changed (+17 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/bin/horizon-ctl/commands.rs (+1 -1)
📝 crates/horizon-client/src/game/control.rs (+16 -1)

📄 Description

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

Part of #731 (making the server thread the default): "flight summaries report the server's tick time (tick_ms)".

Why

horizon-ctl fly is the repeatable camera-path benchmark, and it replied with frame times only. On the server thread the world ticks on another thread, so its cost no longer shows in the frames. Without this, a perf flight can't tell how long the server took.

Change

  • Flight records the world's smoothed tick time every frame. That is the F3 server line: Integrated::smoothed_tick_ms on the server thread, debug_charts.smoothed_tick_ms otherwise.
  • The summary adds tick_ms (the mean over the flight) and tick_ms_max.
  • The fly help text mentions both.

Checks

Same 8 s flight (fly 0 100 0 200 100 0 8) on a fresh creative world, run by hand:

Mode tick_ms tick_ms_max frames
Server thread 8.9 24.0 413
In-frame 11.1 31.3 141
  • horizon-ctl tests pass.
  • Workspace clippy -D warnings and fmt are clean.

This only adds two fields to a tool's reply, so no parity harness covers it. CI parity runs the rest.

🤖 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/892 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/flight-server-tick-ms` --- ### 📝 Commits (1) - [`be161f1`](https://github.com/horizon-rust/horizon/commit/be161f100b5eeb565d56db3d1aab7b43095b0bcd) Report the world's tick time in flight summaries ### 📊 Changes **2 files changed** (+17 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/bin/horizon-ctl/commands.rs` (+1 -1) 📝 `crates/horizon-client/src/game/control.rs` (+16 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of #731 (making the server thread the default): "flight summaries report the server's tick time (`tick_ms`)". ## Why `horizon-ctl fly` is the repeatable camera-path benchmark, and it replied with frame times only. On the server thread the world ticks on another thread, so its cost no longer shows in the frames. Without this, a perf flight can't tell how long the server took. ## Change - `Flight` records the world's smoothed tick time every frame. That is the F3 server line: `Integrated::smoothed_tick_ms` on the server thread, `debug_charts.smoothed_tick_ms` otherwise. - The summary adds `tick_ms` (the mean over the flight) and `tick_ms_max`. - The `fly` help text mentions both. ## Checks Same 8 s flight (`fly 0 100 0 200 100 0 8`) on a fresh creative world, run by hand: | Mode | tick_ms | tick_ms_max | frames | | --- | --- | --- | --- | | Server thread | 8.9 | 24.0 | 413 | | In-frame | 11.1 | 31.3 | 141 | - horizon-ctl tests pass. - Workspace clippy `-D warnings` and fmt are clean. This only adds two fields to a tool's reply, so no parity harness covers it. CI parity runs the rest. 🤖 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-02 15:59:54 +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#2891
No description provided.