ExitProcess on device loss, title end and menu quit, so the driver keeps its shader cache #3698
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by stasadance on 2026-11-30T04:21:04Z.
Related: #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
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.