WIP: Preload window: say how many pipelines an earlier preload made #479

Draft
Jesper-A wants to merge 1 commit from Jesper-A/Darner:up-preload-window-made-before into Main
Collaborator

Refs #128

Contributor role (optional)

  • Fluxer ID:

What it changes

  • The problem on main: after a preload was stopped and started again, step 2's count line in the preload window read "0 of 73,558 pipelines (0 %)" and looked like a fresh start, although 6,469 pipelines were skipped as made before. The preload's own log line says so (darner-preload-20261205-005254-30264.log, 00:52:54Z): 88872 pipelines known, ... 6469 made before by what is in them ..., 8845 the same as another, 0 bad; 73558 to make. The window used only the "to make" number.
  • Step 2's count line now ends with continued: 6,469 made before, taken from the "made before" number of that same pipelines known line. It shows only in step 2 and only when the number is above 0. The total, the percentage and the time left are unchanged: this is display only.
  • Files: apps/darner/src/preload_ui.rs (a before field in Progress, read in note, appended in lines), the new key preload.progress.made_before in locales/en.json and locales/zh-CN.json, one line in docs/findings.md.
  • Tests: new a_continued_preload_says_what_was_made_before (the line above gives the count line 10 of 73,558 pipelines (0 %) continued: 6,469 made before; a fresh start and another step say nothing), and one new assert in the existing lines test.
  • Builds on the preload window already on main (merge commits a01c0ac63, bedc70610, 02a0edf85). Nothing is ported from another fork.
  • The zh-CN text is ours and has not been read by a native speaker.

