victory-gpu: first_upload_decision bypasses WholeCard VRAM guard when free_blocks >= reserve, letting VRAM exceed budget and kill DLSS/FG #1496

Closed
opened 2026-11-28 20:51:38 +00:00 by github-bot · 4 comments
Owner

@⁠Bj0rnis on GitHub · 2026-11-28 20:48 UTC · original

Summary

On main (923e38c, introduced in 25b3b5c), first_upload_decision() in crates/victory-gpu/src/resource.rs:2101-2104 bypasses the FirstUpload::WholeCard VRAM guard whenever reserve <= free_blocks — even when total GPU memory used is already well past budget.

On a 16 GB RTX 5070 Ti (14,767 MB budget) running Series X 2560×1440 with DLSS Quality + 2× Frame Generation (RT off, default VICTORY_TEXTURE_ROOM_PERCENT=80), VRAM climbed from 13.8 GB to 17,043 MB (+2.3 GB over budget) while first-upload room decisions logged 71,820 allowed, 0 refused at the texture-copy ceiling, 0 at the whole-card budget. Streamline DLSS began failing with slEvaluateFeature: warning: out of VRAM (39) ~3 minutes in (disabling FG), ending in a 0xc0000005 fault in nvwgf2umx.dll at ~16.5 minutes.

Environment

  • Build: main 923e38c (--release, Rust 1.98.1)
  • Hardware: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 621.24, Streamline 2.14.16 / NGX 310.9.16), Ryzen 7 9800X3D, 32 GB RAM, Windows 11
  • Settings: play-foxhound.ps1 defaults (Series X, 2560×1440, -Dlss quality, -FrameGen -FrameGenX 2, VICTORY_FULLSCREEN=1, RT off; VICTORY_TEXTURE_ROOM_PERCENT=80, default VICTORY_TEXTURE_FIRST_UPLOAD_MB=128)

Root cause in crates/victory-gpu/src/resource.rs:2101-2104

let new_card_bytes = reserve.saturating_sub(free_blocks);
if new_card_bytes > 0 && used.saturating_add(new_card_bytes) >= budget {
    return FirstUpload::WholeCard;
}
FirstUpload::Allow
  1. free_blocks (crate::pool::texture_room()) is the aggregate free space across all texture pool heaps (e.g., 16–91 MB of fragmented ranges across multiple heaps), whereas an individual texture's reserve is small (typically 4–256 KB).
  2. Because reserve <= free_blocks, new_card_bytes evaluates to 0, so if new_card_bytes > 0 is false and FirstUpload::WholeCard never triggers — even when used >= budget.
  3. Meanwhile, because filled (texture copies alone: 9,708 MB) stays below the 80% ceiling (11,813 MB) while total card used (render targets + Streamline DLSS/FG + card buffers + pool overhead) is already over 100% of budget, FirstUpload::FilledCeiling does not trigger either.
  4. Fragmented placements that do not fit into an existing free range still allocate fresh D3D12 heaps in pool::texture, pushing VRAM further past budget.

Observed victory-gpu VRAM telemetry (from the 16.5-min run)

  • T+2 min: 13,806 MB in use - 820 MB free in texture blocks ... (budget 14,728 MB)
  • T+3 min: First WARN victory_gpu::streamline: DLSS: the upscaling was not recorded: slEvaluateFeature: warning: out of VRAM (39) (~19,800 warnings over the rest of the run; FG drops off)
  • T+8 min: 15,759 MB in use - 217 MB free in texture blocks
  • T+16 min (just before nvwgf2umx.dll fault):
    • the texture queue's room: 17043 MB in use - 16 MB free in texture blocks + 0 MB kept for card copies of title buffers + 604 MB kept for render targets = 17631 MB against a line of 11813 MB (80.0 % of a budget of 14767 MB; 11557 MB after face headroom, 9708 MB in texture copies): no room, new textures wait
    • first host textures admitted just over the room line in the last 5 seconds: 643; first-upload room decisions: 71820 allowed, 0 refused by an explicit byte limit, 0 without memory info, 0 with the allowance off, 0 at the texture-copy ceiling, 0 at the whole-card budget

