WIP: Preload: DARNER_PRELOAD_SCHEDULE keeps the early pipelines first in step 3 #468
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!468
Loading…
Reference in a new issue
No description provided.
Delete branch "Jesper-A/Darner:up-preload-schedule-early"
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?
Refs #266
What it changes
Follow-up to #266 (merged at
a1dde3ce). It answers point 1 of the review: #266 (comment)DARNER_PRELOAD_SCHEDULE=1, step 3 of the preload (into_libraryinapps/darner/src/warm.rs) sortsallearly first, thenslow_firstre-sorts the whole list by recorded time. Known-slow pipelines that are not early then go before every early one. It matters only withDARNER_PRELOAD_SAVE_EVERYset, where a step 3 stopped part-way keeps fewer of the pipelines the game loads first.slow_firston its own. A newchunks_in_two_runs(apps/darner/src/warm/schedule.rs) makes the chunks of the early part first and of the rest after, and none crosses the boundary. The printed line now saysN early and M other pipelines of known time first. With the switch off, nothing changes.two_runs_keep_the_early_ones_first_and_cover_every_place_once) checks that every place is covered once, no chunk crosses the boundary, and the early chunks all come first.Not done here: the other two review points need a game run on a real cold preload (below).
How it was tested
up-preload-schedule-early@974519cdb, based on main47d21cd3b.47d21cd3b. main is nowd91d8e4d6;git merge-treemerges the branch cleanly there. Not rebased, not re-tested on the new main (WIP).cargo clippy -p darner, with and without--all-features, and thedarnertests, reported clean by the porter (hand-back: "gates green"); exact flags and counts not kept. I did not re-run them for this text.cargo clippy --workspace --all-targets --locked -- -D warnings, the same with--all-features, andcargo test --workspace --locked.WIP:comes off (these are the reviewer's points 2 and 3, still open):compile memoryguard holds.DARNER_PRELOAD_SAVE_EVERYset and step 3 stopped part-way: the early pipelines are in the saved library first.warm.rs): #215 is merged; this branch is after it.Spec dependence
Checklist
main.docs/asset-policy.md. (Text only.)Checked for overlap
into_libraryinwarm.rs; expect textual conflicts in the step 3 region. #234 also editsinto_library(older base, not compared hunk by hunk). #165, #270, #365 and #463 touch other parts ofwarm.rs. #451, #459 and #460 touch no file this PR does. No open PR toucheswarm/schedule.rs.This change was made with AI assistance (Claude Code).
I reproduced the step 3 checkpoint change on an RTX 3060 Laptop GPU (6 GiB, driver 621.24), Windows 11 build 26300, 16 GiB system RAM. I compared
974519cdbwith its parent47d21cd3busing one worker,DARNER_PRELOAD_SCHEDULE=1,DARNER_PRELOAD_SAVE_EVERY=30and 128 distinct generated compute pipelines. Half were marked early. The other half had recorded slow times.I sent
pauseafter the seventh completion. Both versions reached eight before the worker parked. At the first timed save I copied the library and its translator marker before sendinggo. Separate copies were then reopened with each group of 64.47d21cd3b974519cdbOn both revisions an empty library loaded 0/64 in each group and the final library loaded 64/64. Each probe also requested one extra pipeline known to be absent so the CLI emitted its load/make counters.
One wording detail for multiple workers: early chunks are claimed first. In a separate CPU fixture with the production queue and timer, I held the first of 64 early pipelines in compilation. A second worker finished all five non-early pipelines before the 30-second save, which therefore contained 0 early and 5 other. All 69 were present at the end. The GPU result above is the single-worker case.
Both workspace Clippy configurations passed on the PR head with warnings denied, all seven schedule tests passed, and
cargo xtask policyreported 564 files OK. Cold game-preload time, peak memory and compile-memory guard behavior under pressure remain open.With DXC 1.8.2505.32 configured,
cargo test --workspace --lockedstopped twice indarner-gpuonwatch::tests::ask_once_by_res_splits_reservations_without_refusals. That test passed alone and failed with the same assertion in the parent's GPU test binary. In each grouped run, 1,789 GPU tests passed, one failed and 81 were ignored. PR #150 covers that assertion.974519cdbctod9213b0547Closing this old-engine PR because post-merge replaced the preload step 3 sort and
DARNER_PRELOAD_SCHEDULEit fixes (preload.rs:16-21). It can be redone on post-merge if they come.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).
WIP: [pr-fix][startup][shaders] Preload: DARNER_PRELOAD_SCHEDULE keeps the early pipelines first in step 3to WIP: Preload: DARNER_PRELOAD_SCHEDULE keeps the early pipelines first in step 3View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.