F2 explainer: draws skipped while the memory guard puts compiles off say so #2743

Closed
github-bot wants to merge 1 commit from github-bot/gh-2743 into main AGit
Owner

@⁠gabrielecabrini on GitHub · 2026-11-29 16:46 UTC · original
gabrielecabrini:fix/memguard-deferral-not-a-failure → main · +21 −4 · 2 files · 1 commits · closed without merging

What

The F2 explainer shows the draws left out by pipelines the memory guard keeps putting off as THEIR SHADERS CANNOT BE CONVERTED YET / NOTHING ON YOUR SIDE, when the cause is the PC's memory.

(This PR first also kept those pipelines out of refused::failed/retry. That part landed upstream with #2578, so after the rebase only the explainer note is left.)

Evidence

A 29-minute Linux run (Series S, RTX 4070 SUPER 12 GB, 31 GB RAM, Proton Experimental, 2026-11-29): the guard logged memory guard: a compile is put off ... reason="the commit left would fall under its floor" more than 1,024 times, with free_commit_mb between 2,905 and 3,765 against the 4,096 MB floor for the whole session. The panel told the player nothing could be done on their side.

Fix

  • memguard.rs: put_off() exposes the count of compiles put off.
  • host/panel.rs: a twelfth panel counter. When compiles were put off in the last half second, the note reads NOTE: N DRAWS SKIPPED, NO MEMORY FOR THEIR SHADERS / CLOSE OTHER APPS, OR GIVE THE PC MORE SWAP OR PAGE FILE. Otherwise the note is as before.

Tests

  • the_advisor_names_what_limits_the_frame_rate also checks the memory note and its width.
  • The panel tests pass (10, cross-built with cargo xwin, run under Proton); clippy -p victory-gpu --all-targets is clean.
**@⁠gabrielecabrini** on GitHub · 2026-11-29 16:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743) `gabrielecabrini:fix/memguard-deferral-not-a-failure` → `main` · +21 −4 · 2 files · 1 commits · closed without merging ## What The F2 explainer shows the draws left out by pipelines the memory guard keeps putting off as `THEIR SHADERS CANNOT BE CONVERTED YET` / `NOTHING ON YOUR SIDE`, when the cause is the PC's memory. (This PR first also kept those pipelines out of `refused::failed`/`retry`. That part landed upstream with #2578, so after the rebase only the explainer note is left.) ## Evidence A 29-minute Linux run (Series S, RTX 4070 SUPER 12 GB, 31 GB RAM, Proton Experimental, 2026-11-29): the guard logged `memory guard: a compile is put off ... reason="the commit left would fall under its floor"` more than 1,024 times, with `free_commit_mb` between 2,905 and 3,765 against the 4,096 MB floor for the whole session. The panel told the player nothing could be done on their side. ## Fix - `memguard.rs`: `put_off()` exposes the count of compiles put off. - `host/panel.rs`: a twelfth panel counter. When compiles were put off in the last half second, the note reads `NOTE: N DRAWS SKIPPED, NO MEMORY FOR THEIR SHADERS` / `CLOSE OTHER APPS, OR GIVE THE PC MORE SWAP OR PAGE FILE`. Otherwise the note is as before. ## Tests - `the_advisor_names_what_limits_the_frame_rate` also checks the memory note and its width. - The `panel` tests pass (10, cross-built with `cargo xwin`, run under Proton); `clippy -p victory-gpu --all-targets` is clean.
A driver compile the memory guard puts off returns the driver's own
E_OUTOFMEMORY (memguard::refusal), and every Err went through
refused::failed. So pipelines the guard was still to make again were
counted as refused for the run: a Linux run's summary read "46 host
pipelines failed (... 0x8007000e)", all of them put off for the commit
floor, with free commit at 2.9 to 3.8 GB for the whole session
(2026-11-29). The VICTORY_SHADER_CAPS retry would also have made such a
pipeline straight from the driver, past the guard.

refused::failed and refused::retry now return early while
memguard::deferred() is set for the thread (make_with takes the flag
before the build and again only after it, so it is still set there).

The F2 explainer showed the draws those pipelines leave out as
"THEIR SHADERS CANNOT BE CONVERTED YET / NOTHING ON YOUR SIDE". With
compiles put off in the last half second (memguard::put_off, a new
panel counter) it now says "NO MEMORY FOR THEIR SHADERS" and suggests
closing apps or more swap or page file.

a_compile_put_off_for_memory_is_no_failure covers failed and retry;
the advisor test covers the new note.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:49:22 +00:00
Author
Owner

@⁠dyshay on GitHub · 2026-11-29 17:49 UTC · original

Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with --profile diag --features diagnostics, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series S with ray tracing, and Series X, DLSS Quality). Frame times will follow here.

**@⁠dyshay** on GitHub · 2026-11-29 17:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743#issuecomment-7259986372) Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs), branch `janus-prs`). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with `--profile diag --features diagnostics`, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series S with ray tracing, and Series X, DLSS Quality). Frame times will follow here.
Author
Owner

