keep a busy descriptor slot, and leave the address-space walk off in release #2877

Open
github-bot wants to merge 1 commit from github-bot/gh-2877 into main AGit
Owner

@⁠kadiratesdev on GitHub · 2026-11-29 18:28 UTC · original
kadiratesdev:pr/tested-rtx30-cuts → main · +43 −6 · 2 files · 1 commits · open

Fixes #

What it changes

Two small cuts we have been running on an RTX 3080 Ti / Ryzen 5800X fork and can answer questions about. Not a frame-rate claim.

  • Pressure eviction already learned that a descriptor slot was busy, then ignored that and could drop the host copy under the thread still making the slot. The sweep now continues. SLOT_EVICT[6] stays the used-meanwhile path and does not replace this continue.
  • The five-second VirtualQuery of the whole address space holds Windows' address-space lock against VirtualProtect and write-watch resets. Release leaves it off. VICTORY_PROCESS_MEMORY=1 asks for it. =0 turns it off in a diagnostics build.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 3080 Ti 12 GB, Ryzen 5800X, 32 GB. No in-game before/after frame time on this PC.
  • Before: a busy slot could still be evicted; release walked the address space every 5 s.
  • After: the busy flag skips that eviction; release does not start the walk unless asked.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader change.
  • cargo test passed for the crates it touches: yes. a_busy_slot_is_not_evicted and address_space_walk_is_diagnostics_only_unless_asked_for, release, --locked.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2486, #2783

#2486 also skips a busy slot, and adds launcher scripts and other files this tree does not ship. This is only the GPU continue.

#2783 also turns the walk off, and bundles a miss-program change and a Foxhound worker cap. This is only procmem.rs. The 222 ms to 88 ms note in that PR is the author's Ryzen 5 5600 + RTX 5070 measurement, not ours.

#2764 is the reflection-miss clear. It is already open, so it is not repeated here. We tested an equivalent locally (a_left_out_miss_output_is_cleared_unless_turned_off).

**@⁠kadiratesdev** on GitHub · 2026-11-29 18:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2877) `kadiratesdev:pr/tested-rtx30-cuts` → `main` · +43 −6 · 2 files · 1 commits · open Fixes # ## What it changes Two small cuts we have been running on an RTX 3080 Ti / Ryzen 5800X fork and can answer questions about. Not a frame-rate claim. - Pressure eviction already learned that a descriptor slot was busy, then ignored that and could drop the host copy under the thread still making the slot. The sweep now continues. `SLOT_EVICT[6]` stays the used-meanwhile path and does not replace this continue. - The five-second `VirtualQuery` of the whole address space holds Windows' address-space lock against `VirtualProtect` and write-watch resets. Release leaves it off. `VICTORY_PROCESS_MEMORY=1` asks for it. `=0` turns it off in a diagnostics build. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 3080 Ti 12 GB, Ryzen 5800X, 32 GB. No in-game before/after frame time on this PC. - Before: a busy slot could still be evicted; release walked the address space every 5 s. - After: the busy flag skips that eviction; release does not start the walk unless asked. - For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader change. - `cargo test` passed for the crates it touches: yes. `a_busy_slot_is_not_evicted` and `address_space_walk_is_diagnostics_only_unless_asked_for`, release, `--locked`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2486, #2783 #2486 also skips a busy slot, and adds launcher scripts and other files this tree does not ship. This is only the GPU continue. #2783 also turns the walk off, and bundles a miss-program change and a Foxhound worker cap. This is only `procmem.rs`. The 222 ms to 88 ms note in that PR is the author's Ryzen 5 5600 + RTX 5070 measurement, not ours. #2764 is the reflection-miss clear. It is already open, so it is not repeated here. We tested an equivalent locally (`a_left_out_miss_output_is_cleared_unless_turned_off`).
A slot another thread is still making must not lose its host copy.
The later used-meanwhile counter does not replace that continue.

VirtualQuery over the whole process every 5 s holds the address-space
lock. Release leaves that walk off unless VICTORY_PROCESS_MEMORY=1.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:28:57 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-29 18:28 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-29 18:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2877#pullrequestreview-6104194346) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-30 04:52 UTC · original · edited 2026-11-30 09:56 UTC

We ran a test of VICTORY_PROCESS_MEMORY=0 on current main (41adb551), which is the release default this PR proposes. We did not test the busy-slot change.

On this machine the walk takes about 1.1 to 1.2 s (at most 1.5 s) over about 103,000 regions, every 5 s, on its own thread.

