[PR #3214] [MERGED] Feature: boot loading screen #4849

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3214
Author: @I114rk
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feature/boot-loading-screen


📝 Commits (5)

  • 358b211 Boot loading screen: the window paints black with the wordmark, tagline and live console lines before the renderer's first frame
  • c78d449 Merge current main into boot loading screen
  • 89a68f7 Fix boot loading screen merge regressions
  • cf83188 Merge remote-tracking branch 'origin/main' into ely3214
  • 498aea7 Boot atlas: set main's new HudAtlas::text_shader field

📊 Changes

7 files changed (+545 additions, -20 deletions)

View changed files

📝 crates/horizon-client-render/src/hud.rs (+55 -0)
📝 crates/horizon-client/src/game.rs (+67 -16)
📝 crates/horizon-client/src/game/no_resources.rs (+8 -2)
📝 crates/horizon-client/src/game/startup_menu.rs (+8 -1)
📝 crates/horizon-client/src/ui_theme.rs (+208 -1)
➕ crates/horizon-threads/src/boot_paint.rs (+195 -0)
📝 crates/horizon-threads/src/lib.rs (+4 -0)

📄 Description

🤖 Opened by I114rk's AI agent (OpenCode, GLM 5.3 Flash), not by I114rk himself.

Feature: boot loading screen

While the renderer builds its device and pipelines (seconds on some machines), the window sat white — wgpu presents nothing until the first frame. The boot screen now covers that window:

  • Before the first wgpu frame, the window is painted with GDI (horizon-threads/src/boot_paint.rs, the crate for the OS calls crates that forbid(unsafe_code) can't make): pure black, the white Horizon wordmark (Geist SemiBold), the tagline Rust based minecraft client (Geist Mono) centred under it, and the client log's last lines at the bottom left.
  • The paint is kept on a 300 ms repaint thread, so the log lines stream in live while resources load; it stops the moment the renderer presents its first frame.
  • Long log lines wrap word-wise (GDI DT_WORDBREAK on the pre-frame paint, wrapping_lines in the wgpu drawing), the block grows upwards and is capped at 24 sub-lines.
  • Once wgpu frames flow, the same design is drawn by the game itself (ui_theme::draw_boot / draw_boot_log over the HUD atlas, HudAtlas::boot()), so the look is identical across the GDI and wgpu phases.

No behaviour changes after startup: the world-entry progress screen keeps vanilla's draw_progress.

Label: feature

🤖 Generated with OpenCode, GLM


🔄 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/3214 **Author:** [@I114rk](https://github.com/I114rk) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feature/boot-loading-screen` --- ### 📝 Commits (5) - [`358b211`](https://github.com/horizon-rust/horizon/commit/358b211e97595686fe0292609a2d511e99ef66da) Boot loading screen: the window paints black with the wordmark, tagline and live console lines before the renderer's first frame - [`c78d449`](https://github.com/horizon-rust/horizon/commit/c78d4495f07dd61154a29ca74cd5a88d937aa0c0) Merge current main into boot loading screen - [`89a68f7`](https://github.com/horizon-rust/horizon/commit/89a68f75de37e7f4cb82c47fade54897efefed54) Fix boot loading screen merge regressions - [`cf83188`](https://github.com/horizon-rust/horizon/commit/cf83188a6d103ca6f781430f3369f90868c1be31) Merge remote-tracking branch 'origin/main' into ely3214 - [`498aea7`](https://github.com/horizon-rust/horizon/commit/498aea78640331c1030f5542087f96a8ab487ac3) Boot atlas: set main's new HudAtlas::text_shader field ### 📊 Changes **7 files changed** (+545 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/hud.rs` (+55 -0) 📝 `crates/horizon-client/src/game.rs` (+67 -16) 📝 `crates/horizon-client/src/game/no_resources.rs` (+8 -2) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+8 -1) 📝 `crates/horizon-client/src/ui_theme.rs` (+208 -1) ➕ `crates/horizon-threads/src/boot_paint.rs` (+195 -0) 📝 `crates/horizon-threads/src/lib.rs` (+4 -0) </details> ### 📄 Description > 🤖 Opened by I114rk's AI agent (OpenCode, GLM 5.3 Flash), not by I114rk himself. ## Feature: boot loading screen While the renderer builds its device and pipelines (seconds on some machines), the window sat **white** — wgpu presents nothing until the first frame. The boot screen now covers that window: - **Before the first wgpu frame**, the window is painted with GDI (`horizon-threads/src/boot_paint.rs`, the crate for the OS calls crates that `forbid(unsafe_code)` can't make): pure black, the white `Horizon` wordmark (Geist SemiBold), the tagline `Rust based minecraft client` (Geist Mono) centred under it, and the client log's last lines at the bottom left. - The paint is kept on a 300 ms repaint thread, so the log lines stream in live while resources load; it stops the moment the renderer presents its first frame. - Long log lines **wrap word-wise** (GDI `DT_WORDBREAK` on the pre-frame paint, `wrapping_lines` in the wgpu drawing), the block grows upwards and is capped at 24 sub-lines. - Once wgpu frames flow, the same design is drawn by the game itself (`ui_theme::draw_boot` / `draw_boot_log` over the HUD atlas, `HudAtlas::boot()`), so the look is identical across the GDI and wgpu phases. No behaviour changes after startup: the world-entry progress screen keeps vanilla's `draw_progress`. Label: feature 🤖 Generated with [OpenCode](https://opencode.ai), [GLM](https://z.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:23 +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#4849
No description provided.