[PR #3984] [MERGED] docs/server-next.md: the next server's design, measured against vanilla and Pumpkin #5334

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3984
Author: @ludovic111
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: docs/server-next


📝 Commits (4)

  • 86ebc77 docs/server-next.md: the next server's design, measured against vanilla and Pumpkin
  • 18da9c9 docs/server-next.md: beat Pumpkin on idle memory and start too (< 32 MB, < 0.1 s), and how
  • bfeb1e6 Merge origin/main; server-next: S-5 is done (owners.md), Appendix A is a snapshot
  • 2ed8041 docs/server-next.md: line total, join worst, quiet channel and tracker paths

📊 Changes

2 files changed (+473 additions, -0 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/server-next.md (+472 -0)

📄 Description

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

What and why

docs/server-next.md is the design for Horizon's next server, the one meant to beat Pumpkin. It moves here
from horizon-rust/horizon-server#1 (closed) on Ludovic's decision: the server stays in this repo, because
single player's integrated server runs the same code. No code here, only the design.

Measured (Mac mini M4 Pro, shared, load 57–132; the same horizon-bots mixed load on all three servers;
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;
  • MSPT p99 under 35 ms at 100 players;
  • under 1 GB of memory at 100 players;
  • 50 % fewer bytes for Horizon clients, through the fast path;
  • join p99 under 300 ms;
  • idle RSS under 32 MB and ready in under 0.1 s.

What the design decides:

  • Where the code goes. Everything goes in this repo, shared by the integrated server, LAN and
    --dedicated: the parallel tick, the network front, the fast path, operations, the plugin API (W9, with
    levzzz5154) and the bench. horizon-rust/horizon-server only republishes release archives.
  • Ticking. Levels tick in parallel, and cross-level effects apply at a barrier in vanilla's order.
    • Inside one level the default stays exact: per-entity work that draws no random number runs ahead in
      parallel and is committed in vanilla's order. Single player gets this too.
    • tick = "regions" is an opt-in mode, for dedicated servers only. It keeps vanilla's rules but not its
      random sequences.
  • Who can join. Online mode is on by default and the owner can change it, as on every server. hosting.md's
    warnings about offline mode stay as they are.
  • The official server. It already runs --dedicated, in online mode, with no plugins (bunchy7s's answers),
    so each improvement reaches it with a release.
  • Appendix A gives each open PR on the server's theme one line. ★ marks those to land first.
  • Issues anyone can take: #3971–#3976.

Memory and start (Ludovic: beat Pumpkin on every number): idle RSS < 32 MB and ready < 0.1 s. The plan is in section 7: nothing loaded while empty (#2608), a headless engine, one mapped server data file decoded on first use, worldgen built per dimension on first use, no idle threads, memory given back. Each step is measured with the bench.

Self-check

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

Check Result
Scope ✅ 2 files, +441 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 475 passed (2 min 17 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
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/3984 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `docs/server-next` --- ### 📝 Commits (4) - [`86ebc77`](https://github.com/horizon-rust/horizon/commit/86ebc77e25e06cf83ba96a827c75f941d92e79db) docs/server-next.md: the next server's design, measured against vanilla and Pumpkin - [`18da9c9`](https://github.com/horizon-rust/horizon/commit/18da9c988a30eed05284a5b69c6837ddfe2c896e) docs/server-next.md: beat Pumpkin on idle memory and start too (< 32 MB, < 0.1 s), and how - [`bfeb1e6`](https://github.com/horizon-rust/horizon/commit/bfeb1e69a8e6dacd990eae120a9693f62c3bd830) Merge origin/main; server-next: S-5 is done (owners.md), Appendix A is a snapshot - [`2ed8041`](https://github.com/horizon-rust/horizon/commit/2ed80412b102345e1dd602f05fe2b6a8b785cef0) docs/server-next.md: line total, join worst, quiet channel and tracker paths ### 📊 Changes **2 files changed** (+473 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/server-next.md` (+472 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why `docs/server-next.md` is the design for Horizon's next server, the one meant to beat Pumpkin. It moves here from horizon-rust/horizon-server#1 (closed) on Ludovic's decision: the server stays in this repo, because single player's integrated server runs the same code. No code here, only the design. **Measured** (Mac mini M4 Pro, shared, load 57–132; the same `horizon-bots` `mixed` load on all three servers; 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; - MSPT p99 under 35 ms at 100 players; - under 1 GB of memory at 100 players; - 50 % fewer bytes for Horizon clients, through the fast path; - join p99 under 300 ms; - idle RSS under 32 MB and ready in under 0.1 s. **What the design decides:** - **Where the code goes.** Everything goes in this repo, shared by the integrated server, LAN and `--dedicated`: the parallel tick, the network front, the fast path, operations, the plugin API (W9, with levzzz5154) and the bench. horizon-rust/horizon-server only republishes release archives. - **Ticking.** Levels tick in parallel, and cross-level effects apply at a barrier in vanilla's order. - Inside one level the default stays exact: per-entity work that draws no random number runs ahead in parallel and is committed in vanilla's order. Single player gets this too. - `tick = "regions"` is an opt-in mode, for dedicated servers only. It keeps vanilla's rules but not its random sequences. - **Who can join.** Online mode is on by default and the owner can change it, as on every server. hosting.md's warnings about offline mode stay as they are. - **The official server.** It already runs `--dedicated`, in online mode, with no plugins (bunchy7s's answers), so each improvement reaches it with a release. - **Appendix A** gives each open PR on the server's theme one line. ★ marks those to land first. - **Issues** anyone can take: #3971–#3976. **Memory and start (Ludovic: beat Pumpkin on every number):** idle RSS < 32 MB and ready < 0.1 s. The plan is in section 7: nothing loaded while empty (#2608), a headless engine, one mapped server data file decoded on first use, worldgen built per dimension on first use, no idle threads, memory given back. Each step is measured with the bench. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 0fff625c2, 2 min 17 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +441 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 475 passed (2 min 17 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | 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 05:11: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#5334
No description provided.