[GH-ISSUE #896] Startup: the title stops drawing while the backdrop terrain builds on the event loop #250

Closed
opened 2026-11-02 15:37:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/896

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

Follow-up to rdbt's #878 (progressive startup, #712), found while checking it.

start_backdrop builds VanillaTerrain on the event-loop thread. Since #878 it starts as soon as the world renderer is ready, while the title is meant to be interactive, so the title stops drawing until the build finishes. In a fresh debug home with an empty .horizon-cache that was about 50 s. Before #878 the same call ran only after all loading had finished. A release build with a warm cache should be much shorter, but it's still a stall on the screen players see first.

Expected: build the backdrop terrain on a worker and swap it in when it's ready (the title keeps drawing its panorama until then), so the title never stops responding.

Also worth adding: a harness or smoke test for the progressive path. A control socket (options.control) forces the old synchronous startup, so horizon-ctl and CI parity never exercise it.

Originally created by @ludovic111 on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/896 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Follow-up to rdbt's #878 (progressive startup, #712), found while checking it. `start_backdrop` builds `VanillaTerrain` on the event-loop thread. Since #878 it starts as soon as the world renderer is ready, while the title is meant to be interactive, so the title stops drawing until the build finishes. In a fresh debug home with an empty `.horizon-cache` that was about 50 s. Before #878 the same call ran only after all loading had finished. A release build with a warm cache should be much shorter, but it's still a stall on the screen players see first. **Expected:** build the backdrop terrain on a worker and swap it in when it's ready (the title keeps drawing its panorama until then), so the title never stops responding. Also worth adding: a harness or smoke test for the progressive path. A control socket (`options.control`) forces the old synchronous startup, so horizon-ctl and CI parity never exercise it.
bsakaguchi 2026-11-02 15:37:39 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

🤖 Agent: fix in #1087. On main the title stopped for 2.1 s (cold cache) / 0.86 s (warm) on an M4 Pro while the backdrop generator built. With #1087 that frame is 25 ms, and the build (1.7–1.8 s) runs on a worker while the panorama keeps drawing.

<!-- gh-comment-id:6319211088 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: fix in #1087. On main the title stopped for 2.1 s (cold cache) / 0.86 s (warm) on an M4 Pro while the backdrop generator built. With #1087 that frame is 25 ms, and the build (1.7–1.8 s) runs on a worker while the panorama keeps drawing.
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#250
No description provided.