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

Closed
gabrielecabrini wants to merge 11 commits from upstream-pr/2743 into main
gabrielecabrini commented 2026-11-29 16:46:36 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gabrielecabrini on 2026-11-29T16:46:36Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552872147 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743). Originally posted by [gabrielecabrini](https://github.com/gabrielecabrini) on 2026-11-29T16:46:36Z. --- ## 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.
dyshay commented 2026-11-29 17:49:00 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-29T17:49:00Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7259986372 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743#issuecomment-7259986372). Originally posted by [dyshay](https://github.com/dyshay) on 2026-11-29T17:49:00Z. --- 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.
SergDi commented 2026-11-30 09:32:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SergDi on 2026-11-30T09:32:29Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7274347919 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743#issuecomment-7274347919). Originally posted by [SergDi](https://github.com/SergDi) on 2026-11-30T09:32:29Z. --- 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.
gabrielecabrini commented 2026-11-30 17:20:55 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gabrielecabrini on 2026-11-30T17:20:55Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7286128651 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2743#issuecomment-7286128651). Originally posted by [gabrielecabrini](https://github.com/gabrielecabrini) on 2026-11-30T17:20:55Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

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