Suggested fix direction

  • Refuse with FirstUpload::WholeCard whenever used >= budget (or used.saturating_add(reserve) >= budget unless placement is guaranteed to stay inside an existing heap without creating a new block — e.g., when pool::texture cannot fall back to allocating a new heap while used >= budget).
  • Even simpler: if used >= budget, stop admitting over-room first uploads regardless of aggregate free_blocks (or gate pool::texture against allocating a new heap on the over-room first-upload path).

Temporary workaround

Setting VICTORY_TEXTURE_FIRST_UPLOAD_MB=0 disables the over-room admission path (FirstUpload::AllowanceOff) and keeps VRAM under budget.

AI-assisted analysis and report.

**@⁠Bj0rnis** on GitHub · 2026-11-28 20:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1496) ### Summary On `main` (`923e38c`, introduced in `25b3b5c`), `first_upload_decision()` in `crates/victory-gpu/src/resource.rs:2101-2104` bypasses the `FirstUpload::WholeCard` VRAM guard whenever `reserve <= free_blocks` — even when total GPU memory `used` is already well past `budget`. On a **16 GB RTX 5070 Ti** (`14,767 MB` budget) running Series X `2560×1440` with DLSS Quality + 2× Frame Generation (RT off, default `VICTORY_TEXTURE_ROOM_PERCENT=80`), VRAM climbed from `13.8 GB` to **`17,043 MB` (+2.3 GB over budget)** while `first-upload room decisions` logged **`71,820 allowed, 0 refused at the texture-copy ceiling, 0 at the whole-card budget`**. Streamline DLSS began failing with `slEvaluateFeature: warning: out of VRAM (39)` ~3 minutes in (disabling FG), ending in a `0xc0000005` fault in `nvwgf2umx.dll` at ~16.5 minutes. ### Environment - **Build:** `main` `923e38c` (`--release`, `Rust 1.98.1`) - **Hardware:** NVIDIA GeForce RTX 5070 Ti 16 GB (driver `621.24`, Streamline `2.14.16` / NGX `310.9.16`), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 - **Settings:** `play-foxhound.ps1` defaults (`Series X`, `2560×1440`, `-Dlss quality`, `-FrameGen -FrameGenX 2`, `VICTORY_FULLSCREEN=1`, RT off; `VICTORY_TEXTURE_ROOM_PERCENT=80`, default `VICTORY_TEXTURE_FIRST_UPLOAD_MB=128`) ### Root cause in `crates/victory-gpu/src/resource.rs:2101-2104` ```rust let new_card_bytes = reserve.saturating_sub(free_blocks); if new_card_bytes > 0 && used.saturating_add(new_card_bytes) >= budget { return FirstUpload::WholeCard; } FirstUpload::Allow ``` 1. `free_blocks` (`crate::pool::texture_room()`) is the **aggregate** free space across all texture pool heaps (e.g., `16–91 MB` of fragmented ranges across multiple heaps), whereas an individual texture's `reserve` is small (typically `4–256 KB`). 2. Because `reserve <= free_blocks`, `new_card_bytes` evaluates to **`0`**, so `if new_card_bytes > 0` is `false` and `FirstUpload::WholeCard` **never triggers** — even when `used >= budget`. 3. Meanwhile, because `filled` (texture copies alone: `9,708 MB`) stays below the 80% `ceiling` (`11,813 MB`) while total card `used` (render targets + Streamline DLSS/FG + card buffers + pool overhead) is already over `100%` of `budget`, `FirstUpload::FilledCeiling` does not trigger either. 4. Fragmented placements that do not fit into an existing free range still allocate fresh D3D12 heaps in `pool::texture`, pushing VRAM further past `budget`. ### Observed `victory-gpu` VRAM telemetry (from the 16.5-min run) - **T+2 min:** `13,806 MB in use - 820 MB free in texture blocks ...` (budget `14,728 MB`) - **T+3 min:** First `WARN victory_gpu::streamline: DLSS: the upscaling was not recorded: slEvaluateFeature: warning: out of VRAM (39)` (~19,800 warnings over the rest of the run; FG drops off) - **T+8 min:** `15,759 MB in use - 217 MB free in texture blocks` - **T+16 min (just before `nvwgf2umx.dll` fault):** - `the texture queue's room: 17043 MB in use - 16 MB free in texture blocks + 0 MB kept for card copies of title buffers + 604 MB kept for render targets = 17631 MB against a line of 11813 MB (80.0 % of a budget of 14767 MB; 11557 MB after face headroom, 9708 MB in texture copies): no room, new textures wait` - `first host textures admitted just over the room line in the last 5 seconds: 643; first-upload room decisions: 71820 allowed, 0 refused by an explicit byte limit, 0 without memory info, 0 with the allowance off, 0 at the texture-copy ceiling, 0 at the whole-card budget` ### Suggested fix direction - Refuse with `FirstUpload::WholeCard` whenever `used >= budget` (or `used.saturating_add(reserve) >= budget` unless placement is guaranteed to stay inside an existing heap without creating a new block — e.g., when `pool::texture` cannot fall back to allocating a new heap while `used >= budget`). - Even simpler: if `used >= budget`, stop admitting over-room first uploads regardless of aggregate `free_blocks` (or gate `pool::texture` against allocating a new heap on the over-room first-upload path). ### Temporary workaround Setting `VICTORY_TEXTURE_FIRST_UPLOAD_MB=0` disables the over-room admission path (`FirstUpload::AllowanceOff`) and keeps VRAM under budget. *AI-assisted analysis and report.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 20:51:38 +00:00
Author
Owner