run with the walk off CPU prep (ms/frame) controls at that point fps (mean) controls at that point
1 65.1 69.2 12.39 11.82
2 59.9 68.5 14.13 11.68
3 62.8 62.7 12.88 12.79
4 63.6 62.7 11.93 12.90
5 61.6 61.3 13.69 12.99

Runs 1 and 2 came from a session whose controls drifted by 9 ms, so they looked like a gain. We ran 3 to 5 in ABBA order with three controls that agreed within 1.4 ms: +0.4 ms and −0.5 %, so no change.

We also split the 1 s frame-time lines of five control runs (walk on) into the seconds that overlap a walk and the others. The seconds during a walk have the same median frame (+0.3 ms) and the same longest frame per second (+0.2 ms, median).

The one place it may show is the rarest hitch. The single worst frame of the run fell during a walk in 4 of the 5 control runs, while only about a third of the seconds overlap a walk. With the walk off, the worst frames were 269 to 284 ms, against 310 to 391 ms in the same session's controls. The p99 did not move (114 to 142 ms both ways). So on an 8-core CPU it does not touch the typical frame; a 6-core CPU may differ.

Picture: 0 defects in 400 frames with the walk off.

Setup:

  • Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11;
  • Series X, 1440p with DLAA (DLSS at native resolution; corrected, this line said DLSS Performance at first), frame generation and ray tracing off;
  • main 41adb551 with VICTORY_PROCESS_MEMORY=0, against 41adb551 without it;
  • 150 s runs: two in a first session with four controls, then three more in ABBA order with three controls;
  • every run starts from the same save, restored before each run;
  • prep is the median of the 5 s host lines, fps the mean; each run is compared with the controls interpolated in time.

AI Assisted

**@⁠DoubleD17** on GitHub · 2026-11-30 04:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2877#issuecomment-7269153538) · edited 2026-11-30 09:56 UTC We ran a test of `VICTORY_PROCESS_MEMORY=0` on current main (41adb551), which is the release default this PR proposes. We did not test the busy-slot change. On this machine the walk takes about 1.1 to 1.2 s (at most 1.5 s) over about 103,000 regions, every 5 s, on its own thread. | run with the walk off | CPU prep (ms/frame) | controls at that point | fps (mean) | controls at that point | |---|---|---|---|---| | 1 | 65.1 | 69.2 | 12.39 | 11.82 | | 2 | 59.9 | 68.5 | 14.13 | 11.68 | | 3 | 62.8 | 62.7 | 12.88 | 12.79 | | 4 | 63.6 | 62.7 | 11.93 | 12.90 | | 5 | 61.6 | 61.3 | 13.69 | 12.99 | Runs 1 and 2 came from a session whose controls drifted by 9 ms, so they looked like a gain. We ran 3 to 5 in ABBA order with three controls that agreed within 1.4 ms: **+0.4 ms and −0.5 %**, so no change. We also split the 1 s frame-time lines of five control runs (walk on) into the seconds that overlap a walk and the others. The seconds during a walk have the same median frame (+0.3 ms) and the same longest frame per second (+0.2 ms, median). The one place it may show is the rarest hitch. The single worst frame of the run fell during a walk in 4 of the 5 control runs, while only about a third of the seconds overlap a walk. With the walk off, the worst frames were 269 to 284 ms, against 310 to 391 ms in the same session's controls. The p99 did not move (114 to 142 ms both ways). So on an 8-core CPU it does not touch the typical frame; a 6-core CPU may differ. **Picture:** 0 defects in 400 frames with the walk off. **Setup:** - Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11; - Series X, 1440p with DLAA (DLSS at native resolution; corrected, this line said DLSS Performance at first), frame generation and ray tracing off; - main 41adb551 with `VICTORY_PROCESS_MEMORY=0`, against 41adb551 without it; - 150 s runs: two in a first session with four controls, then three more in ABBA order with three controls; - every run starts from the same save, restored before each run; - prep is the median of the 5 s host lines, fps the mean; each run is compared with the controls interpolated in time. AI Assisted
Author
Owner

@⁠dyshay on GitHub · 2026-11-30 05:50 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. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.

**@⁠dyshay** on GitHub · 2026-11-30 05:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2877#issuecomment-7270048473) 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. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/procmem.rs
  • crates/victory-gpu/src/resource.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2877/head:github-bot/gh-2877'
git switch 'github-bot/gh-2877'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2877'
git switch 'github-bot/gh-2877'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2877'
git switch 'github-bot/gh-2877'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2877'
git switch 'main'
git merge --squash 'github-bot/gh-2877'
git switch 'main'
git merge --ff-only 'github-bot/gh-2877'
git switch 'main'
git merge 'github-bot/gh-2877'
git push origin 'main'
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!2877
No description provided.