faultbook: the window's end writes the book once #2569
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!2569
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2569"
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?
@sh3nw4ld on GitHub · 2026-11-29 14:26 UTC · original
sh3nw4ld:fix-faultbook-final-race→main· +63 −1 · 1 files · 1 commits · openWhat this fixes
The gate of a window's end let two frames write the book for one window: the count's last two
fetch_subresults are 1 and 0, and both fail the> 1check. A frame past the end that came throughon()before the first writer turned the switch off wrote again —MADEthen counted two, and the next scheduled time (VICTORY_FAULT_BOOK_AT) was read one slot on and skipped. The swap of the on switch is now the one writer's decision, under every interleave: whoever comes first writes, the other goes back.Tests
the_window_end_writes_the_book_onceruns a window's last two frames on two threads released together (a barrier after a 39-frame drain,LEFTat 1) and asserts one file (<file>.0.bin, no.1.bin) after the writes land. It passes deterministically with the change; on the pre-change gate the double write needs the two frames'on()reads to fall before the first writer's store, which the test's release does not force — the interleave is provable by inspection, and the test pins the contract. Runs under--features diagnostics; note the diagnostics build needs the copystat/host fix of the "diagnostics: the build compiles again" PR to compile on main.cargo test -p victory-gpu --lib --locked --features diagnostics the_window_end: 1 passed, 0 failed.Environment
Windows 11, RTX 4060 Ti, Rust 1.98.1 (pinned).
8cd7275b9bto109e0d8177109e0d8177to1aac27461b1aac27461bto7a853a212f7a853a212fto828e416f67828e416f67to5b62091b74View 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.