Pipelines: a pipeline D3D refuses for memory is tried 6 times, 1 to 16 s apart, then refused for the run (#4127) #4694

Closed
davemathews12 wants to merge 4 commits from upstream-pr/4694 into main
davemathews12 commented 2026-12-01 02:07:08 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-12-01T02:07:08Z.


Fixes #4127

What it changes

Since #2469, a pipeline that D3D refuses with E_OUTOFMEMORY is deferred and tried again about every 250 ms (DRIVER_RETRY_INTERVAL_MS) for the whole run. A compute pipeline the driver always refuses is then compiled about 240 times a minute. nick0451's bisect in #4127 (227 commits, first-parent from 41adb551 to c71899d9, an 8-minute city run each) names 97593f46 (#2469) as the first commit with 1.7–2.0 GB/min of private-memory growth. Every bad run logs host pipeline not made: D3D12 returned E_OUTOFMEMORY (reaching so_far=1024 in 8 minutes, compute only), and the good runs log none. The refusing driver isn't only 617.x (#4630): it's also an RTX 3090 on 610.88.

This change:

  • counts each pipeline's driver refusals (driver_fails);
  • doubles its wait at each refusal: 1, 2, 4, 8, 16 s (driver_retry_delay_ms, at most a minute);
  • refuses it for the run at the 6th refusal (settle stores None), which is what happened before #2469. A refusal that passes (memory short while loading, #2188) is still tried for about half a minute;
  • adds VICTORY_DRIVER_TRIES=<n> to set the number of tries; 0 keeps #2469's unbounded retries, so one build can A/B it.

The global 250 ms retry token and the memory guard's own deferral (RETRY_AFTER_MS) are unchanged.

How it was tested

  • GPU and profile: none here (no Windows machine); not run in the game yet. nick0451 is running this branch (default vs VICTORY_DRIVER_TRIES=0, two rounds each, the same 8-minute city test as the bisect) and will post the numbers here.
  • Before / After: pending those runs.
  • For shader changes, the wave sizes tested: n/a.
  • cargo test passed for the crates it touches: not run (Windows-only module). cargo clippy -p victory-gpu --tests --target x86_64-pc-windows-msvc: no errors and no warnings in make.rs, cross-checked from Linux. New test a_driver_refusal_backs_off_and_ends (delays, the bound, 0 = unbounded); the existing actual_driver_allocation_error_leaves_the_pipeline_retryable still holds (the first retry is still after 1 s).

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches (#4127, #2469, DRIVER_RETRY, "pipeline retry E_OUTOFMEMORY"). None bounds these retries. Related: #2888 (retry a mesh pipeline after making room), #4471 (draws not held on memory-deferred retries), #4630 (driver 617.x troubleshooting).

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5577490245 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694). Originally posted by [davemathews12](https://github.com/davemathews12) on 2026-12-01T02:07:08Z. --- Fixes #4127 ## What it changes Since #2469, a pipeline that D3D refuses with `E_OUTOFMEMORY` is deferred and tried again about every 250 ms (`DRIVER_RETRY_INTERVAL_MS`) for the whole run. A compute pipeline the driver *always* refuses is then compiled about 240 times a minute. nick0451's bisect in #4127 (227 commits, first-parent from 41adb551 to c71899d9, an 8-minute city run each) names 97593f46 (#2469) as the first commit with 1.7–2.0 GB/min of private-memory growth. Every bad run logs `host pipeline not made: D3D12 returned E_OUTOFMEMORY` (reaching `so_far=1024` in 8 minutes, compute only), and the good runs log none. The refusing driver isn't only 617.x (#4630): it's also an RTX 3090 on 610.88. This change: - counts each pipeline's driver refusals (`driver_fails`); - doubles its wait at each refusal: 1, 2, 4, 8, 16 s (`driver_retry_delay_ms`, at most a minute); - refuses it for the run at the 6th refusal (`settle` stores `None`), which is what happened before #2469. A refusal that passes (memory short while loading, #2188) is still tried for about half a minute; - adds `VICTORY_DRIVER_TRIES=<n>` to set the number of tries; `0` keeps #2469's unbounded retries, so one build can A/B it. The global 250 ms retry token and the memory guard's own deferral (`RETRY_AFTER_MS`) are unchanged. ## How it was tested - GPU and profile: none here (no Windows machine); **not run in the game yet.** nick0451 is running this branch (default vs `VICTORY_DRIVER_TRIES=0`, two rounds each, the same 8-minute city test as the bisect) and will post the numbers here. - Before / After: pending those runs. - For shader changes, the wave sizes tested: n/a. - `cargo test` passed for the crates it touches: not run (Windows-only module). `cargo clippy -p victory-gpu --tests --target x86_64-pc-windows-msvc`: no errors and no warnings in `make.rs`, cross-checked from Linux. New test `a_driver_refusal_backs_off_and_ends` (delays, the bound, `0` = unbounded); the existing `actual_driver_allocation_error_leaves_the_pipeline_retryable` still holds (the first retry is still after 1 s). ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches (#4127, #2469, `DRIVER_RETRY`, "pipeline retry E_OUTOFMEMORY"). None bounds these retries. Related: #2888 (retry a mesh pipeline after making room), #4471 (draws not held on memory-deferred retries), #4630 (driver 617.x troubleshooting). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nick0451 commented 2026-12-01 03:47:00 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-12-01T03:47:00Z.


Tested in the game. I built 15637777; the only change since, 22fd9e5a, is a doc comment. RTX 3090, driver 610.88, i9-14900K, 32 GB, Series S, DLSS performance, no frame generation or ray tracing. Release build with LTO off and its own cache dir, starts alternating, an 8-minute off-screen city run, private-memory growth from minute 4. Full details are in #4127.

build run growth mean fps
this PR, defaults round 1 / 2 0.08 / 0.04 GB/min 22.4 / 23.4
this PR, VICTORY_DRIVER_TRIES=0 round 1 / 2 0.29 / 0.25 GB/min 20.9 / 22.2
v2026.11.30.03 source, as shipped (unbounded 250 ms retries) round 1 / 2 1.58 / 1.94 GB/min 20.3 / 18.9
v2026.11.30.03 source, refused once (pre-#2469) round 1 / 2 0.07 / 0.12 GB/min 22.1 / 23.0
  • With the defaults, 8 compute pipelines per run end as "not tried again" after about 30 s, and memory is flat from then on. That matches the refuse-once build.
  • VICTORY_DRIVER_TRIES=0 lifts the bound but keeps the backoff: defer uses driver_retry_delay_ms whenever driver_oom is set. So it reached only so_far=64 in 8 minutes, against 1024 as shipped, and it isn't quite "#2469's unbounded retries" as the description says. The shipped rows above are the true "before".
  • Not tested: a load where memory really is short (#2188), other cards and drivers, frame generation, ray tracing.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7300058334 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7300058334). Originally posted by [nick0451](https://github.com/nick0451) on 2026-12-01T03:47:00Z. --- Tested in the game. I built `15637777`; the only change since, `22fd9e5a`, is a doc comment. RTX 3090, driver 610.88, i9-14900K, 32 GB, Series S, DLSS performance, no frame generation or ray tracing. Release build with LTO off and its own cache dir, starts alternating, an 8-minute off-screen city run, private-memory growth from minute 4. Full details are in [#4127](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4127#issuecomment-7299261135). | build | run | growth | mean fps | |---|---|---|---| | this PR, defaults | round 1 / 2 | **0.08 / 0.04 GB/min** | 22.4 / 23.4 | | this PR, `VICTORY_DRIVER_TRIES=0` | round 1 / 2 | 0.29 / 0.25 GB/min | 20.9 / 22.2 | | v2026.11.30.03 source, as shipped (unbounded 250 ms retries) | round 1 / 2 | 1.58 / 1.94 GB/min | 20.3 / 18.9 | | v2026.11.30.03 source, refused once (pre-#2469) | round 1 / 2 | 0.07 / 0.12 GB/min | 22.1 / 23.0 | - With the defaults, 8 compute pipelines per run end as "not tried again" after about 30 s, and memory is flat from then on. That matches the refuse-once build. - `VICTORY_DRIVER_TRIES=0` lifts the bound but keeps the backoff: `defer` uses `driver_retry_delay_ms` whenever `driver_oom` is set. So it reached only `so_far=64` in 8 minutes, against 1024 as shipped, and it isn't quite "#2469's unbounded retries" as the description says. The shipped rows above are the true "before". - Not tested: a load where memory really is short (#2188), other cards and drivers, frame generation, ray tracing.
nick0451 commented 2026-12-01 04:45:10 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-12-01T04:45:10Z.


One more result from the same runs. The endless retry is also the stutter, not only the memory. From the per-second frame times lines, last 240 s of each 8-minute run, same machine and test as above:

build seconds with a frame over 100 ms frames over 100 ms
v2026.11.30.03 source, as shipped (unbounded 250 ms retries), round 1 / 2 199 / 211 337 / 365
v2026.11.30.03 source, refused once, round 1 / 2 16 / 4 18 / 4
this PR, defaults, round 1 / 2 34 / 10 42 / 10
this PR, VICTORY_DRIVER_TRIES=0 (backoff kept), round 1 / 2 28 / 22 31 / 25

Frames over 50 ms barely move (about 1,600–2,000 in every arm); it's the over-100 ms spikes, one or two in most seconds, that come with the retries. So this PR should also take away much of the "small stutters, quick fps drops" reported on .03 on cards whose driver refuses these pipelines.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7301063108 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7301063108). Originally posted by [nick0451](https://github.com/nick0451) on 2026-12-01T04:45:10Z. --- One more result from the same runs. The endless retry is also the stutter, not only the memory. From the per-second `frame times` lines, last 240 s of each 8-minute run, same machine and test as above: | build | seconds with a frame over 100 ms | frames over 100 ms | |---|---|---| | v2026.11.30.03 source, as shipped (unbounded 250 ms retries), round 1 / 2 | **199 / 211** | 337 / 365 | | v2026.11.30.03 source, refused once, round 1 / 2 | 16 / 4 | 18 / 4 | | this PR, defaults, round 1 / 2 | 34 / 10 | 42 / 10 | | this PR, `VICTORY_DRIVER_TRIES=0` (backoff kept), round 1 / 2 | 28 / 22 | 31 / 25 | Frames over 50 ms barely move (about 1,600–2,000 in every arm); it's the over-100 ms spikes, one or two in most seconds, that come with the retries. So this PR should also take away much of the "small stutters, quick fps drops" reported on .03 on cards whose driver refuses these pipelines.
YounesAH15 commented 2026-12-01 07:36:37 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by YounesAH15 on 2026-12-01T07:36:37Z.


Confirmed on RTX 3050 8 GB (driver 610.88 / 32.0.16.1088), 40 GB RAM, 12-thread CPU, Windows 11, Series S, DLSS Performance, FSR 3 2x.

Run (in-world >= 500 draws/frame) Samples / median draws E_OUTOFMEMORY retries Committed RAM (peak / latest) Median rendered FPS Frame time (med / p95)
Before (e1251c31 + local perf branches, without #4694) 76 / 3,892 so_far=1024, 0 stopped 35,625 MB (climbing) 7.9 fps 125.0 ms / 204.0 ms
With #4694 (15637777 + 22fd9e5a cherry-picked) 191 / 4,016 (~16 min) max so_far=32, 8 compute shaders gave up after 6 tries 20,854 MB (20,797 MB latest — flat) 15.6 fps 64.1 ms / 72.0 ms

(Note: the "With #4694" build also included #3760 and local --auto-fps tuning, so the FPS delta is not isolated to #4694 alone; however, the E_OUTOFMEMORY retry loop stopping cleanly after 6 tries on all 8 refused compute shaders and committed RAM staying completely flat at 20.8 GB over 16+ minutes vs climbing past 35.6 GB — and 46.8 GB / 26.7 GB unnamed private bytes in an earlier Series X run on e1251c31 — directly confirms #4694 eliminates the driver 610.88 leak on RTX 3050 8 GB.)

cargo test -p victory-gpu --lib a_driver_refusal_backs_off_and_ends: 1 passed, 0 failed.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7304266943 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7304266943). Originally posted by [YounesAH15](https://github.com/YounesAH15) on 2026-12-01T07:36:37Z. --- Confirmed on **RTX 3050 8 GB (driver `610.88` / `32.0.16.1088`), 40 GB RAM, 12-thread CPU, Windows 11, Series S, DLSS Performance, FSR 3 2x**. | Run (in-world `>= 500 draws/frame`) | Samples / median draws | `E_OUTOFMEMORY` retries | Committed RAM (peak / latest) | Median rendered FPS | Frame time (med / p95) | |---|---:|---|---:|---:|---:| | Before (`e1251c31` + local perf branches, without `#4694`) | 76 / 3,892 | `so_far=1024`, `0` stopped | `35,625 MB` (climbing) | `7.9 fps` | `125.0 ms` / `204.0 ms` | | With `#4694` (`15637777` + `22fd9e5a` cherry-picked) | 191 / 4,016 (~16 min) | `max so_far=32`, `8` compute shaders gave up after 6 tries | **`20,854 MB` (`20,797 MB` latest — flat)** | `15.6 fps` | `64.1 ms` / `72.0 ms` | *(Note: the "With `#4694`" build also included `#3760` and local `--auto-fps` tuning, so the FPS delta is not isolated to `#4694` alone; however, the `E_OUTOFMEMORY` retry loop stopping cleanly after 6 tries on all 8 refused compute shaders and committed RAM staying completely flat at `20.8 GB` over 16+ minutes vs climbing past `35.6 GB` — and `46.8 GB` / `26.7 GB` unnamed private bytes in an earlier Series X run on `e1251c31` — directly confirms `#4694` eliminates the driver `610.88` leak on RTX 3050 8 GB.)* `cargo test -p victory-gpu --lib a_driver_refusal_backs_off_and_ends`: 1 passed, 0 failed.
andrewpozdnakov7-jpg commented 2026-12-01 10:25:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T10:25:32Z.


In 22fd9e5a, Pending::defer logs the default RETRY_AFTER_MS even when driver_retry_delay_ms() schedules a longer pause. For example, the second driver refusal schedules 2,000 ms and the message reports 1,000 ms if that refusal is selected for logging.

Proposed follow-up uses the same computed delay for the message and retry_at. I cherry-picked both existing commits onto current main 5fabb46, preserving their Git author. The follow-up only adjusts the delay reported by the log. cargo check --locked -p victory-gpu --jobs 2 and the staged policy check passed.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the follow-up into another commit.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7308170055 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7308170055). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T10:25:32Z. --- In `22fd9e5a`, `Pending::defer` logs the default `RETRY_AFTER_MS` even when `driver_retry_delay_ms()` schedules a longer pause. For example, the second driver refusal schedules 2,000 ms and the message reports 1,000 ms if that refusal is selected for logging. [Proposed follow-up](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/0c4bd9dba5ecd5e42916ccbceb522f37bc23f3b8) uses the same computed delay for the message and `retry_at`. I cherry-picked both existing commits onto current main `5fabb46`, preserving their Git author. The follow-up only adjusts the delay reported by the log. `cargo check --locked -p victory-gpu --jobs 2` and the staged policy check passed. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the follow-up into another commit.
davemathews12 commented 2026-12-01 12:37:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-12-01T12:37:46Z.


Thanks all. Two more commits:

  • 7eab55cb: VICTORY_DRIVER_TRIES=0 now also drops the back-off (flat RETRY_AFTER_MS), so it really is #2469 as shipped, as @nick0451 pointed out.
  • 38c4a9e5 (@andrewpozdnakov7-jpg's 0c4bd9d, cherry-picked with authorship kept): the warning reports the real retry delay.

Results so far: @nick0451 (RTX 3090, 610.88) 1.58/1.94 → 0.08/0.04 GB/min, 20.3/18.9 → 22.4/23.4 fps, frames over 100 ms 337/365 → 42/10; @YounesAH15 (RTX 3050, 610.88) 35.6 GB climbing → 20.8 GB flat over 16 min, 8 compute pipelines gave up after 6 tries (the fps there includes other changes).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7311414602 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7311414602). Originally posted by [davemathews12](https://github.com/davemathews12) on 2026-12-01T12:37:46Z. --- Thanks all. Two more commits: - 7eab55cb: VICTORY_DRIVER_TRIES=0 now also drops the back-off (flat RETRY_AFTER_MS), so it really is #2469 as shipped, as @nick0451 pointed out. - 38c4a9e5 (@andrewpozdnakov7-jpg's 0c4bd9d, cherry-picked with authorship kept): the warning reports the real retry delay. Results so far: @nick0451 (RTX 3090, 610.88) 1.58/1.94 → 0.08/0.04 GB/min, 20.3/18.9 → 22.4/23.4 fps, frames over 100 ms 337/365 → 42/10; @YounesAH15 (RTX 3050, 610.88) 35.6 GB climbing → 20.8 GB flat over 16 min, 8 compute pipelines gave up after 6 tries (the fps there includes other changes).
davemathews12 commented 2026-12-01 13:22:16 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-12-01T13:22:16Z.


Ready for review: tested in game on three PCs, every run with the same before/after.

tester PC before (main) with #4694
@nick0451 RTX 3090, 610.88, 32 GB 1.58 / 1.94 GB/min, frames >100 ms 337 / 365 0.08 / 0.04 GB/min, frames >100 ms 42 / 10
@YounesAH15 RTX 3050, 610.88, 40 GB 35.6 GB and climbing 20.8 GB flat over 16 min
@Damix49 (#2415) RTX 3070 Ti, 617.42, 32 GB ~2.2 GB/min, page-ins 1,925/s, copy-back 17.0 ms ~0.29 GB/min (flat at the e1f2eb6 level), page-ins 541/s, copy-back 12.2 ms

@meonline42 measured ~5 GB/min on main 7d93ee07 (RTX 3090, 64 GB) from the same refused compute pipelines (098fc28e44347a00, b3e7781d53ff8326), and none on builds before #2469. This growth is the extra ~15 GB on main in #2415's slowdown reports.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7312510956 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7312510956). Originally posted by [davemathews12](https://github.com/davemathews12) on 2026-12-01T13:22:16Z. --- Ready for review: tested in game on three PCs, every run with the same before/after. | tester | PC | before (main) | with #4694 | |---|---|---|---| | @nick0451 | RTX 3090, 610.88, 32 GB | 1.58 / 1.94 GB/min, frames >100 ms 337 / 365 | 0.08 / 0.04 GB/min, frames >100 ms 42 / 10 | | @YounesAH15 | RTX 3050, 610.88, 40 GB | 35.6 GB and climbing | 20.8 GB flat over 16 min | | @Damix49 (#2415) | RTX 3070 Ti, 617.42, 32 GB | ~2.2 GB/min, page-ins 1,925/s, copy-back 17.0 ms | ~0.29 GB/min (flat at the e1f2eb6 level), page-ins 541/s, copy-back 12.2 ms | @meonline42 measured ~5 GB/min on main 7d93ee07 (RTX 3090, 64 GB) from the same refused compute pipelines (098fc28e44347a00, b3e7781d53ff8326), and none on builds before #2469. This growth is the extra ~15 GB on main in #2415's slowdown reports.
nick0451 commented 2026-12-01 16:32:34 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-12-01T16:32:34Z.


@davemathews12 Rerun on the head up for review (38c4a9e5), now that VICTORY_DRIVER_TRIES=0 is #2469 as shipped. Same PC (RTX 3090, driver 610.88, 32 GB, Series S, DLSS performance) and the same 8-minute city run as before: one build (LTO off) with its own fresh cache, runs alternating, growth measured from minute 4, frames over the last 240 s.

run private growth mean fps seconds with a frame >100 ms frames >100 ms retries (so_far, highest logged) "not tried again"
default, round 1 0.14 GB/min 21.8 30 36 32 9
VICTORY_DRIVER_TRIES=0, round 1 2.11 GB/min 18.9 209 381 1024 0
default, round 2 0.17 GB/min 22.5 10 10 32 9
VICTORY_DRIVER_TRIES=0, round 2 1.77 GB/min 19.9 213 335 1024 0

The 0 arm now matches what v2026.11.30.03 did here (1.58 / 1.94 GB/min, 199 / 211 seconds with a >100 ms frame), so the switch is a faithful "before" on the same build. The defaults behave as on 15637777: 9 pipelines per run end as "not tried again" after their tries, memory stays flat, and the stutter is gone. The new log line shows the real delays.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7317778994 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7317778994). Originally posted by [nick0451](https://github.com/nick0451) on 2026-12-01T16:32:34Z. --- @davemathews12 Rerun on the head up for review (`38c4a9e5`), now that `VICTORY_DRIVER_TRIES=0` is #2469 as shipped. Same PC (RTX 3090, driver 610.88, 32 GB, Series S, DLSS performance) and the same 8-minute city run as before: one build (LTO off) with its own fresh cache, runs alternating, growth measured from minute 4, frames over the last 240 s. | run | private growth | mean fps | seconds with a frame >100 ms | frames >100 ms | retries (`so_far`, highest logged) | "not tried again" | |---|---|---|---|---|---|---| | default, round 1 | **0.14 GB/min** | 21.8 | 30 | 36 | 32 | 9 | | `VICTORY_DRIVER_TRIES=0`, round 1 | 2.11 GB/min | 18.9 | 209 | 381 | 1024 | 0 | | default, round 2 | **0.17 GB/min** | 22.5 | 10 | 10 | 32 | 9 | | `VICTORY_DRIVER_TRIES=0`, round 2 | 1.77 GB/min | 19.9 | 213 | 335 | 1024 | 0 | The `0` arm now matches what v2026.11.30.03 did here (1.58 / 1.94 GB/min, 199 / 211 seconds with a >100 ms frame), so the switch is a faithful "before" on the same build. The defaults behave as on `15637777`: 9 pipelines per run end as "not tried again" after their tries, memory stays flat, and the stutter is gone. The new log line shows the real delays.
Dishairano commented 2026-12-01 16:45:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dishairano on 2026-12-01T16:45:38Z.


Tested on Windows 10 19045, GTX 1660 SUPER (6 GB), NVIDIA 621.40, Series S, built from 38c4a9e.

  • cargo test -p victory-gpu --lib pipeline::make: 38 passed, including a_driver_refusal_backs_off_and_ends. The one failure, actual_driver_allocation_error_leaves_the_pipeline_retryable, fails the same way on main 5fabb46 here (a Windows 10 test binary gets no Shader Model 6.6), so it's unrelated.
  • In game: started cold (shader library rebuilt), 90 s in the world, no crash; 0 E_OUTOFMEMORY, 0 not tried again, 0 host pipeline not made. On 621.40 this card refuses nothing, so the give-up path itself wasn't exercised here.
  • On whether real video-memory pressure could produce refusals that the 6-try cap cuts off: in 10 earlier runs on this card (same driver, without this PR) video memory sat at or over its budget for most of each run (peak 5179 of 5143 MB, up to 10.9 GB spilled to shared memory), and pipeline creation never returned E_OUTOFMEMORY. So on this configuration a full card alone didn't cause driver refusals.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7318174795 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7318174795). Originally posted by [Dishairano](https://github.com/Dishairano) on 2026-12-01T16:45:38Z. --- Tested on Windows 10 19045, GTX 1660 SUPER (6 GB), NVIDIA 621.40, Series S, built from 38c4a9e. - `cargo test -p victory-gpu --lib pipeline::make`: 38 passed, including `a_driver_refusal_backs_off_and_ends`. The one failure, `actual_driver_allocation_error_leaves_the_pipeline_retryable`, fails the same way on main 5fabb46 here (a Windows 10 test binary gets no Shader Model 6.6), so it's unrelated. - In game: started cold (shader library rebuilt), 90 s in the world, no crash; 0 `E_OUTOFMEMORY`, 0 `not tried again`, 0 `host pipeline not made`. On 621.40 this card refuses nothing, so the give-up path itself wasn't exercised here. - On whether real video-memory pressure could produce refusals that the 6-try cap cuts off: in 10 earlier runs on this card (same driver, without this PR) video memory sat at or over its budget for most of each run (peak 5179 of 5143 MB, up to 10.9 GB spilled to shared memory), and pipeline creation never returned `E_OUTOFMEMORY`. So on this configuration a full card alone didn't cause driver refusals.
trustno1-coder commented 2026-12-01 18:34:36 +00:00 (Migrated from github.com)

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


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:7321163709 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7321163709). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:34:36Z. --- 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.
nick0451 commented 2026-12-01 18:35:52 +00:00 (Migrated from github.com)

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


For deciding whether to rewrite this against the new main: on v2026.12.01.01-test (RTX 3090, driver 610.88), the compute pipelines that .03 had refused on this card (8080af82aaac33df, b3e7781d53ff8326, 9aa4a785e0800cda) are made with no refusal. The log says "0 host pipelines failed", and an 8-minute idle run grew 0.02 GB/min, so the storm didn't start here. But the new main (7724fb03) still has #2469's unbounded retry: DRIVER_RETRY_INTERVAL_MS = 250, reserve_driver_retry and the driver_oom path in refused::failed, with no try limit. So on any card or driver that still gets E_OUTOFMEMORY from CreateComputePipelineState on the rework (#4630's 617.x cards, or the RTX 3050 on 610.88 above, if they still do), the leak and the stutter would come back as before. A check from someone who saw refusals on .03 would settle whether the rework alone is enough.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321196144 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4694#issuecomment-7321196144). Originally posted by [nick0451](https://github.com/nick0451) on 2026-12-01T18:35:52Z. --- For deciding whether to rewrite this against the new main: on v2026.12.01.01-test (RTX 3090, driver 610.88), the compute pipelines that .03 had refused on this card (`8080af82aaac33df`, `b3e7781d53ff8326`, `9aa4a785e0800cda`) are made with no refusal. The log says "0 host pipelines failed", and an 8-minute idle run grew 0.02 GB/min, so the storm didn't start here. But the new main (`7724fb03`) still has #2469's unbounded retry: `DRIVER_RETRY_INTERVAL_MS = 250`, `reserve_driver_retry` and the `driver_oom` path in `refused::failed`, with no try limit. So on any card or driver that still gets `E_OUTOFMEMORY` from `CreateComputePipelineState` on the rework (#4630's 617.x cards, or the RTX 3050 on 610.88 above, if they still do), the leak and the stutter would come back as before. A check from someone who saw refusals on .03 would settle whether the rework alone is enough.

Pull request closed

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!4694
No description provided.