[PR #4009] [MERGED] Dedicated server: build only the font atlas, as the integrated server does #5351

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

📋 Pull Request Information

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

Base: main ← Head: perf/dedicated-font-atlas


📝 Commits (1)

  • ba59ac2 Dedicated server: build only the font atlas, as the integrated server does

📊 Changes

3 files changed (+26 additions, -12 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+24 -2)
📝 crates/horizon-client/src/game/integrated.rs (+1 -10)
📝 crates/horizon-client/src/game/startup_menu.rs (+1 -0)

📄 Description

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

What and why

First PR of the server plan (#3989, docs/server-next.md §7 step 2). A dedicated server draws nothing, yet it
built the full HUD atlas (GUI, particles, maps, skins) and the title panorama at startup.

The integrated server's game, which every single-player world runs on, already holds only the font (books and
chat measure with it) and a one-pixel panorama (server_game in game/integrated.rs). That pair now comes from
UiResources::server, and the dedicated server's synchronous load uses it too. Gameplay code sees the same
resources as on the integrated server, so nothing in play changes. The atlas readers left are drawing code
(TNT, End sky, armour stands).

Measured

sn_idle.py: fresh scratch server, seed 12345, nobody on. Ready = first status ping answered from exec; RSS read
10 s after ready. Mac mini M4 Pro, load ~47; main 12930d623 against this branch, 3 interleaved runs each.

run 1 run 2 run 3 median
RSS idle, main 836 MB 836 MB 841 MB 836 MB
RSS idle, this PR 771 MB 792 MB 765 MB 771 MB (−65)
Ready, main 7.96 s 5.05 s 4.28 s 5.05 s
Ready, this PR 4.71 s 3.93 s 4.32 s 4.32 s (−0.7)

The target is idle RSS < 32 MB and ready < 0.1 s (#3989). This is the first of the §7 steps.

Self-check

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 12930d623, 9 min 41 s)

Check Result
Scope ✅ 3 files, +26 −12
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 475 passed (1 min 28 s)
rustfmt ✅ (6 s)
clippy ✅ (3 min 47 s)
tests: horizon-client ❌ 679 passed, 1 failed (4 min 16 s)
doc tests ✅ 0 passed (1 s)
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 ➖ 31 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 19 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The one failing test, entity_nbt::axolotl_nbt_tests::bucket_cooldown_and_brain_memories_survive_and_expired_cooldown_is_removed, fails on main too. #3851 (DUzzL) fixes it. Parity: run-parity label for CI; dedicated_server is also running locally, and its result follows in a comment.

🤖 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/4009 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/dedicated-font-atlas` --- ### 📝 Commits (1) - [`ba59ac2`](https://github.com/horizon-rust/horizon/commit/ba59ac2ccf47820e97707d46118eaccbb9eeab75) Dedicated server: build only the font atlas, as the integrated server does ### 📊 Changes **3 files changed** (+26 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+24 -2) 📝 `crates/horizon-client/src/game/integrated.rs` (+1 -10) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why First PR of the server plan (#3989, `docs/server-next.md` §7 step 2). A dedicated server draws nothing, yet it built the full HUD atlas (GUI, particles, maps, skins) and the title panorama at startup. The integrated server's game, which every single-player world runs on, already holds only the font (books and chat measure with it) and a one-pixel panorama (`server_game` in `game/integrated.rs`). That pair now comes from `UiResources::server`, and the dedicated server's synchronous load uses it too. Gameplay code sees the same resources as on the integrated server, so nothing in play changes. The atlas readers left are drawing code (TNT, End sky, armour stands). ## Measured `sn_idle.py`: fresh scratch server, seed 12345, nobody on. Ready = first status ping answered from exec; RSS read 10 s after ready. Mac mini M4 Pro, load ~47; main 12930d623 against this branch, 3 interleaved runs each. | | run 1 | run 2 | run 3 | median | |---|---|---|---|---| | RSS idle, main | 836 MB | 836 MB | 841 MB | 836 MB | | RSS idle, this PR | 771 MB | 792 MB | 765 MB | **771 MB (−65)** | | Ready, main | 7.96 s | 5.05 s | 4.28 s | 5.05 s | | Ready, this PR | 4.71 s | 3.93 s | 4.32 s | **4.32 s (−0.7)** | The target is idle RSS < 32 MB and ready < 0.1 s (#3989). This is the first of the §7 steps. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 12930d623, 9 min 41 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +26 −12 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 475 passed (1 min 28 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (3 min 47 s) | | tests: horizon-client | ❌ 679 passed, 1 failed (4 min 16 s) | | doc tests | ✅ 0 passed (1 s) | | 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 | ➖ 31 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 19 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The one failing test, `entity_nbt::axolotl_nbt_tests::bucket_cooldown_and_brain_memories_survive_and_expired_cooldown_is_removed`, fails on main too. #3851 (DUzzL) fixes it. Parity: `run-parity` label for CI; `dedicated_server` is also running locally, and its result follows in a comment. 🤖 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:59 +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#5351
No description provided.