[PR #1] [CLOSED] Design: baseline against vanilla and Pumpkin, targets, architecture and plan #2

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-server/pull/1
Author: @ludovic111
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: docs/design


📝 Commits (4)

  • c46855d Design: measured baseline against vanilla and Pumpkin, targets, architecture and plan
  • 68d7716 Design: link the S-1 to S-6 issues
  • 50418c7 Design: appendix A, the open horizon PRs on the server's theme
  • 11fd12b Design: the official server already runs --dedicated (9.2)

📊 Changes

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

View changed files

➕ docs/design.md (+487 -0)

📄 Description

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

docs/design.md: the design of Horizon Server, before any code.

Measured (Mac mini M4 Pro, shared, load 57–132; the same horizon-bots mixed load on all three; Pumpkin
0.2.1+26.3-26.51 run as a black box, its code never read):

Horizon (main 668419b92) Pumpkin 0.2.1 vanilla 26.3
Players at 20 TPS 50 (14.3 TPS at 100) 50 (13.6 at 100) < 10 (2.2 at 100)
MSPT p99 at 100 (median / worst 5 s) 108 / 138 ms 231 / 348 539 / 556
RSS at 100 / idle 2.05 GB / 760 MB 1.42 GB / 32 MB 3.7 GB / 1.6 GB
Bytes per chunk sent 3.7 KB (and 1.8× Pumpkin's chunks) 3.6 KB 5.2 KB
Join p50 / worst at 100 83 / 244 ms 43 / 494 ms (4.1 s at 50) 933 / 10 524 ms

Targets: 200 players at 20 TPS on 8 cores, p99 < 35 ms at 100, < 1 GB at 100 players, −50 % bytes for
Horizon clients via the fast path, join p99 < 300 ms. Every server harness stays green at the pinned horizon
commit.

Architecture, decided in the doc:

  • Gameplay keeps one copy, in horizon. The crate split continues with horizon-sim (the game minus the
    window). This repo depends on it through a git dependency pinned by rev, and a daily bump runs the server
    harnesses.
  • This repo writes only the server-scale parts: the network front, the parallel tick driver, the fast path,
    operations and the bench.
  • horizon's horizon-server crate (the supervisor) moves here. --dedicated stays as the reference server
    for the harnesses.
  • Ticking: levels in parallel, with cross-level effects applied at a barrier. Inside one level the default
    is exact: pure per-entity work runs ahead in parallel and is committed in vanilla's order. An opt-in
    tick = "regions" mode keeps vanilla's rules but not its random sequences.

Decisions for Ludovic (sections 6 and 9.2):

  1. The official server was listed as offline mode. hzs would require online mode on a public address (no play
    without an owned account), so if it is still offline, moving it means moving it to online mode.
  2. Two numbers may stay behind Pumpkin: idle memory (target < 100 MB against its 32 MB) and start time (< 1 s
    against 0.1 s).

The official server already runs Horizon's own --dedicated (bunchy7s, 2026-10-29). So there is no world
conversion and no Bedrock question, and the switch to hzs is a binary swap measured against our own
--dedicated (section 9.2).

The baseline is noisy: the machine was shared and the bots ran on it. W0 (the bench on a dedicated machine,
±5 % between runs) comes before any tick PR. Issues S-1 to S-6 (section 9.3) are open for anyone to take.

Appendix A gives each of the ~45 open horizon PRs on the server's theme one line: use, covered or not for the server. ★ marks the ones to land in horizon first.

🤖 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-server/pull/1 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docs/design` --- ### 📝 Commits (4) - [`c46855d`](https://github.com/horizon-rust/horizon-server/commit/c46855db73d2e375e59ebf9a5262566dd0b8ebf2) Design: measured baseline against vanilla and Pumpkin, targets, architecture and plan - [`68d7716`](https://github.com/horizon-rust/horizon-server/commit/68d77168790f9e598ac5260e1fe9087709e19294) Design: link the S-1 to S-6 issues - [`50418c7`](https://github.com/horizon-rust/horizon-server/commit/50418c7178121b409800c229ebe4212a0edfea5a) Design: appendix A, the open horizon PRs on the server's theme - [`11fd12b`](https://github.com/horizon-rust/horizon-server/commit/11fd12b83a190187bbcd9093a703c7d1dcfe30b8) Design: the official server already runs --dedicated (9.2) ### 📊 Changes **1 file changed** (+487 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/design.md` (+487 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. `docs/design.md`: the design of Horizon Server, before any code. **Measured** (Mac mini M4 Pro, shared, load 57–132; the same `horizon-bots` `mixed` load on all three; Pumpkin `0.2.1+26.3-26.51` run as a black box, its code never read): | | Horizon (main 668419b92) | Pumpkin 0.2.1 | vanilla 26.3 | |---|---|---|---| | Players at 20 TPS | 50 (14.3 TPS at 100) | 50 (13.6 at 100) | < 10 (2.2 at 100) | | MSPT p99 at 100 (median / worst 5 s) | **108 / 138 ms** | 231 / 348 | 539 / 556 | | RSS at 100 / idle | 2.05 GB / 760 MB | **1.42 GB / 32 MB** | 3.7 GB / 1.6 GB | | Bytes per chunk sent | 3.7 KB (and 1.8× Pumpkin's chunks) | 3.6 KB | 5.2 KB | | Join p50 / worst at 100 | 83 / **244 ms** | **43** / 494 ms (4.1 s at 50) | 933 / 10 524 ms | **Targets:** 200 players at 20 TPS on 8 cores, p99 < 35 ms at 100, < 1 GB at 100 players, −50 % bytes for Horizon clients via the fast path, join p99 < 300 ms. Every server harness stays green at the pinned horizon commit. **Architecture, decided in the doc:** - Gameplay keeps one copy, in horizon. The crate split continues with `horizon-sim` (the game minus the window). This repo depends on it through a git dependency pinned by `rev`, and a daily bump runs the server harnesses. - This repo writes only the server-scale parts: the network front, the parallel tick driver, the fast path, operations and the bench. - horizon's `horizon-server` crate (the supervisor) moves here. `--dedicated` stays as the reference server for the harnesses. - Ticking: levels in parallel, with cross-level effects applied at a barrier. Inside one level the default is exact: pure per-entity work runs ahead in parallel and is committed in vanilla's order. An opt-in `tick = "regions"` mode keeps vanilla's rules but not its random sequences. **Decisions for Ludovic (sections 6 and 9.2):** 1. The official server was listed as offline mode. `hzs` would require online mode on a public address (no play without an owned account), so if it is still offline, moving it means moving it to online mode. 2. Two numbers may stay behind Pumpkin: idle memory (target < 100 MB against its 32 MB) and start time (< 1 s against 0.1 s). The official server already runs Horizon's own `--dedicated` (bunchy7s, 2026-10-29). So there is no world conversion and no Bedrock question, and the switch to `hzs` is a binary swap measured against our own `--dedicated` (section 9.2). The baseline is noisy: the machine was shared and the bots ran on it. W0 (the bench on a dedicated machine, ±5 % between runs) comes before any tick PR. Issues S-1 to S-6 (section 9.3) are open for anyone to take. **Appendix A** gives each of the ~45 open horizon PRs on the server's theme one line: use, covered or not for the server. ★ marks the ones to land in horizon first. 🤖 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:02:15 +07:00
Sign in to join this conversation.
No labels
pull-request
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-server#2
No description provided.