Memory switches for 32 GB PCs (all off by default): textures-only residency waits, texture cache line, staging in BAR, physical-only pressure, windows' BAR line #394

Open
github-bot wants to merge 1 commit from github-bot/gh-394 into a-publier AGit
Owner

@⁠JFIREonFIRE on GitHub · 2026-11-26 23:40 UTC · original
JFIREonFIRE:jf/memory-switches → a-publier · +165 −18 · 4 files · 1 commits · open

What and why

Five switches for PCs with 32 GB of RAM and a system-managed page file, where the commit limit runs out before the RAM does (#333, #297, #298). Each is off by default; unset, behaviour is unchanged.

Switch What it does
VICTORY_WAIT_RESIDENT=textures Only texture blocks and textures are made CREATE_NOT_RESIDENT and waited for (MakeResident + mapped()); plain buffers are made resident and not waited for. As described in #346.
VICTORY_TEXTURE_KEEP_PERCENT=<p> Moves vram_keep's three lines down together (unset: 85 / 93, trimming to 80 / 84, as before; 40 to 85). Every MB the card keeps is also a MB of commit (#333).
VICTORY_STAGING_BAR=1 Texture staging blocks (pool.rs) in D3D12_HEAP_TYPE_GPU_UPLOAD memory via mapped_card_buffer while the card is under 85 % of its budget; else the PC's memory, as before.
VICTORY_PRESSURE_PHYSICAL=1 With VICTORY_RESIDENCY=1: pressure by free physical memory alone (on at 1.5 GiB, off at 2.5 GiB), emergency commit floor 256 MiB instead of 1.5 GiB. With a system-managed page file the commit lines turned pressure on once per run and never off.
VICTORY_WINDOWS_BAR_PERCENT=<p> How full the card may be for a window to go into its CPU-mapped memory (unset: 80, as before; 50 to 97).

What is in it

  • crates/victory-gpu/src/host.rs: wait_resident_buffers, not_resident_buffer / resident_buffer / mapped_buffer at the four buffer allocation sites; keep_percent / keep_line in vram_keep.
  • crates/victory-gpu/src/pool.rs: staging_bar for the staging blocks.
  • crates/victory-gpu/src/residency.rs: physical_only, next_pressure_physical, the floor in critical_commit.
  • crates/victory-gpu/src/shadow.rs: windows_bar_percent / bar_line in window_mapped_for.
  • Game-free tests: the_keep_line_is_85_unless_set_lower, the_default_keep_lines_are_as_before, buffers_wait_unless_only_textures_do, physical_pressure_turns_on_at_one_and_a_half_and_off_at_two_and_a_half_gib, windows_go_to_the_card_below_eighty_percent_unless_set.

Tested

  • Windows 11, RTX 3090 24 GB (driver 32.0.16.2101, ReBAR on), i9-9900K, 32 GB RAM, system-managed page file.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings and without --all-features: clean.
  • cargo test --locked -p victory-gpu --lib -- --test-threads=1: 401 passed, 0 failed, 34 ignored.
  • In game, the same code on a codec-d/cool_fox-based tree (this fork's a-publier runs at 2–3 fps on this card, #333), Series S profile, with port 1 on. 4-minute runs, working set from the log's memory line:
working set avg / peak private bytes (2nd half) mean / median frame
none of these 17.5 / 19.2 GB 31.9 GB 118 / 87 ms
+ WAIT_RESIDENT=textures 15.9 / 16.8 GB 31.3 GB 134 / 97 ms (heavier scene)
+ TEXTURE_KEEP_PERCENT=75 15.7 / 17.1 GB 29.3 GB 128 / 84 ms

STAGING_BAR alone: texture staging in the PC's memory 2.8 GB peak → 0.5 GB; working set 18.1 → 16.7 GB avg. PRESSURE_PHYSICAL: pressure never stuck on. Over 11 minutes, all of them together plus VICTORY_SEND_BAR=1: working set 16.3 GB avg / 20.5 peak against 20.2 / 24.5 for the same tree as shipped, median 86 ms against 87, but a higher mean (151 vs 138 ms) from a few longer stalls in the heaviest scene; which switch costs that is not yet known, so treat them as separate.

Not tested

  • No in-game run of this branch itself; no AMD card.
  • One 11-minute run with STAGING_BAR ended in a device removal (nvlddmkm event 153, no breadcrumbs); an 8-minute repeat with VICTORY_D3D12_DRED=light and every later run were clean.

AI-assisted: written and measured with Claude Code (Claude Opus 5.5). No game files.

**@⁠JFIREonFIRE** on GitHub · 2026-11-26 23:40 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/394) `JFIREonFIRE:jf/memory-switches` → `a-publier` · +165 −18 · 4 files · 1 commits · open ## What and why Five switches for PCs with 32 GB of RAM and a system-managed page file, where the commit limit runs out before the RAM does (#333, #297, #298). Each is off by default; unset, behaviour is unchanged. | Switch | What it does | |---|---| | `VICTORY_WAIT_RESIDENT=textures` | Only texture blocks and textures are made `CREATE_NOT_RESIDENT` and waited for (`MakeResident` + `mapped()`); plain buffers are made resident and not waited for. As described in #346. | | `VICTORY_TEXTURE_KEEP_PERCENT=<p>` | Moves `vram_keep`'s three lines down together (unset: 85 / 93, trimming to 80 / 84, as before; 40 to 85). Every MB the card keeps is also a MB of commit (#333). | | `VICTORY_STAGING_BAR=1` | Texture staging blocks (`pool.rs`) in `D3D12_HEAP_TYPE_GPU_UPLOAD` memory via `mapped_card_buffer` while the card is under 85 % of its budget; else the PC's memory, as before. | | `VICTORY_PRESSURE_PHYSICAL=1` | With `VICTORY_RESIDENCY=1`: pressure by free physical memory alone (on at 1.5 GiB, off at 2.5 GiB), emergency commit floor 256 MiB instead of 1.5 GiB. With a system-managed page file the commit lines turned pressure on once per run and never off. | | `VICTORY_WINDOWS_BAR_PERCENT=<p>` | How full the card may be for a window to go into its CPU-mapped memory (unset: 80, as before; 50 to 97). | ## What is in it - `crates/victory-gpu/src/host.rs`: `wait_resident_buffers`, `not_resident_buffer` / `resident_buffer` / `mapped_buffer` at the four buffer allocation sites; `keep_percent` / `keep_line` in `vram_keep`. - `crates/victory-gpu/src/pool.rs`: `staging_bar` for the staging blocks. - `crates/victory-gpu/src/residency.rs`: `physical_only`, `next_pressure_physical`, the floor in `critical_commit`. - `crates/victory-gpu/src/shadow.rs`: `windows_bar_percent` / `bar_line` in `window_mapped_for`. - Game-free tests: `the_keep_line_is_85_unless_set_lower`, `the_default_keep_lines_are_as_before`, `buffers_wait_unless_only_textures_do`, `physical_pressure_turns_on_at_one_and_a_half_and_off_at_two_and_a_half_gib`, `windows_go_to_the_card_below_eighty_percent_unless_set`. ## Tested - Windows 11, RTX 3090 24 GB (driver 32.0.16.2101, ReBAR on), i9-9900K, 32 GB RAM, system-managed page file. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` and without `--all-features`: clean. - `cargo test --locked -p victory-gpu --lib -- --test-threads=1`: 401 passed, 0 failed, 34 ignored. - In game, the same code on a codec-d/cool_fox-based tree (this fork's `a-publier` runs at 2–3 fps on this card, #333), Series S profile, with port 1 on. 4-minute runs, working set from the log's memory line: | | working set avg / peak | private bytes (2nd half) | mean / median frame | |---|---|---|---| | none of these | 17.5 / 19.2 GB | 31.9 GB | 118 / 87 ms | | + `WAIT_RESIDENT=textures` | 15.9 / 16.8 GB | 31.3 GB | 134 / 97 ms (heavier scene) | | + `TEXTURE_KEEP_PERCENT=75` | 15.7 / 17.1 GB | 29.3 GB | 128 / 84 ms | `STAGING_BAR` alone: texture staging in the PC's memory 2.8 GB peak → 0.5 GB; working set 18.1 → 16.7 GB avg. `PRESSURE_PHYSICAL`: pressure never stuck on. Over 11 minutes, all of them together plus `VICTORY_SEND_BAR=1`: working set 16.3 GB avg / 20.5 peak against 20.2 / 24.5 for the same tree as shipped, median 86 ms against 87, but a higher mean (151 vs 138 ms) from a few longer stalls in the heaviest scene; which switch costs that is not yet known, so treat them as separate. ## Not tested - No in-game run of this branch itself; no AMD card. - One 11-minute run with `STAGING_BAR` ended in a device removal (nvlddmkm event 153, no breadcrumbs); an 8-minute repeat with `VICTORY_D3D12_DRED=light` and every later run were clean. AI-assisted: written and measured with Claude Code (Claude Opus 5.5). No game files.
- VICTORY_WAIT_RESIDENT=textures: only texture blocks and textures are made
  not resident and waited for; plain buffers skip MakeResident and the
  mapped() wait (#346).
- VICTORY_TEXTURE_KEEP_PERCENT=<p>: moves vram_keep's three lines down
  together (unset: 85/93, as before); every MB the card keeps is also commit.
- VICTORY_STAGING_BAR=1: texture staging blocks in resizable-BAR card memory
  while the card is under 85 % of its budget.
- VICTORY_PRESSURE_PHYSICAL=1: residency pressure by free physical memory
  alone (on at 1.5 GiB, off at 2.5 GiB), emergency commit floor 256 MiB.
- VICTORY_WINDOWS_BAR_PERCENT=<p>: how full the card may be for a window to
  go into its CPU-mapped memory (unset: 80, as before).

Measured on an RTX 3090 / 32 GB with the same code on a codec-d/cool_fox
based tree (#333, #346).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:59:05 +00:00
Author
Owner

@⁠JFIREonFIRE on GitHub · 2026-11-26 23:52 UTC · original

11-minute A/B on the same RTX 3090 / 32 GB (cool_fox-based tree, port 1, Series S), to find which switch caused the longer stalls mentioned above:

run switches mean median p90 worst 5 s sample working set avg / peak
as shipped none 138 ms 87 ms 211 ms 1,250 ms 20.2 / 24.5 GB
all + SEND_BAR WAIT_RESIDENT=textures, STAGING_BAR, PRESSURE_PHYSICAL, WINDOWS_BAR_PERCENT=92, TEXTURE_KEEP_PERCENT=75, VICTORY_SEND_BAR=1 151 ms 86 ms 234 ms 1,882 ms 16.3 / 20.5 GB
without the last two WAIT_RESIDENT=textures, STAGING_BAR, PRESSURE_PHYSICAL, WINDOWS_BAR_PERCENT=92 96 ms 77 ms 136 ms 545 ms 15.9 / 17.9 GB

So the stalls come from TEXTURE_KEEP_PERCENT=75 (re-uploads over a longer run) and/or VICTORY_SEND_BAR=1 (not part of this PR); the other four are a gain on their own here. TEXTURE_KEEP_PERCENT stays useful as a commit lever on PCs where commit is the limit, but not as a default.

AI-assisted (Claude Code).

**@⁠JFIREonFIRE** on GitHub · 2026-11-26 23:52 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/394#issuecomment-7205937572) 11-minute A/B on the same RTX 3090 / 32 GB (cool_fox-based tree, port 1, Series S), to find which switch caused the longer stalls mentioned above: | run | switches | mean | median | p90 | worst 5 s sample | working set avg / peak | |---|---|---|---|---|---|---| | as shipped | none | 138 ms | 87 ms | 211 ms | 1,250 ms | 20.2 / 24.5 GB | | all + `SEND_BAR` | `WAIT_RESIDENT=textures`, `STAGING_BAR`, `PRESSURE_PHYSICAL`, `WINDOWS_BAR_PERCENT=92`, `TEXTURE_KEEP_PERCENT=75`, `VICTORY_SEND_BAR=1` | 151 ms | 86 ms | 234 ms | 1,882 ms | 16.3 / 20.5 GB | | without the last two | `WAIT_RESIDENT=textures`, `STAGING_BAR`, `PRESSURE_PHYSICAL`, `WINDOWS_BAR_PERCENT=92` | **96 ms** | **77 ms** | **136 ms** | **545 ms** | **15.9 / 17.9 GB** | So the stalls come from `TEXTURE_KEEP_PERCENT=75` (re-uploads over a longer run) and/or `VICTORY_SEND_BAR=1` (not part of this PR); the other four are a gain on their own here. `TEXTURE_KEEP_PERCENT` stays useful as a commit lever on PCs where commit is the limit, but not as a default. AI-assisted (Claude Code).
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 01:23 UTC · original

Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At ec71380: cargo test --release -p victory-gpu --lib 401 passed, 0 failed, 34 ignored.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 01:23 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/394#issuecomment-7207244864) Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At `ec71380`: `cargo test --release -p victory-gpu --lib` 401 passed, 0 failed, 34 ignored. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠Gabriel-Ramaldes on GitHub · 2026-11-27 12:28 UTC · original

In-game test on AMD RDNA 4 with 32 GB, on this branch itself (ec71380 = a-publier 4eb6cfd + this PR), filling the two "Not tested" items.

Setup:

  • Windows 11 Pro 26300, Radeon RX 9070 XT 16 GB (driver 32.0.32029.2010), Ryzen 7 3700X (8 cores, Zen 2), 32 GB DDR4, system-managed page file.
  • cargo build --locked --profile diag -p victory --features diagnostics.
  • cargo test --locked -p victory-gpu --lib -- --test-threads=1: 401 passed, 0 failed, 34 ignored.
  • Every run uses scripts\play.ps1's settings (no -Safe, Series X) plus one switch.
  • The same manual save, restored before each run: a balcony after a mission, ~6,500 draws.
  • 300 s per run, shaders translated ahead, one warm-up run first.
  • Then 2 runs of each config in mirrored order: base WR KP SB ALL ALL SB KP WR base.
  • Frame times are the log's per-second ms/frame over world lines (≥ 2,000 draws), first quarter dropped.
  • Memory comes from the process (working set, private bytes) every 10 s, and from the log's last memory: line.
config median frame (run 1 / 2) mean worst 1-s line private bytes at the end free RAM at the end left to commit
none (as shipped) 115.5 / 116.9 ms 119.8 / 122.0 166 / 190 33.5 / 33.2 GB 0.6 / 3.0 GB 7.4 / 8.7 GB
WAIT_RESIDENT=textures 114.6 / 123.2 ms 129.0 / 120.4 272 / 136 32.6 / 32.5 GB 0.8 / 3.2 GB 8.4 / 9.4 GB
TEXTURE_KEEP_PERCENT=75 131.4 / 121.2 ms 136.4 / 124.1 212 / 190 31.5 / 32.1 GB 2.5 / 3.5 GB 10.2 / 9.8 GB
STAGING_BAR=1 111.3 / 123.7 ms 114.6 / 121.8 176 / 148 32.2 / 32.3 GB 0.9 / 3.1 GB 10.0 / 9.7 GB
all three + WINDOWS_BAR_PERCENT=92 115.2 / 111.8 ms 120.9 / 115.2 210 / 131 32.8 / 31.6 GB 0.6 / 0.6 GB 9.4 / 10.6 GB

What it shows on this PC:

  • Stability: no crash and no device removal in 11 runs, STAGING_BAR included (no DRED report, nothing in crashes.log).
  • Memory: each switch lowers private bytes at the end by about 1 GB, and leaves 1-3 GB more to commit.
    • TEXTURE_KEEP_PERCENT=75 cuts the most: −1.0 to −2.0 GB, with host textures 8.0 → 6.9 GB in the last memory: line.
    • All of them together: 32.8 / 31.6 GB against 33.5 / 33.2 GB.
  • Frame time:
    • WAIT_RESIDENT, STAGING_BAR and all of them together are within this scene's run-to-run noise (~10 %).
    • TEXTURE_KEEP_PERCENT=75 is the only one slower in both runs (median 131 / 121 against 116 / 117). It is consistent with textures trimmed and uploaded again, but two runs are not proof.
  • STAGING_BAR has little to move here: texture staging in the PC's memory stays at ~52 MB alive on a-publier in this scene, against 2.8 GB peak on your cool_fox tree. Its gain likely depends on the tree.
  • Not tested: PRESSURE_PHYSICAL, since play.ps1 does not set VICTORY_RESIDENCY=1.
  • The 32 GB problem stays: even with all switches on, the process ends at ~32 GB private on a 32 GB PC, with under 1 GB of RAM free in some runs. These switches help at the margin, but do not change the picture for 32 GB on this tree (as in #298 and #333).

AI-assisted (Claude Code); no game files.

**@⁠Gabriel-Ramaldes** on GitHub · 2026-11-27 12:28 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/394#issuecomment-7218277219) In-game test on AMD RDNA 4 with 32 GB, on this branch itself (`ec71380` = `a-publier` `4eb6cfd` + this PR), filling the two "Not tested" items. **Setup:** - Windows 11 Pro 26300, Radeon RX 9070 XT 16 GB (driver 32.0.32029.2010), Ryzen 7 3700X (8 cores, Zen 2), 32 GB DDR4, system-managed page file. - `cargo build --locked --profile diag -p victory --features diagnostics`. - `cargo test --locked -p victory-gpu --lib -- --test-threads=1`: 401 passed, 0 failed, 34 ignored. - Every run uses `scripts\play.ps1`'s settings (no `-Safe`, Series X) plus one switch. - The same manual save, restored before each run: a balcony after a mission, ~6,500 draws. - 300 s per run, shaders translated ahead, one warm-up run first. - Then 2 runs of each config in mirrored order: base WR KP SB ALL ALL SB KP WR base. - Frame times are the log's per-second `ms/frame` over world lines (≥ 2,000 draws), first quarter dropped. - Memory comes from the process (working set, private bytes) every 10 s, and from the log's last `memory:` line. | config | median frame (run 1 / 2) | mean | worst 1-s line | private bytes at the end | free RAM at the end | left to commit | |---|---|---|---|---|---|---| | none (as shipped) | 115.5 / 116.9 ms | 119.8 / 122.0 | 166 / 190 | 33.5 / 33.2 GB | 0.6 / 3.0 GB | 7.4 / 8.7 GB | | `WAIT_RESIDENT=textures` | 114.6 / 123.2 ms | 129.0 / 120.4 | 272 / 136 | 32.6 / 32.5 GB | 0.8 / 3.2 GB | 8.4 / 9.4 GB | | `TEXTURE_KEEP_PERCENT=75` | 131.4 / 121.2 ms | 136.4 / 124.1 | 212 / 190 | 31.5 / 32.1 GB | 2.5 / 3.5 GB | 10.2 / 9.8 GB | | `STAGING_BAR=1` | 111.3 / 123.7 ms | 114.6 / 121.8 | 176 / 148 | 32.2 / 32.3 GB | 0.9 / 3.1 GB | 10.0 / 9.7 GB | | all three + `WINDOWS_BAR_PERCENT=92` | 115.2 / 111.8 ms | 120.9 / 115.2 | 210 / 131 | 32.8 / 31.6 GB | 0.6 / 0.6 GB | 9.4 / 10.6 GB | **What it shows on this PC:** - **Stability:** no crash and no device removal in 11 runs, `STAGING_BAR` included (no DRED report, nothing in crashes.log). - **Memory:** each switch lowers private bytes at the end by about 1 GB, and leaves 1-3 GB more to commit. - `TEXTURE_KEEP_PERCENT=75` cuts the most: −1.0 to −2.0 GB, with host textures 8.0 → 6.9 GB in the last `memory:` line. - All of them together: 32.8 / 31.6 GB against 33.5 / 33.2 GB. - **Frame time:** - `WAIT_RESIDENT`, `STAGING_BAR` and all of them together are within this scene's run-to-run noise (~10 %). - `TEXTURE_KEEP_PERCENT=75` is the only one slower in both runs (median 131 / 121 against 116 / 117). It is consistent with textures trimmed and uploaded again, but two runs are not proof. - **`STAGING_BAR` has little to move here:** texture staging in the PC's memory stays at ~52 MB alive on `a-publier` in this scene, against 2.8 GB peak on your cool_fox tree. Its gain likely depends on the tree. - **Not tested:** `PRESSURE_PHYSICAL`, since `play.ps1` does not set `VICTORY_RESIDENCY=1`. - **The 32 GB problem stays:** even with all switches on, the process ends at ~32 GB private on a 32 GB PC, with under 1 GB of RAM free in some runs. These switches help at the margin, but do not change the picture for 32 GB on this tree (as in #298 and #333). AI-assisted (Claude Code); no game files.
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-27 14:14 UTC · original

In-game numbers for one of the five switches, VICTORY_TEXTURE_KEEP_PERCENT, on an RX 7900 XT (RDNA 3, 20 GB), driver 32.0.32029.2010, Ryzen 7 5800X, 32 GB RAM, system-managed page file, Windows 11 26300. The RX 9070 XT comment above has 75 on another scene; this adds 60 and the course over time. I ran only this switch because it is the only one aimed at what grows here: on 4eb6cfd, texture blocks are a third of private memory at 235 s (10.1-10.3 of 31.0-31.7 GB) and 66-72 % of its growth from 11 s to 235 s (8 base passes).

What I ran:

  • This branch, ec71380, against a-publier 4eb6cfd, both diag with diagnostics. Unattended passes of the opening sequence: 240 s from the first frame of 500 draws or more, Series S, scripts\play.ps1 settings, frame capture on, DRED light.
  • 60 twice and 75 once, as passes 4, 11 and 5 of 12 in 65 minutes. Base was passes 2, 8 and 10; the rest were other PRs' builds. The base column adds 5 base passes from earlier the same day (same exe, same route).
  • Memory from the log's memory:, memory in blocks and memory of textures lines (every 5 s), at the line nearest 235 s. First let-go: the first such line that shows one. Frames from the capture's frame numbers. Stall: time from a present to the title's first list call (5 s frame account line), its excess over 20 ms per frame, summed over the window's frames.
unset (85), 8 passes 75 60
First let-go 197-228 s 168 s 120 / 118 s
Let go 896-1,027 MB 2,791 4,117 / 4,316
Made again 0-10 MB 72 (2.6 %) 189 / 199 (4.6 %)
Texture blocks 10,112-10,304 MB 9,344 7,552 / 7,040
Card in use 14,227-14,426 MB 13,517 11,635 / 11,135
Private 31,032-31,689 MB 30,466 28,293 / 28,071
Frames, 60-235 s 2,248-2,606 2,513 2,014 / 2,431
Stall, 60-235 s 1.4-10.6 s 1.9 s 33.1 / 11.1 s

What it shows:

  • At 60, private at 235 s is 3.15 ± 0.56 GB below base (Welch 95 % interval of the difference of means, 2 passes against 8; 3.02 ± 0.89 against the 3 of the same block). At 75 it is 0.87 GB below (one pass; base sd 0.21 GB; 0.73 against the 3 of the same block): this route reaches that line only in its last 70 s.
  • Private follows the card about one for one: private minus card in use, median over 60-235 s, is 16.2 / 16.4 GB at 60, 16.5 at 75, 16.4-16.8 on base.
  • It caps growth; it gives nothing back within the pass. Texture blocks never shrink in any line of any pass. A let-go only raises "MB of texture blocks free" (from 0.8 GB to 1.6-2.8 GB), which later copies reuse. At 60, private at 235 s is 2.0 / 1.6 GB above the line before the first let-go.
  • What falls is the process's commit, not its RAM. Working set (median over 60-235 s) is 18.2-18.8 GB against 17.7-19.5 on base. The PC's free memory bottoms at 0.4-0.6 GB against 0.3-0.7. "Left to commit" still bottoms at 0.3 GB or less, because Windows grows the page file as needed.
  • The lines are a percent of a budget that moves. Windows lowered it from 19,653 MB to 17.6-17.9 GB between 162 and 227 s in every pass but the two at 60. At 75 the first let-go is in the same 5 s line as that drop. On base every first let-go comes 26-52 s after it.

Frames and stalls: I cannot tell. Both 60 passes started badly, with about 18 s of stall each in the first 60 s. So did one of the 8 base passes (18 s; the other seven 0-12 s) and two passes of other PRs' builds in the block (17-19 s). One of those let nothing go in the whole pass and ended at 2,037 frames and 33.7 s of stall. 20.5 of the first 60 pass's 33.1 s fall at 60-114 s, before its first let-go. While use is under the line the switch changes nothing (vram_keep). At 150-185 s, where 60 lets go 2 GB in two steps, stall is 5.2 / 6.8 s against 0.4-6.5 on base. That is the stretch to watch. The 75 pass is base-like (one pass).

Not tested: the other four. Two do nothing with play.ps1's settings: VICTORY_PRESSURE_PHYSICAL acts through refresh and critical_commit, which return at once without VICTORY_RESIDENCY=1, and VICTORY_WINDOWS_BAR_PERCENT is read only when VICTORY_WINDOWS_BAR_MB is set. I did not run WAIT_RESIDENT=textures or STAGING_BAR.

Limits: one card, one driver, one 4-minute route that is not time-locked; n = 2 and 1. diag build, a PNG saved every 8th frame, the PC at its commit limit in every pass (28-32 GB private on 32 GB). I did not run ec71380 with the switch unset and assume it equals base. Nothing here covers longer play, where copies made again would count for more.

**@⁠adrianmjim** on GitHub · 2026-11-27 14:14 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/394#issuecomment-7220535703) In-game numbers for one of the five switches, `VICTORY_TEXTURE_KEEP_PERCENT`, on an RX 7900 XT (RDNA 3, 20 GB), driver 32.0.32029.2010, Ryzen 7 5800X, 32 GB RAM, system-managed page file, Windows 11 26300. The RX 9070 XT comment above has 75 on another scene; this adds 60 and the course over time. I ran only this switch because it is the only one aimed at what grows here: on 4eb6cfd, texture blocks are a third of private memory at 235 s (10.1-10.3 of 31.0-31.7 GB) and 66-72 % of its growth from 11 s to 235 s (8 base passes). What I ran: - This branch, ec71380, against `a-publier` 4eb6cfd, both `diag` with diagnostics. Unattended passes of the opening sequence: 240 s from the first frame of 500 draws or more, Series S, `scripts\play.ps1` settings, frame capture on, DRED light. - 60 twice and 75 once, as passes 4, 11 and 5 of 12 in 65 minutes. Base was passes 2, 8 and 10; the rest were other PRs' builds. The base column adds 5 base passes from earlier the same day (same exe, same route). - Memory from the log's `memory:`, `memory in blocks` and `memory of textures` lines (every 5 s), at the line nearest 235 s. First let-go: the first such line that shows one. Frames from the capture's frame numbers. Stall: time from a present to the title's first list call (5 s frame account line), its excess over 20 ms per frame, summed over the window's frames. | | unset (85), 8 passes | 75 | 60 | |---|---|---|---| | First let-go | 197-228 s | 168 s | 120 / 118 s | | Let go | 896-1,027 MB | 2,791 | 4,117 / 4,316 | | Made again | 0-10 MB | 72 (2.6 %) | 189 / 199 (4.6 %) | | Texture blocks | 10,112-10,304 MB | 9,344 | 7,552 / 7,040 | | Card in use | 14,227-14,426 MB | 13,517 | 11,635 / 11,135 | | Private | 31,032-31,689 MB | 30,466 | 28,293 / 28,071 | | Frames, 60-235 s | 2,248-2,606 | 2,513 | 2,014 / 2,431 | | Stall, 60-235 s | 1.4-10.6 s | 1.9 s | 33.1 / 11.1 s | What it shows: - At 60, private at 235 s is 3.15 ± 0.56 GB below base (Welch 95 % interval of the difference of means, 2 passes against 8; 3.02 ± 0.89 against the 3 of the same block). At 75 it is 0.87 GB below (one pass; base sd 0.21 GB; 0.73 against the 3 of the same block): this route reaches that line only in its last 70 s. - Private follows the card about one for one: private minus card in use, median over 60-235 s, is 16.2 / 16.4 GB at 60, 16.5 at 75, 16.4-16.8 on base. - It caps growth; it gives nothing back within the pass. Texture blocks never shrink in any line of any pass. A let-go only raises "MB of texture blocks free" (from 0.8 GB to 1.6-2.8 GB), which later copies reuse. At 60, private at 235 s is 2.0 / 1.6 GB above the line before the first let-go. - What falls is the process's commit, not its RAM. Working set (median over 60-235 s) is 18.2-18.8 GB against 17.7-19.5 on base. The PC's free memory bottoms at 0.4-0.6 GB against 0.3-0.7. "Left to commit" still bottoms at 0.3 GB or less, because Windows grows the page file as needed. - The lines are a percent of a budget that moves. Windows lowered it from 19,653 MB to 17.6-17.9 GB between 162 and 227 s in every pass but the two at 60. At 75 the first let-go is in the same 5 s line as that drop. On base every first let-go comes 26-52 s after it. Frames and stalls: I cannot tell. Both 60 passes started badly, with about 18 s of stall each in the first 60 s. So did one of the 8 base passes (18 s; the other seven 0-12 s) and two passes of other PRs' builds in the block (17-19 s). One of those let nothing go in the whole pass and ended at 2,037 frames and 33.7 s of stall. 20.5 of the first 60 pass's 33.1 s fall at 60-114 s, before its first let-go. While use is under the line the switch changes nothing ([`vram_keep`](https://github.com/Belobug/VIctory-Belobug-AMD/blob/ec713801c27eaa3783dac4eba4bd365d807b880c/crates/victory-gpu/src/host.rs#L180-L182)). At 150-185 s, where 60 lets go 2 GB in two steps, stall is 5.2 / 6.8 s against 0.4-6.5 on base. That is the stretch to watch. The 75 pass is base-like (one pass). Not tested: the other four. Two do nothing with `play.ps1`'s settings: `VICTORY_PRESSURE_PHYSICAL` acts through [`refresh`](https://github.com/Belobug/VIctory-Belobug-AMD/blob/ec713801c27eaa3783dac4eba4bd365d807b880c/crates/victory-gpu/src/residency.rs#L151-L154) and `critical_commit`, which return at once without `VICTORY_RESIDENCY=1`, and `VICTORY_WINDOWS_BAR_PERCENT` is read only [when `VICTORY_WINDOWS_BAR_MB` is set](https://github.com/Belobug/VIctory-Belobug-AMD/blob/ec713801c27eaa3783dac4eba4bd365d807b880c/crates/victory-gpu/src/shadow.rs#L531-L535). I did not run `WAIT_RESIDENT=textures` or `STAGING_BAR`. Limits: one card, one driver, one 4-minute route that is not time-locked; n = 2 and 1. `diag` build, a PNG saved every 8th frame, the PC at its commit limit in every pass (28-32 GB private on 32 GB). I did not run ec71380 with the switch unset and assume it equals base. Nothing here covers longer play, where copies made again would count for more.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-394'
git switch 'github-bot/gh-394'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-394'
git switch 'github-bot/gh-394'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-394'
git switch 'a-publier'
git merge --squash 'github-bot/gh-394'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-394'
git switch 'a-publier'
git merge 'github-bot/gh-394'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.