Skip to content

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

Open
kadiratesdev wants to merge 1 commit into
trustno1-coder:mainfrom
kadiratesdev:pr/tested-rtx30-cuts
Open

kadiratesdev wants to merge 1 commit into
trustno1-coder:mainfrom
kadiratesdev:pr/tested-rtx30-cuts

Conversation

@kadiratesdev

Copy link
Copy Markdown

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

#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.
Copilot AI balanced review requested due to automatic review settings November 29, 2026 18:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added the pr-fix Pull request: fixes a bug label Nov 29, 2026
@github-actions github-actions Bot changed the title [pr-fix] keep a busy descriptor slot, and leave the address-space walk off in release keep a busy descriptor slot, and leave the address-space walk off in release Nov 29, 2026
seninhas pushed a commit to seninhas/VIctory-NVIDIA that referenced this pull request Nov 29, 2026
… in release

Ported from trustno1-coder#2877:
- slot_evict no longer lets go of a texture whose slot another thread is
  still making (it would drop the host copy under that thread); its slots
  are made again, as for a texture used meanwhile.
- procmem's VirtualQuery walk over the whole process every 5 s holds the
  address-space lock against VirtualProtect and write-watch resets; release
  builds leave it off unless VICTORY_PROCESS_MEMORY=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6
moritz-eckhard-nickel added a commit to moritz-eckhard-nickel/VIctory-NVIDIA that referenced this pull request Nov 29, 2026
…nd leave the address-space walk off in release

trustno1-coder#2877 by kadiratesdev, head 5b7c23e.
@DoubleD17

DoubleD17 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

We ran a test of VICTORY_PROCESS_MEMORY=0 on current main (41adb55), 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 41adb55 with VICTORY_PROCESS_MEMORY=0, against 41adb55 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

@dyshay

dyshay commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-fix Pull request: fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants