[question][startup] Two preload progress windows (a PowerShell one over the title's splash, a native one): which should stay? #166
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I would like to ask
There are two different windows that show the shader preload, and which one you see depends on how you start the game. Which one do you want to keep?
Read from
mainat57dea7f23. Nothing was run for this question.The two windows
1. The script window (
scripts/preload-window.ps1, a Windows Forms / GDI+ window made by PowerShell)-Splash, elseSplashScreenImageinMicrosoftGame.configorxbs_splash.pngbeside the exe, else a plain window (Get-SplashImage,scripts/preload-window.ps1:17-50).locales/en.json:107), three stages SHADERS / PIPELINES / LIBRARY (locales/en.json:136-138), a count, elapsed time, and a "Skip and start the game" link (en.json:128; Skip asks for confirmation,preload-window.ps1:192-199).scripts/play-nvidia.ps1(:86loads it,:486opens it when the start preloads,-NoPreloadWindowturns it off,:71). You get it withplay-nvidia.ps1 -Preload, and withPLAY_FRAMEGEN.cmdandPLAY_FACES_FIX.cmd, which end inplay-nvidia.ps1(scripts/play-nvidia-framegen.ps1:232). The window is fed by thedarner preload <folder>that the script starts (play-nvidia.ps1:490).2. The native window (
apps/darner/src/preload_ui.rs, drawn with GDI insidedarner.exe)locales/en.json:787), the step, a bar, time left, and two buttons: Play now and Quit (preload_ui.rs:1-4,:312-333). Drawn in the project's colours, no picture (preload_ui.rs:12).darner.exe play: the preload a first start runs by itself (apps/darner/src/main.rs:690-693,play.rs:748-749) andPlay-MyRig.cmd(scripts/play-rig.ps1startsdarner play ... --preload,:517,:809).darner preload <folder> --all(preload_ui.rs:159-161). The script window runsdarner preload <folder>without--all(play-nvidia.ps1:490), so the two preloads are not the same job. I have not traced what each one ends up making.F1 > PRELOAD SHADERS opens whichever window belongs to the launcher that started the game. The menu restarts that launcher with
DARNER_PRELOAD=1(crates/darner-gpu/src/host/menu.rs:1264;play-nvidia.ps1sets itself as the launcher at:374, and reads the variable at:90;darner playreads it atmain.rs:674).Play-Darner.cmdshows neither: it runsdarner.exe run ... --execute(Play-Darner.cmd:44), which does not preload.The native window arrived in
a7d321b14(2026-12-01).One small bug in the script window (observation only)
A tester reported that the newest log line at the bottom of the script window shows raw colour codes (the
[2m...[0m [32m INFOkind). Likely cause, from reading the code and not confirmed: the script only cuts the time and level off a line with the pattern^\S+Z\s+(TRACE|DEBUG|INFO|WARN|ERROR)\s+(preload-window.ps1:418) and never strips colour codes (no code for it anywhere underscripts/), while the console log layer is built without.with_ansi(false)(crates/darner-core/src/logging.rs:186and:211; the file layers have it,:180,:205). It would go away with option (a), so I leave it out of any PR until you choose.Options
(a) Native window everywhere.
play-nvidia.ps1hands its preload todarner.exe's window andpreload-window.ps1goes.-Splashand-NoPreloadWindowgo.(b) The native window draws the title's splash behind it.
preload_ui.rsmust readMicrosoftGame.configand the image at run time, and draw more.(c) Keep both, and document which launcher shows which.
--alldifference).Overlap searched
Searched open and closed issues and pull requests for "preload window", "splash", "preload_ui", "preload-window", "preload", "preload launcher". Nothing asks this question. Related: #128 and #140 (what the native window remembers about an unfinished preload; #140 is a draft for step 1 of #128) and #153 (the done mark across exe copies). They concern the native window; the choice here decides whether they also have to cover the script window. #165 touches the preload launcher's job count.
Spec dependence
Likely general: this is about launchers and window code, not about a graphics card, driver or Series S / X profile. Not tested on anything.
Are you working on a fix?
No, not until you pick one. We can do the PR once you choose.
Drafted with AI assistance (Claude Code).
Minor subtask of this: We're going to rename play-nvidia to build-darner, to reduce confusion. Only developers need to be compiling it, normal users will use a release-built exe.
darner.exe playto start, scripts as thin wrappers #167I would keep the native window and have the launchers call
darner.exe play. The warm-up scope deserves its own migration check because the two windows also select different work today.On
57dea7f, both paths scan the title files for shaders. The script's plainpreloadwarms only the pipelines inearly-pipelines.txtonce the list has enough entries. Below that threshold it warms every known candidate, as the native window does with--all. Both then save eligible early and slow pipelines into the host library using the library step's own selection. Native invocation · Preload dispatch · Library selectionI ran the extracted
preload_usedhelper with Rust 1.98.1 for both invocations with and without a populated list. All four cases matched. I would include those two cache states in the migration check and decide explicitly whether a script user with an existing list should switch to the full warm-up. This was an isolated check of the selection logic.Note:
a01d8f0dcon main strips the colour codes from the darner preload lines in the script's window, which was the side bug mentioned here (checked by reading the code, not a run). The main question (which of the two preload windows stays) is still open.Drafted with AI assistance (Claude Code).
The primary issue is that the pretty scripts/preload-window.ps1 isn't part of the executable, and is a seperate powershell script.
The obvious solution is to remove it, and run darner.exe -preload -all (or whatever the params are) as part of a development build. As long as it doesn't rebuild things that it has already built, that should be fine for most developers.
darner.exe playto start, scripts as thin wrappers #167