How it was tested

  • Tested revision: branch up-preload-window-made-before @ 606d44990, on trustno1/main d91d8e4d6.
  • Commands and results (on 606d44990):
    • cargo clippy -p darner --all-targets --locked -- -D warnings: clean
    • cargo clippy -p darner --all-targets --all-features --locked -- -D warnings: clean
    • cargo test -p darner --bin darner --locked preload_ui: 10 passed, 0 failed, 1 ignored
  • Changes a default: no (a longer text on one line in a window, nothing else).
  • A/B result: not applicable, no speed claim.
  • Gates run on that revision: the narrower per-crate forms above only. The three workspace gates in AGENTS.md (cargo clippy --workspace ... twice, cargo test --workspace --locked) were not run. There is no CI.
  • Gameplay: not run in game for this change. The symptom was seen by the user on RTX 2070 SUPER 8 GB, 2026-12-05, which is where the log line above comes from.
  • Not tested: how the longer count line fits the window width on screen (the text is about 30 characters longer; the window was not looked at with it), other window scales or languages, a real continued preload with this build.
  • Shader wave sizes: not relevant.
  • Hardware dependence: likely general.
  • Coverage gaps: see "Not tested" above.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only). Not run in game; it is a text change in the window, covered by unit tests only. Left open on purpose: this is a WIP.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md. (No game data; the log line is our own tool's output.)
  • I recorded this PR's dependencies below.
    • Depends on: none

Spec dependence

  • Likely general (helps any card): the whole change. It reads a number our own log line already carries and shows it.
  • May depend on our specs (RTX 2070 SUPER Turing wave32, 8 GB VRAM near budget, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Series S + DLSS Performance): nothing known. The size of the "made before" number depends on the machine and what was preloaded earlier.
  • Untested elsewhere (other GPU generations, AMD, 12-16 GB, Series X, frame generation, ray tracing): all of it. Not run on any other card.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #450 (Preload step 3 goes on from a stopped pass), #458 and #467 (both touch apps/darner/src/preload_ui.rs). All three are our own WIP PRs.
  • Replaces or overlaps: no PR does the same thing. A textual conflict is likely with #450 in docs/findings.md (both append at the end, after line 514). In preload_ui.rs and the locale files the hunks of #450, #458 and #467 do not touch the same lines as this one, as far as a diff against d91d8e4d6 shows. Per our rule, WIP drafts are posted as they are; this one is based on d91d8e4d6 and is not rebased.

This change was made with AI assistance (Claude Code).

Refs #128 ## Contributor role (optional) - Fluxer ID: ## What it changes - The problem on main: after a preload was stopped and started again, step 2's count line in the preload window read "0 of 73,558 pipelines (0 %)" and looked like a fresh start, although 6,469 pipelines were skipped as made before. The preload's own log line says so (darner-preload-20261205-005254-30264.log, 00:52:54Z): `88872 pipelines known, ... 6469 made before by what is in them ..., 8845 the same as another, 0 bad; 73558 to make`. The window used only the "to make" number. - Step 2's count line now ends with `continued: 6,469 made before`, taken from the "made before" number of that same `pipelines known` line. It shows only in step 2 and only when the number is above 0. The total, the percentage and the time left are unchanged: this is display only. - Files: `apps/darner/src/preload_ui.rs` (a `before` field in `Progress`, read in `note`, appended in `lines`), the new key `preload.progress.made_before` in `locales/en.json` and `locales/zh-CN.json`, one line in `docs/findings.md`. - Tests: new `a_continued_preload_says_what_was_made_before` (the line above gives the count line `10 of 73,558 pipelines (0 %) continued: 6,469 made before`; a fresh start and another step say nothing), and one new assert in the existing lines test. - Builds on the preload window already on main (merge commits a01c0ac63, bedc70610, 02a0edf85). Nothing is ported from another fork. - The zh-CN text is ours and has not been read by a native speaker. ## How it was tested - Tested revision: branch up-preload-window-made-before @ 606d44990, on trustno1/main d91d8e4d6. - Commands and results (on 606d44990): - `cargo clippy -p darner --all-targets --locked -- -D warnings`: clean - `cargo clippy -p darner --all-targets --all-features --locked -- -D warnings`: clean - `cargo test -p darner --bin darner --locked preload_ui`: 10 passed, 0 failed, 1 ignored - Changes a default: no (a longer text on one line in a window, nothing else). - A/B result: not applicable, no speed claim. - Gates run on that revision: the narrower per-crate forms above only. The three workspace gates in AGENTS.md (`cargo clippy --workspace ...` twice, `cargo test --workspace --locked`) were not run. There is no CI. - Gameplay: not run in game for this change. The symptom was seen by the user on RTX 2070 SUPER 8 GB, 2026-12-05, which is where the log line above comes from. - Not tested: how the longer count line fits the window width on screen (the text is about 30 characters longer; the window was not looked at with it), other window scales or languages, a real continued preload with this build. - Shader wave sizes: not relevant. - Hardware dependence: likely general. - Coverage gaps: see "Not tested" above. ## Checklist - [ ] I ran this change in the game, or say below why it can't be (docs, tests only). Not run in game; it is a text change in the window, covered by unit tests only. Left open on purpose: this is a WIP. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. (No game data; the log line is our own tool's output.) - [x] I recorded this PR's dependencies below. - Depends on: none ## Spec dependence - Likely general (helps any card): the whole change. It reads a number our own log line already carries and shows it. - May depend on our specs (RTX 2070 SUPER Turing wave32, 8 GB VRAM near budget, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Series S + DLSS Performance): nothing known. The size of the "made before" number depends on the machine and what was preloaded earlier. - Untested elsewhere (other GPU generations, AMD, 12-16 GB, Series X, frame generation, ray tracing): all of it. Not run on any other card. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #450 (Preload step 3 goes on from a stopped pass), #458 and #467 (both touch `apps/darner/src/preload_ui.rs`). All three are our own WIP PRs. - Replaces or overlaps: no PR does the same thing. A textual conflict is likely with #450 in `docs/findings.md` (both append at the end, after line 514). In `preload_ui.rs` and the locale files the hunks of #450, #458 and #467 do not touch the same lines as this one, as far as a diff against d91d8e4d6 shows. Per our rule, WIP drafts are posted as they are; this one is based on d91d8e4d6 and is not rebased. This change was made with AI assistance (Claude Code).
A preload that continued after a stopped one showed 0 of N (0 %) with only
the pipelines still to make as N, so it looked like a restart. Step 2 now
adds 'continued: N made before' to the count line, read from the made before
number of the preload's pipelines known line. Display only: the total, the
percentage and the time left are unchanged.

This change was made with AI assistance (Claude Code).
Contributor

I checked continued preload on 606d44990 on Windows with an RTX 3060 Laptop GPU. I primed 16 distinct synthetic pipelines through the public CLI, then ran the 256-pipeline set in the same temporary cache. Step 2 reported 16 made before and 240 to make, and advanced to 200 of 240. With all 256 already made, a third run logged 256 made before and 0 to make. Replaying that state produced Counting with no continuation suffix. Step 3 began 6 ms later in that run.

I also checked the native count line in English and Simplified Chinese with the PR's paint code and GDI font. The 600 px client at 96 DPI gives this line 548 px. With your 6,469 prior pipelines, the early count at 10 of 73,558 fits. At 73,400 of 73,558 (99%, about a minute left), both translations extend past the right edge.

Count line width At 10, before the ETA At 73,400, with the ETA
English 393 px 563 px
Simplified Chinese 449 px 619 px

In English the number 6,469 remains visible and the end of “made before” is clipped. In Simplified Chinese the number itself falls outside the count rectangle, so a user cannot see how many pipelines carried over. As a sizing check, the shorter suffixes (6,469 prior) and (此前已完成 6,469) brought the complete late-progress lines down to 446 and 510 px respectively in that same 548 px row.

The layout check used an offscreen window and synthetic progress using the pipeline counts from the PR description. The 16→256 continuation was a separate CLI run.

I checked continued preload on `606d44990` on Windows with an RTX 3060 Laptop GPU. I primed 16 distinct synthetic pipelines through the public CLI, then ran the 256-pipeline set in the same temporary cache. Step 2 reported 16 made before and 240 to make, and advanced to `200 of 240`. With all 256 already made, a third run logged 256 made before and 0 to make. Replaying that state produced `Counting` with no continuation suffix. Step 3 began 6 ms later in that run. I also checked the native count line in English and Simplified Chinese with the PR's paint code and GDI font. The 600 px client at 96 DPI gives this line 548 px. With your 6,469 prior pipelines, the early count at 10 of 73,558 fits. At 73,400 of 73,558 (99%, about a minute left), both translations extend past the right edge. | Count line width | At 10, before the ETA | At 73,400, with the ETA | | --- | ---: | ---: | | English | 393 px | 563 px | | Simplified Chinese | 449 px | 619 px | In English the number 6,469 remains visible and the end of “made before” is clipped. In Simplified Chinese the number itself falls outside the count rectangle, so a user cannot see how many pipelines carried over. As a sizing check, the shorter suffixes `(6,469 prior)` and `(此前已完成 6,469)` brought the complete late-progress lines down to 446 and 510 px respectively in that same 548 px row. The layout check used an offscreen window and synthetic progress using the pipeline counts from the PR description. The 16→256 continuation was a separate CLI run.
Jesper-A force-pushed up-preload-window-made-before from 606d449909 to 243455ca36 2026-12-05 16:40:21 +00:00 Compare
Author
Collaborator

Closing this old-engine PR because post-merge's own preload window reads the workers' counts (preload.rs:14), and the old count line this fixes is gone.

Written with AI assistance (Claude Code).

Closing this old-engine PR because post-merge's own preload window reads the workers' counts (`preload.rs:14`), and the old count line this fixes is gone. Written with AI assistance (Claude Code).
Jesper-A closed this pull request 2026-12-06 01:26:39 +00:00
Jesper-A reopened this pull request 2026-12-06 01:52:11 +00:00
Author
Collaborator

Reopened: Main is the default branch again, so the close note above no longer applies.

Written with AI assistance (Claude Code).

Reopened: Main is the default branch again, so the close note above no longer applies. Written with AI assistance (Claude Code).
TrustNo1 changed title from WIP: [pr-fix][startup][shaders] Preload window: say how many pipelines an earlier preload made to WIP: Preload window: say how many pipelines an earlier preload made 2026-12-06 03:28:14 +00:00
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'up-preload-window-made-before:Jesper-A-up-preload-window-made-before'
git switch 'Jesper-A-up-preload-window-made-before'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'Jesper-A-up-preload-window-made-before'
git switch 'Jesper-A-up-preload-window-made-before'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'Jesper-A-up-preload-window-made-before'
git switch 'Jesper-A-up-preload-window-made-before'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'Jesper-A-up-preload-window-made-before'
git switch 'Main'
git merge --squash 'Jesper-A-up-preload-window-made-before'
git switch 'Main'
git merge --ff-only 'Jesper-A-up-preload-window-made-before'
git switch 'Main'
git merge 'Jesper-A-up-preload-window-made-before'
git push origin 'Main'
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
TrustNo1/Darner!479
No description provided.