[PR #4827] [MERGED] Loading screen: integrated server's chunk map and progress, new-world delay #5877

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4827
Author: @levzzz5154
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: parity/R2-load


📝 Commits (1)

  • d35bf3b Integrated server's load progress and chunk map on the loading screen, 500 ms new-world delay

📊 Changes

4 files changed (+315 additions, -5 deletions)

View changed files

📝 crates/horizon-client-render/src/level_loading.rs (+161 -0)
📝 crates/horizon-client/src/game.rs (+20 -3)
📝 crates/horizon-client/src/game/integrated.rs (+119 -1)
📝 crates/horizon-client/src/game/remote.rs (+15 -1)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3518

Rows

  • LevelLoadTracker.startClientLoad: finishes #4805's follow-up.
    • LevelLoadTracker.statusView/serverProgress/hasProgress: new level_loading::ServerLoadView, the server's LevelLoadListener target (LevelLoadProgressTracker's weights, Stage, start/update/finish) plus the ChunkLoadStatusView map around the focus. The integrated server thread reports LOAD_INITIAL_CHUNKS (no forced chunks: 10 of 59) when its world is open, then LOAD_PLAYER_CHUNKS once the spawn chunk is known (PrepareSpawnTask: the 7x7 chunks around it, and the focus moves there), each server tick (publish_load_view). The window draws the chunk map and the eased progress bar (LevelLoadingScreen.tick, every 50 ms) both while the server starts and after it joined, until the client load is done. A new LevelLoadingScreen after a respawn starts its bar from zero.
    • Minecraft.doWorldLoad's new LevelLoadTracker(newWorld ? 500L : 0L): a world made by the Create World flow keeps its screen 500 ms once the level is ready.

Vanilla followed

LevelLoadTracker, LevelLoadProgressTracker, LevelLoadListener, MinecraftServer.createChunkLoadStatusView/prepareLevels, PrepareSpawnTask, LevelLoadingScreen.tick/extractRenderState, Minecraft.doWorldLoad.

Tests

level_loading::tracker_tests (listener -> progress weights, the status map's orientation). fmt, clippy -D warnings clean. Not run: the game, harnesses (CI).

🤖 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/4827 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/R2-load` --- ### 📝 Commits (1) - [`d35bf3b`](https://github.com/horizon-rust/horizon/commit/d35bf3ba33fceb7b7cbccabb5fec9f030122704d) Integrated server's load progress and chunk map on the loading screen, 500 ms new-world delay ### 📊 Changes **4 files changed** (+315 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/level_loading.rs` (+161 -0) 📝 `crates/horizon-client/src/game.rs` (+20 -3) 📝 `crates/horizon-client/src/game/integrated.rs` (+119 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+15 -1) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 ## Rows - `LevelLoadTracker.startClientLoad`: finishes #4805's follow-up. - `LevelLoadTracker.statusView/serverProgress/hasProgress`: new `level_loading::ServerLoadView`, the server's `LevelLoadListener` target (`LevelLoadProgressTracker`'s weights, `Stage`, `start/update/finish`) plus the `ChunkLoadStatusView` map around the focus. The integrated server thread reports `LOAD_INITIAL_CHUNKS` (no forced chunks: 10 of 59) when its world is open, then `LOAD_PLAYER_CHUNKS` once the spawn chunk is known (`PrepareSpawnTask`: the 7x7 chunks around it, and the focus moves there), each server tick (`publish_load_view`). The window draws the chunk map and the eased progress bar (`LevelLoadingScreen.tick`, every 50 ms) both while the server starts and after it joined, until the client load is done. A new `LevelLoadingScreen` after a respawn starts its bar from zero. - `Minecraft.doWorldLoad`'s `new LevelLoadTracker(newWorld ? 500L : 0L)`: a world made by the Create World flow keeps its screen 500 ms once the level is ready. ## Vanilla followed `LevelLoadTracker`, `LevelLoadProgressTracker`, `LevelLoadListener`, `MinecraftServer.createChunkLoadStatusView/prepareLevels`, `PrepareSpawnTask`, `LevelLoadingScreen.tick/extractRenderState`, `Minecraft.doWorldLoad`. ## Tests `level_loading::tracker_tests` (listener -> progress weights, the status map's orientation). fmt, clippy -D warnings clean. Not run: the game, harnesses (CI). 🤖 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:15:37 +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#5877
No description provided.