ExitProcess on device loss, title end and menu quit, so the driver keeps its shader cache #3698
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!3698
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3698"
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?
@stasadance on GitHub · 2026-11-30 04:21 UTC · original
stasadance:fix/exit-process-reaper→main· +119 −18 · 7 files · 1 commits · openRelated: #2775
What it changes
Under Wine,
TerminateProcesson our own process is_exit: NVIDIA's shader disk cache never gets finished, so the next run starts a new cache file and compiles everything again.Device loss, the title's own end and the F1 menu's quit rows now save the pipeline library and call
ExitProcessinstead. So a stuck exit can't hang the game, the exit is bounded by a smallvictory reap <pid> <ms>process that kills us afterVICTORY_EXIT_WAIT_MS(default 15 s).VICTORY_EXIT_WAIT_MS=0ends at once withTerminateProcess, as before.Builds on #837 (process-detach notices on ExitProcess).
How it was tested
cargo testpassed for the crates it touches: nativecargo testcannot buildvictory-gpuon a Linux host (same on main), so no;cargo xwin clippyfor the Windows target adds no warning over current main (main already fails-D warningsin victory-shader, victory-loader and victory-gpu).Checked for overlap
e46e4caed9to2ea520613fView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.