memguard: scale the commit floor to the PC's RAM so 16 GB PCs can com… #3379

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

@⁠rickx09x on GitHub · 2026-11-29 22:29 UTC · original
rickx09x:memguard-small-host-commit-floor → main · +174 −11 · 5 files · 1 commits · closed without merging

…pile

A flat 4096 MB commit floor is unreachable on a 16 GB PC (the title commits ~17 GB), so every driver compile was put off: no pipelines, 0 draws, black picture. Below 24 GiB of RAM the default floor is an eighth of the RAM (1536..4096 MB); larger PCs are unchanged and an explicit VICTORY_COMMIT_FLOOR_MB still wins. On small PCs the guard counts pagefile growth as the residency state already does, and texture staging does not grow for 3 s after a compile is put off for commit. Adds tests for the floor and the RTX 3070 Ti (30 series, no DLSS frame generation).

Claude-Session: https://claude.ai/code/session_01QCd6hXPEAyMEqW76Nojdgd

Fixes #

What it changes

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing):
  • Before:
  • After:
  • For shader changes, the wave sizes tested (32 and/or 64 lanes):
  • cargo test passed for the crates it touches: yes / no

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #
**@⁠rickx09x** on GitHub · 2026-11-29 22:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3379) `rickx09x:memguard-small-host-commit-floor` → `main` · +174 −11 · 5 files · 1 commits · closed without merging …pile A flat 4096 MB commit floor is unreachable on a 16 GB PC (the title commits ~17 GB), so every driver compile was put off: no pipelines, 0 draws, black picture. Below 24 GiB of RAM the default floor is an eighth of the RAM (1536..4096 MB); larger PCs are unchanged and an explicit VICTORY_COMMIT_FLOOR_MB still wins. On small PCs the guard counts pagefile growth as the residency state already does, and texture staging does not grow for 3 s after a compile is put off for commit. Adds tests for the floor and the RTX 3070 Ti (30 series, no DLSS frame generation). Claude-Session: https://claude.ai/code/session_01QCd6hXPEAyMEqW76Nojdgd <!-- Thanks for the pull request. Please label it (pr-fix, pr-feature, pr-performance, pr-diagnostics, pr-refactor, pr-docs or pr-tests, plus the area labels), or put the label in the title, like [pr-fix]. --> Fixes # ## What it changes <!-- What was wrong, and what this does about it. --> ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): - Before: - After: - For shader changes, the wave sizes tested (32 and/or 64 lanes): - `cargo test` passed for the crates it touches: yes / no ## Checked for overlap - [ ] I searched the open pull requests for the same issue and for the files this touches. Related: #
A flat 4096 MB commit floor is unreachable on a 16 GB PC (the title commits
~17 GB), so every driver compile was put off: no pipelines, 0 draws, black
picture. Below 24 GiB of RAM the default floor is an eighth of the RAM
(1536..4096 MB); larger PCs are unchanged and an explicit
VICTORY_COMMIT_FLOOR_MB still wins. On small PCs the guard counts pagefile
growth as the residency state already does, and texture staging does not grow
for 3 s after a compile is put off for commit. Adds tests for the floor and
the RTX 3070 Ti (30 series, no DLSS frame generation).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QCd6hXPEAyMEqW76Nojdgd
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 22:35:05 +00:00
Author
Owner

@⁠cloph-dsp on GitHub · 2026-11-30 10:22 UTC · original

Independent verification (AI-assisted: Hy4 flash). Windows / rustc 1.100.0 (MSVC), dedicated CARGO_TARGET_DIR=D:\Victory-Contrib\NVIDIA-Contrib\target-3379, worktree at ce65cd94 with base 716a0c99 (single-commit parent). Ran, one at a time:

cargo test --locked -p victory-gpu --lib -- memguard::tests::a_16_gb_pc_gets_a_commit_floor_it_can_reach_and_a_large_pc_the_old_one --exact --test-threads=1 --quiet
cargo test --locked -p victory-gpu --lib -- memguard::tests::a_commit_floor_the_switch_names_is_kept_on_any_pc --exact --test-threads=1 --quiet
cargo test --locked -p victory-gpu --lib -- memguard::tests::the_failing_16_gb_pc_is_let_compile_where_it_has_the_room --exact --test-threads=1 --quiet
cargo test --locked -p victory-gpu --lib -- memguard::tests::staging_is_held_only_until_the_hold_lapses --exact --test-threads=1 --quiet
cargo test --locked -p victory-gpu --lib -- streamline::card_tests::the_rtx_3070_ti_is_ampere_and_has_no_dlss_frame_generation --exact --test-threads=1 --quiet

All five: test result: ok. 1 passed; 0 failed; 979 filtered out (exit 0). Negative control: git grep -F for each test name on the base commit finds no match — all five are new. git diff --check 716a0c99..ce65cd94 clean (exit 0). GPU/driver: N/A — these are CPU-only synthetic figures and card-name strings. No game data, assets, extracted shaders, DRM or decrypt used.

**@⁠cloph-dsp** on GitHub · 2026-11-30 10:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3379#issuecomment-7275500518) Independent verification (AI-assisted: Hy4 flash). Windows / rustc 1.100.0 (MSVC), dedicated `CARGO_TARGET_DIR=D:\Victory-Contrib\NVIDIA-Contrib\target-3379`, worktree at `ce65cd94` with base `716a0c99` (single-commit parent). Ran, one at a time: ``` cargo test --locked -p victory-gpu --lib -- memguard::tests::a_16_gb_pc_gets_a_commit_floor_it_can_reach_and_a_large_pc_the_old_one --exact --test-threads=1 --quiet cargo test --locked -p victory-gpu --lib -- memguard::tests::a_commit_floor_the_switch_names_is_kept_on_any_pc --exact --test-threads=1 --quiet cargo test --locked -p victory-gpu --lib -- memguard::tests::the_failing_16_gb_pc_is_let_compile_where_it_has_the_room --exact --test-threads=1 --quiet cargo test --locked -p victory-gpu --lib -- memguard::tests::staging_is_held_only_until_the_hold_lapses --exact --test-threads=1 --quiet cargo test --locked -p victory-gpu --lib -- streamline::card_tests::the_rtx_3070_ti_is_ampere_and_has_no_dlss_frame_generation --exact --test-threads=1 --quiet ``` All five: `test result: ok. 1 passed; 0 failed; 979 filtered out` (exit 0). Negative control: `git grep -F` for each test name on the base commit finds no match — all five are new. `git diff --check 716a0c99..ce65cd94` clean (exit 0). GPU/driver: N/A — these are CPU-only synthetic figures and card-name strings. No game data, assets, extracted shaders, DRM or decrypt used.
github-bot closed this pull request 2026-12-01 18:58:48 +00:00

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!3379
No description provided.