feat(startup): report game loading to the launcher #2683

Merged
HumanBean merged 1 commit from HumanBean/Longshot:feat/launcher-startup-runtime into main 2026-11-27 18:42:06 +00:00
Owner

Summary

Launcher Play currently hands off as soon as the game process starts, so users can still see a second loading screen while the renderer loads pipelines. Let the launcher show that work and reveal the game window when the first game frame reaches the renderer.

The builder enables the startup stream for launcher-owned, windowed Play and Reload when the build advertises the new capability. The renderer uses the normal pipeline work and publishes its current stage, percentage, and ETA through the inherited builder output. Windows and SDL create the game window hidden and reveal it on the window thread. Standalone launches and older builds use their existing startup behavior.

Launcher counterpart: MagicBeanDev/LongshotLauncher#307

Testing

Tested: The builder compiled and its reporter tests passed. Native host and Vulkan syntax checks passed for Linux and Windows. The game-free display startup fixtures, shader progress, shader fade, and preparation tests passed. A synthetic SDL3 and Vulkan probe created a hidden swapchain on both X11 and Wayland.

Still to test:

  • Run cold Play, cached Play, and in-game Reload on Windows and Linux. Check that the launcher owns progress, the game becomes visible at its first frame, and an older or standalone game can still start. On Linux exercise both X11 and Wayland, including fullscreen, by hand.

Measurements

This changes the presentation of existing startup work. End-to-end startup behavior still needs measurement on the target platforms.

Risks

The window handoff touches native display startup. A driver or compositor can behave differently with an initially hidden window. The native window and fullscreen checks above remain open before merge.

Checklist

Ready for review

  • One topic on current main.
  • Game-free checks cover display startup and builder events.
  • End-to-end testing is complete.
  • This change contains source, tests, and documentation only.

When it applies

  • The startup event protocol is documented.
  • AI assistance is recorded in the commit.

Ready to merge

  • Still-to-test cases have run.
## Summary Launcher Play currently hands off as soon as the game process starts, so users can still see a second loading screen while the renderer loads pipelines. Let the launcher show that work and reveal the game window when the first game frame reaches the renderer. The builder enables the startup stream for launcher-owned, windowed Play and Reload when the build advertises the new capability. The renderer uses the normal pipeline work and publishes its current stage, percentage, and ETA through the inherited builder output. Windows and SDL create the game window hidden and reveal it on the window thread. Standalone launches and older builds use their existing startup behavior. Launcher counterpart: https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/307 ## Testing **Tested:** The builder compiled and its reporter tests passed. Native host and Vulkan syntax checks passed for Linux and Windows. The game-free display startup fixtures, shader progress, shader fade, and preparation tests passed. A synthetic SDL3 and Vulkan probe created a hidden swapchain on both X11 and Wayland. **Still to test:** - Run cold Play, cached Play, and in-game Reload on Windows and Linux. Check that the launcher owns progress, the game becomes visible at its first frame, and an older or standalone game can still start. On Linux exercise both X11 and Wayland, including fullscreen, by hand. ## Measurements This changes the presentation of existing startup work. End-to-end startup behavior still needs measurement on the target platforms. ## Risks The window handoff touches native display startup. A driver or compositor can behave differently with an initially hidden window. The native window and fullscreen checks above remain open before merge. ## Checklist ### Ready for review - [x] One topic on current main. - [x] Game-free checks cover display startup and builder events. - [ ] End-to-end testing is complete. - [x] This change contains source, tests, and documentation only. ### When it applies - [x] The startup event protocol is documented. - [x] AI assistance is recorded in the commit. ### Ready to merge - [ ] Still-to-test cases have run.
feat(startup): hand game loading progress to the launcher
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Successful in 11s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 2m2s
PR description / Title and description (pull_request_target) Failing after 21s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m30s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m5s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 2m26s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m2s
CI / Website build and checks (pull_request) Successful in 2m24s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 10m36s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 23m0s
f00fefe23a
Assisted-by: OpenAI Codex
Member

Possibly related, for context:

  • PR MagicBeanDev/LongshotLauncher#307 WIP: feat(launch): keep startup progress in the launcher — Matching launcher-side startup progress handoff; explicitly named as counterpart
Possibly related, for context: - PR MagicBeanDev/LongshotLauncher#307 WIP: feat(launch): keep startup progress in the launcher — Matching launcher-side startup progress handoff; explicitly named as counterpart
HumanBean changed title from WIP: feat(startup): report game loading to the launcher to feat(startup): report game loading to the launcher 2026-11-27 18:41:40 +00:00
HumanBean deleted branch feat/launcher-startup-runtime 2026-11-27 18:42:10 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/Longshot!2683
No description provided.