@⁠SergDi on GitHub · 2026-11-30 09:32 UTC · original

Independent Windows confirmation on base 41adb55167fa778fcaa5dc36fa18a1fa8dacd657 plus this PR's f046d18000653e5cb496325688a5ef2bf96b7f61, RTX 4080 16 GB / Ryzen 5 7600 / 32 GB RAM / driver 610.88.

RED/GREEN: applying only a_compile_put_off_for_memory_is_no_failure to base fails at put off: not recorded (left 1, right 0). With the full PR, the focused suites pass: pipeline::refused 1, host::panel 9, memguard 6 (cargo test --locked --release -p victory-gpu --lib <filter> -- --test-threads=1 --nocapture).

The misclassification also occurs in my existing ordinary logs: several failure keys are immediately preceded by guard deferrals. Guard logging is sampled, so not every key has direct timestamp adjacency; I do not infer an actual driver refusal from the HRESULT alone.

Separate induced runtime check: process-local VICTORY_COMMIT_FLOOR_MB=7168, cold cache, copied save, 1440p DLAA, FG/RT off, THIN0. With this PR alone, the guard's so_far counter reached at least 512, while host pipeline failed keys stayed 0 and no pipeline-failures summary appeared. Base runs at the same floor recorded 252 and 86 failed keys over their full runs. This is classification evidence, not a paired FPS comparison.

The patch does not fix the wait loop: its run still had 10 screen waits of 10000 ms in the 120 s window / 12 over the full run. I tested #3398 separately for that behavior.

Limits: the new F2 text did not render in the severely stalled runtime capture, so panel wording is verified by unit tests only. Preservation of real driver-refusal reporting is likewise covered by the unit test; I did not induce a real driver OOM. The periodic compilemem counter can remain stale under starvation, so I used the guard's counter rather than treating sampled log-line counts as total deferrals.

AI assistance: Claude performed the isolated tests and analysis; Codex reviewed the evidence. No raw title logs or memory dumps are attached.

**@⁠SergDi** on GitHub · 2026-11-30 09:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743#issuecomment-7274347919) Independent Windows confirmation on base `41adb55167fa778fcaa5dc36fa18a1fa8dacd657` plus this PR's `f046d18000653e5cb496325688a5ef2bf96b7f61`, RTX 4080 16 GB / Ryzen 5 7600 / 32 GB RAM / driver 610.88. **RED/GREEN:** applying only `a_compile_put_off_for_memory_is_no_failure` to base fails at `put off: not recorded` (left 1, right 0). With the full PR, the focused suites pass: `pipeline::refused` **1**, `host::panel` **9**, `memguard` **6** (`cargo test --locked --release -p victory-gpu --lib <filter> -- --test-threads=1 --nocapture`). The misclassification also occurs in my existing ordinary logs: several failure keys are immediately preceded by guard deferrals. Guard logging is sampled, so not every key has direct timestamp adjacency; I do not infer an actual driver refusal from the HRESULT alone. **Separate induced runtime check:** process-local `VICTORY_COMMIT_FLOOR_MB=7168`, cold cache, copied save, 1440p DLAA, FG/RT off, THIN0. With this PR alone, the guard's `so_far` counter reached at least **512**, while `host pipeline failed` keys stayed **0** and no pipeline-failures summary appeared. Base runs at the same floor recorded **252** and **86** failed keys over their full runs. This is classification evidence, not a paired FPS comparison. The patch does not fix the wait loop: its run still had **10 screen waits of 10000 ms in the 120 s window / 12 over the full run**. I tested #3398 separately for that behavior. Limits: the new F2 text did not render in the severely stalled runtime capture, so panel wording is verified by unit tests only. Preservation of real driver-refusal reporting is likewise covered by the unit test; I did not induce a real driver OOM. The periodic compilemem counter can remain stale under starvation, so I used the guard's counter rather than treating sampled log-line counts as total deferrals. AI assistance: Claude performed the isolated tests and analysis; Codex reviewed the evidence. No raw title logs or memory dumps are attached.
github-bot closed this pull request 2026-11-30 17:30:17 +00:00
github-bot changed title from Memory guard: a compile put off is no refused pipeline, and the explainer says so to F2 explainer: draws skipped while the memory guard puts compiles off say so 2026-11-30 18:10:18 +00:00
Author
Owner

@⁠gabrielecabrini on GitHub · 2026-11-30 17:20 UTC · original

Closing: the refused/retry part landed with #2578, and the panel note alone is of little use now that #2886 makes the pipelines put off again and again.

**@⁠gabrielecabrini** on GitHub · 2026-11-30 17:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743#issuecomment-7286128651) Closing: the refused/retry part landed with #2578, and the panel note alone is of little use now that #2886 makes the pipelines put off again and again.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2743
No description provided.