Repository navigation
Persist first-use pipeline history without serializing the driver library - #1989
NotADonky43 wants to merge 1 commit into
Conversation
…ustno1-coder#1675, trustno1-coder#1979, trustno1-coder#1989) Source: trustno1-coder/VIctory-NVIDIA pull requests.
|
Independent reproduction on the unpatched 829188e Series S build under low Windows commit headroom. Two full PSO keys kept recurring in draw-drop records late in gameplay. Both were already in known-pipelines.bin, and both were missing from the early list and completed warm-up set. The run repeatedly took around half a second per frame while new compiles were being deferred. A useful end-to-end case for this PR is a late PSO request that reaches the memory guard, followed by an exit before the next library save. Check that its exact key is already in early-pipelines.txt, the subsequent warm-up stores it, and the next game loads that library. Also check the rendered 3D scene before comparing FPS. A white or dark world can still present successfully with a visible HUD and FPS counter. Targeted warm-up follow-up on the same 829188e executable and checkpoint with the same Series S window settings. A private copy of the library stored all 12 observed keys and loaded on the following run. The two recurring keys stopped appearing in draw-drop logs. From 120 to 180 seconds after the first DLSS upscale, one-second reports containing a frame of at least 480 ms went from 51 of 51 to 1 of 57. The draw counts differed in that interval, so this comparison characterizes the stall pattern in these runs. It documents why retaining late PSO keys matters for the next warm-up. |
|
Corroborating Nazzgy's late-PSO history result on Linux/Proton, with two retained runs of unmodified I compared the exact distinct keys in the normal capped
The receiving baseline's The log exposes at most 16 distinct keys per emitted record, and not every frame is logged. These are lower bounds, not the full requested set or a count of driver allocation failures. I have not established that every missing key has a persisted recipe, tested this PR, or obtained a matched prewarm/gameplay improvement. I agree with the proposed request-after-save regression: verify persistence of late requested keys independently, then distinguish described recipes, successful native PSO creation/storage, loads on the next clean start, and actual scene progress. This also seems useful for the separate RT preparation/restart work in #2148. No raw keys, shader bytes or cache contents attached. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High). |
…tory without serializing the driver library) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #1982. A burst of new actual-use keys starts one background writer. It coalesces observations for one second, merges with the on-disk set under a cross-process lock, and atomically replaces only early-pipelines.txt. Clean processes (including warm workers) do not publish. Failures leave a pending retry; a forced save also flushes pending hints. No changes to sampler safety, dispatch ordering, shader translation, or the pressured native-library save interval. Abrupt termination before the first checkpoint can still lose uncheckpointed observations. Native test covers locked-file retry, racing observation, preservation of existing keys, and no-op clean flush. Real Windows RTX 5070 Ti test on cumulative 8388c62b: seeded a private run with 1627 hints, observed 1629 before closing at the checkpoint. Native library SHA256 unchanged. A second process loaded the 1629-key list. Normal cumulative start with 1787 hints reached six heavy rendering windows. No title data or cache contents attached. Related performance evidence in #1268; this PR verifies persistence, not a new FPS gain.