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

Open
rickx09x wants to merge 1 commit from upstream-pr/3379 into main
rickx09x commented 2026-11-29 22:29:49 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rickx09x on 2026-11-29T22:29:49Z.


…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: #
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5555833799 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3379). Originally posted by [rickx09x](https://github.com/rickx09x) on 2026-11-29T22:29:49Z. --- …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: #
cloph-dsp commented 2026-11-30 10:22:24 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cloph-dsp on 2026-11-30T10:22:24Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7275500518 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3379#issuecomment-7275500518). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-30T10:22:24Z. --- 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.
trustno1-coder commented 2026-12-01 18:52:47 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:52:47Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321729968 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3379#issuecomment-7321729968). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:52:47Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3379:upstream-pr/3379'
git switch 'upstream-pr/3379'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/3379'
git switch 'upstream-pr/3379'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3379'
git switch 'upstream-pr/3379'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3379'
git switch 'main'
git merge --squash 'upstream-pr/3379'
git switch 'main'
git merge --ff-only 'upstream-pr/3379'
git switch 'main'
git merge 'upstream-pr/3379'
git push origin 'main'
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!3379
No description provided.