@⁠GreekNinja on GitHub · 2026-11-28 21:10 UTC · original · edited 2026-11-28 21:14 UTC

Confirmed independently on RTX 3060 12 GB + Ryzen 7 5700X + 16 GB RAM (Windows 11, Series S, 923e38c).

Observed progression

  • 20:32:27: 11349 MB in use - 171 MB free in texture blocks vs 11345 MB budget (6613 MB in texture copies) -> 3500 allowed, 0 refused at the whole-card budget
  • 20:32:48–20:34:00: used climbed to 12,082 MB / 11,345 MB (+737 MB over DXGI budget), still logging 0 refused at the whole-card budget, cascading into 228,956 0x8007000E allocation failures and ending in an 0xc0000005 NULL-deref in nvwgf2umx.dll+0x3c0201.
  • Setting VICTORY_TEXTURE_FIRST_UPLOAD_MB=0 immediately stopped the overshoot (VRAM stayed at 8,947–9,210 / 11,330 MB, 0 OOM errors).
  1. crates/victory-gpu/src/resource.rs:2101-2104 (first_upload_decision): if new_card_bytes > 0 && used.saturating_add(new_card_bytes) >= budget skips the guard whenever reserve <= free_blocks (even when used >= budget). Also pool::texture_room() decrements HELD immediately while pieces sit in REST = 2500 ms quarantine, so free_blocks overstates immediately allocatable space and still triggers new 64 MiB CreateHeap calls.
    • Minimal fix: drop new_card_bytes > 0 && so if used.saturating_add(new_card_bytes) >= budget { return FirstUpload::WholeCard; }.
  2. crates/victory-gpu/src/resource.rs:2145 (first_upload_headroom_from): budget.saturating_sub(used).saturating_add(free_blocks) still grants free_blocks - reserve per 5 s window when used >= budget.
    • Minimal fix: return 0 whenever used >= budget (let Some(budget_left) = budget.checked_sub(used).filter(|&l| l > 0) else { return 0; };).
  3. crates/victory-gpu/src/draw.rs:3378, 4001-4004: memory is never updated when room is re-checked mid-pass, so room_for_first_upload(memory, reserve) uses a stale VRAM snapshot for the whole pass.
  4. crates/victory-gpu/src/draw.rs:1023-1027 (first_upload_spend): on window rollover, *window = (now, bytes.min(cap)); return bytes <= cap; sets window.1 = cap even when bytes > cap (refused), starving smaller uploads for the rest of that 5 s window.

