Serialize pipeline book appends across running instances #4892
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4892
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4891"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 13:04 UTC · original
andrewpozdnakov7-jpg:codex2/fix/serialize-book-writers→main· +12 −4 · 1 files · 1 commits · openWhat it changes
The pipeline-book writer opens a file, seeks to the end, and remembers that length for rollback. Two running instances can open the same file and seek to the same offset. The second write can replace records written by the first.
This change lets one Windows handle write the file at a time, from the initial seek through any rollback. Other instances keep their records in the existing retry queue when the file is busy. Readers can still open the book during the write.
How it was tested
open_appendfrom main5fabb46eand812c0c63ee5cfdb723effc23edd4a8cd36a355abagainst a synthetic file with two independent handles. Releasee1251c31has the sameopen_appendas main.cargo xtask policy --stagedaccepted the source file.Checked for overlap
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
[pr-fix][shaders] Serialize pipeline book appends across running instancesto Serialize pipeline book appends across running instances@Dukestar69 on GitHub · 2026-12-01 16:23 UTC · original · approved these changes
Reviewed crates/victory-gpu/src/pipeline/known.rs: opening the pipeline book with FILE_SHARE_READ via OpenOptionsExt::share_mode serializes concurrent writers from seek through potential set_len rollback while still allowing concurrent readers. Verified on Windows (RTX 5090): cargo test -p victory-gpu --lib pipeline::known::tests -- --test-threads=1 (14 passed, 0 failed).
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.