slow-pipelines.txt counts library loads as slow compiles and never drops a key, so loadable early pipelines wait in the slow queue #442
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#442
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?
@Jesper-Andersson on GitHub · 2026-11-27 08:27 UTC · original
library::note_timeputs a key on the slow list when a make takes 1 s or more, whether the pipeline was compiled or only loaded from the pipeline library, and nothing ever takes a key off. Every listed early pipeline then goes to the slow queue (a quarter of the workers, after all others), including pipelines the library holds.Where
crates/victory-gpu/src/pipeline/library.rs:740-752andcrates/victory-gpu/src/pipeline/make.rs:88-92at014d52d:Why it matters
HostPipeline::newincludes the library load. A load that faults in cold pages of the mapped library can take a second on a slow disk while the title streams, and then that key is on the list for good.Queue::pushsends listed early pipelines toQueue::slow, capped byslow_limit()(workers / 4). Measured on a local branch (main plus about 50 merged PRs, RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, SATA QLC SSD, Series S profile + DLSS): the list held 1,817 of 3,224 early keys, and 736 to 987 early pipelines were still not made at world entry in 3 of 4 runs.Suggestion
PrefetchVirtualMemoryon a background thread). With that on, 0 early pipelines were left at world entry in 6 of 6 runs, and the time until all were made went from 75 s to 34 s in one interleaved pair. The read-ahead of 981 MB took 33-55 ms with the file already in the OS cache.VICTORY_PIPELINE_SLOW_LIST, on by default;VICTORY_LIBRARY_PREFETCH=1, off by default).Not checked
NVIDIA RTX 2070 SUPER only; no AMD, NVMe or Linux runs. The numbers come from a local branch, not main. A first run after a rebuild without
victory warm --usedstill has a backlog of real compiles, which neither change helps.AI use
AI-assisted (Claude Code): code reading, the fix and its unit tests. The game runs were done unattended on the local branch. No game files are included.