Pipeline library: a pipeline made during a save is handed out at once, stored after it (opt-in) #371
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!371
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-371"
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?
@Esteban-V on GitHub · 2026-11-26 22:49 UTC · original
Esteban-V:perf/pipeline-library-unblock→a-publier· +181 −9 · 1 files · 1 commits · openA library save holds
saving.write()acrossGetSerializedSizeandSerializeof the whole library (1.3-1.5 GB), at most every 20 s. A pipeline finished meanwhile waits onsaving.read()(crates/victory-gpu/src/pipeline/library.rs:570) to be stored beforepipeline()returns it, so every compile worker that finishes during a save is blocked and draws miss their wait.docs/findings.mdreports 270-660 s of a run with frames over 200 ms, nearly all while pipelines were being made. This adds three switches, all off or unset by default, so a pipeline made during a save can be handed out at once and stored after it.VICTORY_LIBRARY_STORE_LATER=1: when a save holds the library, the pipeline is handed out at once and queued (store_later); the save stores the queue before and after it writes. Lock order staysone_callthensaving. No effect withVICTORY_LIBRARY_LOCK=1.VICTORY_LIBRARY=0: no library at all, to measure memory and frames without it (nothing is saved, the early and slow lists included).VICTORY_LIBRARY_SAVE_S=N: save interval, default 20, minimum 5.TRIMMEDandLOADED_ATare deliberately not touched after a save, because of the device removals the file header records (runs 72, 73, 82).Known gap: a pipeline queued during the very last save at exit, after its final drain, is handed out but not cached for the next run.
Already merged in DoubleGhosty/cool_fox (4a028f3), whose launcher now turns
VICTORY_LIBRARY_STORE_LATER=1on by default.Testing
windows-latest): Clippy, default tests and diagnostics tests pass (run).x86_64-pc-windows-msvcon a macOS host (cargo clippy --workspace --all-targets -- -D warnings, default features and--all-features).the_save_interval_is_read_with_a_floorandpipelines_made_during_a_save_are_stored_onceadded.@MamaLeVrai on GitHub · 2026-11-27 00:22 UTC · original
Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at
aaddd49:cargo test --release -p victory-gpu --lib398 passed, 0 failed, 34 ignored. Not run in the game withVICTORY_LIBRARY_STORE_LATER=1.AI-assisted (Claude Code); no game data.
View 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.