Note: This report/comment was generated and submitted automatically by an AI assistant analyzing real local play logs and source code on behalf of the user.

**@⁠GreekNinja** on GitHub · 2026-11-28 21:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1496#issuecomment-7245827192) · edited 2026-11-28 21:14 UTC Confirmed independently on **RTX 3060 12 GB + Ryzen 7 5700X + 16 GB RAM (Windows 11, Series S, `923e38c`)**. ### Observed progression - `20:32:27`: `11349 MB in use - 171 MB free in texture blocks` vs `11345 MB` budget (`6613 MB` in texture copies) -> `3500 allowed, 0 refused at the whole-card budget` - `20:32:48`–`20:34:00`: `used` climbed to **`12,082 MB / 11,345 MB` (+737 MB over DXGI budget)**, still logging `0 refused at the whole-card budget`, cascading into `228,956` `0x8007000E` allocation failures and ending in an `0xc0000005` NULL-deref in `nvwgf2umx.dll+0x3c0201`. - Setting **`VICTORY_TEXTURE_FIRST_UPLOAD_MB=0`** immediately stopped the overshoot (VRAM stayed at `8,947–9,210 / 11,330 MB`, `0` OOM errors). ### Additional related defects found in the same path 1. **`crates/victory-gpu/src/resource.rs:2101-2104`** (`first_upload_decision`): `if new_card_bytes > 0 && used.saturating_add(new_card_bytes) >= budget` skips the guard whenever `reserve <= free_blocks` (even when `used >= budget`). Also `pool::texture_room()` decrements `HELD` immediately while pieces sit in `REST = 2500 ms` quarantine, so `free_blocks` overstates immediately allocatable space and still triggers new 64 MiB `CreateHeap` calls. - Minimal fix: drop `new_card_bytes > 0 &&` so `if used.saturating_add(new_card_bytes) >= budget { return FirstUpload::WholeCard; }`. 2. **`crates/victory-gpu/src/resource.rs:2145`** (`first_upload_headroom_from`): `budget.saturating_sub(used).saturating_add(free_blocks)` still grants `free_blocks - reserve` per 5 s window when `used >= budget`. - Minimal fix: return `0` whenever `used >= budget` (`let Some(budget_left) = budget.checked_sub(used).filter(|&l| l > 0) else { return 0; };`). 3. **`crates/victory-gpu/src/draw.rs:3378, 4001-4004`**: `memory` is never updated when `room` is re-checked mid-pass, so `room_for_first_upload(memory, reserve)` uses a stale VRAM snapshot for the whole pass. 4. **`crates/victory-gpu/src/draw.rs:1023-1027`** (`first_upload_spend`): on window rollover, `*window = (now, bytes.min(cap)); return bytes <= cap;` sets `window.1 = cap` even when `bytes > cap` (refused), starving smaller uploads for the rest of that 5 s window. --- *Note: This report/comment was generated and submitted automatically by an AI assistant analyzing real local play logs and source code on behalf of the user.*
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-28 22:14 UTC · original · edited 2026-11-29 00:49 UTC

Independent reproduction of #1496 on an RTX 5070 12 GB, current main 923e38cc8c92cd1c42090076382138538f2bb487.

Environment

  • Clean working tree
  • Release executable SHA-256: DBD5D11DC330002C29C0E3AF8D357500A1CCFF2529180AA5A2EF3FD29DBDD7D9
  • NVIDIA GeForce RTX 5070, 12,227 MB reported physical VRAM
  • NVIDIA driver 621.40
  • Windows build 26300.10075
  • Series X profile, native 2560x1440 output
  • 30 FPS cap
  • Effective settings recorded by the process:
    • VICTORY_DLSS=1
    • VICTORY_DLSS_MODE=performance
    • VICTORY_FRAMEGEN=1
    • VICTORY_FRAMEGEN_X=3
    • VICTORY_TEXTURE_ROOM_PERCENT=80
    • VICTORY_TEXTURE_POOL=1
    • VICTORY_LEVELS_ON_DEMAND=0
    • ray-tracing builder off (VICTORY_BVH_MISS=1)

Result

Correction on onset: the log file name predates its first timestamped runtime event by about 26 minutes, so the file name cannot be used as the beginning of the active DLSS/FG interval. The first recorded out-of-VRAM failure is 5 minutes 26 seconds after the first timestamped Streamline event. Streamline's own elapsed counter at that failure reads 328.2 seconds, which agrees with that interval. This report therefore does not claim that VRAM stayed within budget before timestamped Streamline logging began.

The first recorded failure was:

WARN victory_gpu::streamline: DLSS: the upscaling was not recorded: slEvaluateFeature: warning: out of VRAM (39) (the output keeps what it had)
WARN streamline: Exceeded VRAM budget, various performance issues including stuttering can be expected

At the time of sampling, the failure had persisted for at least another 23 minutes. During that sampled interval the log contained:

  • 20,975 slEvaluateFeature: warning: out of VRAM (39) entries
  • 20,975 matching Exceeded VRAM budget entries

The warning continued on essentially every evaluation attempt. DLSS Frame Generation 3x remained enabled in the settings but stopped producing visible/generated frames after the VRAM refusals began.

Six nvidia-smi samples at two-second intervals during the failure:

Sample VRAM used (MB) VRAM total (MB) VRAM free (MB) GPU use
1 11,523 12,227 421 99%
2 11,524 12,227 420 97%
3 11,525 12,227 419 99%
4 11,527 12,227 417 99%
5 11,530 12,227 414 99%
6 11,561 12,227 383 96%

The nvidia-smi figures are whole-adapter measurements rather than per-process attribution. The Streamline budget warning and DLSS evaluation refusal are emitted directly in this VIctory process, independently confirming that the active run is over its usable DXGI/Streamline budget even though a few hundred MB of physical VRAM remain.

This was a release build, so the detailed diagnostic texture-pool breakdown was not present. No proprietary files, shader identifiers, local paths, or wall-clock times are included here.

This reproduces the failure mode described in #1496 on a second 12 GB NVIDIA configuration. I can repeat the same route and sampling procedure against #1544 to check whether the whole-card admission guard prevents the overshoot, keeps DLSS evaluation alive, and restores frame generation.

**@⁠DoubleD17** on GitHub · 2026-11-28 22:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1496#issuecomment-7246593833) · edited 2026-11-29 00:49 UTC Independent reproduction of #1496 on an **RTX 5070 12 GB**, current `main` `923e38cc8c92cd1c42090076382138538f2bb487`. ### Environment - Clean working tree - Release executable SHA-256: `DBD5D11DC330002C29C0E3AF8D357500A1CCFF2529180AA5A2EF3FD29DBDD7D9` - NVIDIA GeForce RTX 5070, 12,227 MB reported physical VRAM - NVIDIA driver 621.40 - Windows build 26300.10075 - Series X profile, native 2560x1440 output - 30 FPS cap - Effective settings recorded by the process: - `VICTORY_DLSS=1` - `VICTORY_DLSS_MODE=performance` - `VICTORY_FRAMEGEN=1` - `VICTORY_FRAMEGEN_X=3` - `VICTORY_TEXTURE_ROOM_PERCENT=80` - `VICTORY_TEXTURE_POOL=1` - `VICTORY_LEVELS_ON_DEMAND=0` - ray-tracing builder off (`VICTORY_BVH_MISS=1`) ### Result Correction on onset: the log file name predates its first timestamped runtime event by about 26 minutes, so the file name cannot be used as the beginning of the active DLSS/FG interval. The first recorded out-of-VRAM failure is **5 minutes 26 seconds after the first timestamped Streamline event**. Streamline's own elapsed counter at that failure reads **328.2 seconds**, which agrees with that interval. This report therefore does **not** claim that VRAM stayed within budget before timestamped Streamline logging began. The first recorded failure was: ```text WARN victory_gpu::streamline: DLSS: the upscaling was not recorded: slEvaluateFeature: warning: out of VRAM (39) (the output keeps what it had) WARN streamline: Exceeded VRAM budget, various performance issues including stuttering can be expected ``` At the time of sampling, the failure had persisted for at least another **23 minutes**. During that sampled interval the log contained: - **20,975** `slEvaluateFeature: warning: out of VRAM (39)` entries - **20,975** matching `Exceeded VRAM budget` entries The warning continued on essentially every evaluation attempt. DLSS Frame Generation 3x remained enabled in the settings but stopped producing visible/generated frames after the VRAM refusals began. Six `nvidia-smi` samples at two-second intervals during the failure: | Sample | VRAM used (MB) | VRAM total (MB) | VRAM free (MB) | GPU use | |---:|---:|---:|---:|---:| | 1 | 11,523 | 12,227 | 421 | 99% | | 2 | 11,524 | 12,227 | 420 | 97% | | 3 | 11,525 | 12,227 | 419 | 99% | | 4 | 11,527 | 12,227 | 417 | 99% | | 5 | 11,530 | 12,227 | 414 | 99% | | 6 | 11,561 | 12,227 | 383 | 96% | The `nvidia-smi` figures are whole-adapter measurements rather than per-process attribution. The Streamline budget warning and DLSS evaluation refusal are emitted directly in this VIctory process, independently confirming that the active run is over its usable DXGI/Streamline budget even though a few hundred MB of physical VRAM remain. This was a release build, so the detailed diagnostic texture-pool breakdown was not present. No proprietary files, shader identifiers, local paths, or wall-clock times are included here. This reproduces the failure mode described in #1496 on a second 12 GB NVIDIA configuration. I can repeat the same route and sampling procedure against #1544 to check whether the whole-card admission guard prevents the overshoot, keeps DLSS evaluation alive, and restores frame generation.
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-28 23:54 UTC · original · edited 2026-11-29 00:49 UTC

Follow-up on my RTX 5070 reproduction: I ran a controlled A/B test of #1544 against main 923e38c, with the same profile as above (Series X, 1440p, DLSS Performance, DLSS-G 3×, 30 FPS cap, VICTORY_TEXTURE_ROOM_PERCENT=80), idle, with both runs cut to a 1,060 s window. Full table: #1544

In short:

  • #1544's guard engages: 160,256 first-upload refusals at the whole-card budget, against 296 on main.
  • The process still goes over its DXGI local budget, about 2 minutes in: by up to +1,460 MB with #1544 and +1,108 MB on main. The texture queue's weighed use ends about 4 GB above its room line in both runs.
  • DLSS still stops upscaling at about 215 s in both, followed by out of VRAM (39) (10,371 with #1544, 11,717 on main). No device removed and no 0x8007000E storm on this card.
  • DLSS-G produced no frames in either run, so its part of this issue is not evaluated here.

So #1544 closes one admission path but does not resolve this issue on a 12 GB card with DLSS-G. The remaining growth matches the follow-ups the PR lists as out of scope. One run per build, and the idle workload diverged between the runs; the PR comment covers the limits.

**@⁠DoubleD17** on GitHub · 2026-11-28 23:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1496#issuecomment-7247740286) · edited 2026-11-29 00:49 UTC Follow-up on my RTX 5070 reproduction: I ran a controlled A/B test of #1544 against `main` `923e38c`, with the same profile as above (Series X, 1440p, DLSS Performance, DLSS-G 3×, 30 FPS cap, `VICTORY_TEXTURE_ROOM_PERCENT=80`), idle, with both runs cut to a 1,060 s window. Full table: https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1544 In short: - **#1544's guard engages**: 160,256 first-upload refusals at the whole-card budget, against 296 on `main`. - **The process still goes over its DXGI local budget**, about 2 minutes in: by up to **+1,460 MB** with #1544 and +1,108 MB on `main`. The texture queue's weighed use ends about 4 GB above its room line in both runs. - **DLSS still stops upscaling at about 215 s in both**, followed by `out of VRAM (39)` (10,371 with #1544, 11,717 on `main`). No device removed and no `0x8007000E` storm on this card. - DLSS-G produced no frames in either run, so its part of this issue is not evaluated here. So #1544 closes one admission path but does not resolve this issue on a 12 GB card with DLSS-G. The remaining growth matches the follow-ups the PR lists as out of scope. One run per build, and the idle workload diverged between the runs; the PR comment covers the limits.
Author
Owner

@⁠wzl271 on GitHub · 2026-11-29 02:01 UTC · original

16 GB card: a38716d removes the admission thrash, but residency still exceeds physical VRAM

I put a38716d on top of the release tag (nothing else — v2026.11.28.03 + that one commit, resource.rs conflicts were the pure-additive hunks) and ran the same build/place for 13 minutes at 2560x1440, Series X profile, VICTORY_HOST_RDNA=2 RDNA_FLOAT=1 HELPER_OWN=1 FIRSTLANE_OWN=1 WAVE_WIDE=1 FULLSCREEN=1, texture room at the default 95 %.

What the fix did (this is the part that works): across 139 five-second samples the GPU time never exceeded 43.4 ms (mean 5.2 ms) and the queue kept draining — copies 17–35 ms / 43–72 MB per frame, 5048 draws. On the unpatched release build the same scene falls off the same cliff at ~10 min with 204.6 ms ... on the GPU and then 600–1600 ms. So the "over budget, admit only into a free range that exists now" behaviour is doing what it says.

What it cannot do: the run still collapses, 13 min in, because the residency is over the card, not over the line:

01:57:37  1.0 fps, 1001.9 ms/frame (78.9 preparing: copies 43.6 ms 50.1 MB, textures 8.9 ms 211.4 MB;
          911.1 on the GPU; 15.5 copying back 2.7 MB), 4786 draws/frame
01:58:08  0.7 fps, 1504.8 ms/frame (... 1425.1 on the GPU ...)
01:58:15  0.5 fps, 2203.1 ms/frame (... 2097.1 on the GPU ...)
the texture queue's room: 15391 MB in use - 2265 MB free in texture blocks + 175 MB kept for
          render targets ... (94.8 % of a budget of 14704 MB)

Peak in use 15407 MB. Windows' own counters at that moment (three samples, GPU Engine/GPU Adapter Memory):

dedicated 15925 MB / 15875 MB / 15852 MB   (of ~16368 MB)
shared     9335 MB /  9354 MB /  9278 MB

i.e. ~15.9 GB pinned in VRAM plus ~9.3 GB spilled into system memory, so every frame is a page-fault storm and on the GPU is the wait, exactly as in #1496's diagnosis — just against physical memory this time instead of against the 94.8 % line. On the 7900 XTX in your report 15.4 GB fits and the fix gets you 86–90 % of base framerate; on a 16 GB card it can't.

Two questions

  1. VICTORY_VRAM_BUDGET_MB and VICTORY_TEXTURE_BUDGET_MB exist in the binary but the logged budget stays at the hardware figure (14704–15556 MB across runs) whatever I set them to. Are they meant to cap the residency, or only to feed room_line()?
  2. Is an eviction path (let go of host copies the title has not sampled for N seconds, VICTORY_TEXTURE_AWAY_MS / VICTORY_SLOT_EVICT_PERCENT shape) on the table? On 16 GB that is the only thing that turns "13 good minutes" into a session — the working set never stops growing, so a bigger line or a better admission only moves the cliff.

Machine: RX 7900 GRE 16 GB, Ryzen 5 5600, 48 GB, Windows 10 19045, Adrenalin 32.0.32029.2010, GTA6 930.048.020-vb_sub_story (Series X dump). Binary built from source with the GNU toolchain (x86_64-pc-windows-gnu, rustc 1.100.1) — separate issue for the missing D3D12SDKVersion export on that target. Log: %LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-014408-9084.log.

Next on my list is the Series S picture size (1920x1080 DLAA / 1280x720) to see whether the working set can be held under 14.5 GB at all; I will report the numbers here either way.

**@⁠wzl271** on GitHub · 2026-11-29 02:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1496#issuecomment-7249159182) ### 16 GB card: `a38716d` removes the admission thrash, but residency still exceeds physical VRAM I put `a38716d` on top of the release tag (nothing else — `v2026.11.28.03` + that one commit, `resource.rs` conflicts were the pure-additive hunks) and ran the same build/place for 13 minutes at 2560x1440, Series X profile, `VICTORY_HOST_RDNA=2 RDNA_FLOAT=1 HELPER_OWN=1 FIRSTLANE_OWN=1 WAVE_WIDE=1 FULLSCREEN=1`, texture room at the default 95 %. **What the fix did (this is the part that works):** across 139 five-second samples the GPU time never exceeded **43.4 ms** (mean 5.2 ms) and the queue kept draining — `copies 17–35 ms / 43–72 MB` per frame, 5048 draws. On the unpatched release build the same scene falls off the same cliff at ~10 min with `204.6 ms ... on the GPU` and then 600–1600 ms. So the "over budget, admit only into a free range that exists now" behaviour is doing what it says. **What it cannot do:** the run still collapses, 13 min in, because the residency is over the card, not over the line: ``` 01:57:37 1.0 fps, 1001.9 ms/frame (78.9 preparing: copies 43.6 ms 50.1 MB, textures 8.9 ms 211.4 MB; 911.1 on the GPU; 15.5 copying back 2.7 MB), 4786 draws/frame 01:58:08 0.7 fps, 1504.8 ms/frame (... 1425.1 on the GPU ...) 01:58:15 0.5 fps, 2203.1 ms/frame (... 2097.1 on the GPU ...) the texture queue's room: 15391 MB in use - 2265 MB free in texture blocks + 175 MB kept for render targets ... (94.8 % of a budget of 14704 MB) ``` Peak `in use` 15407 MB. Windows' own counters at that moment (three samples, `GPU Engine`/`GPU Adapter Memory`): ``` dedicated 15925 MB / 15875 MB / 15852 MB (of ~16368 MB) shared 9335 MB / 9354 MB / 9278 MB ``` i.e. **~15.9 GB pinned in VRAM plus ~9.3 GB spilled into system memory**, so every frame is a page-fault storm and `on the GPU` is the wait, exactly as in #1496's diagnosis — just against physical memory this time instead of against the 94.8 % line. On the 7900 XTX in your report 15.4 GB fits and the fix gets you 86–90 % of base framerate; on a 16 GB card it can't. ### Two questions 1. `VICTORY_VRAM_BUDGET_MB` and `VICTORY_TEXTURE_BUDGET_MB` exist in the binary but the logged `budget` stays at the hardware figure (14704–15556 MB across runs) whatever I set them to. Are they meant to cap the residency, or only to feed `room_line()`? 2. Is an eviction path (let go of host copies the title has not sampled for N seconds, `VICTORY_TEXTURE_AWAY_MS` / `VICTORY_SLOT_EVICT_PERCENT` shape) on the table? On 16 GB that is the only thing that turns "13 good minutes" into a session — the working set never stops growing, so a bigger line or a better admission only moves the cliff. Machine: RX 7900 GRE 16 GB, Ryzen 5 5600, 48 GB, Windows 10 19045, Adrenalin 32.0.32029.2010, GTA6 930.048.020-vb_sub_story (Series X dump). Binary built from source with the GNU toolchain (`x86_64-pc-windows-gnu`, rustc 1.100.1) — separate issue for the missing `D3D12SDKVersion` export on that target. Log: `%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-014408-9084.log`. Next on my list is the Series S picture size (1920x1080 DLAA / 1280x720) to see whether the working set can be held under 14.5 GB at all; I will report the numbers here either way.
This discussion has been locked. Commenting is limited to contributors.
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#1496
No description provided.