gpu(queue): release dynamic descriptor table slots in submit_split #40

Merged
Androtim merged 1 commit from upstream-pr/40 into main 2026-11-28 18:44:38 +00:00
Androtim commented 2026-11-28 11:35:17 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T11:35:17Z.


Summary

Port trustno1-coder/VIctory-NVIDIA 1d3b414 (fxceless/victory-fork PR #1320) into crates/victory-gpu/src/queue.rs:

  • Call crate::list::tables_done(&lists[..cut]) after host.execute(&now) in submit_split so immediately executed (non-detached) command lists return their fresh descriptor tables' dynamic slots before the title resets them, matching submit_cut.

Rig Specs Tested On

  • CPU: 13th Gen Intel(R) Core(TM) i7-13700F
  • GPU & VRAM: NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM)
  • System RAM: 32 GiB
  • OS & GPU Driver: Windows 11 Home (Build 26300), NVIDIA Driver 32.0.16.2124

Run Settings & Profile

  • Build & Commit SHA: diag (--features diagnostics --release, used for verify-world.ps1 + PNG capture) and plain release @ 9947381 (off origin/main f3c0c33)
  • Console Profile & Internal Resolution / Scale: series-s
  • Ray Tracing: off
  • Upscaling: DLSS quality (VICTORY_DLSS=1, VICTORY_DLSS_MODE=quality)
  • Frame Generation: off
  • Launcher Command / Preset & Extra VICTORY_* Overrides: verify-world.ps1 default preset (play.rs SETTINGS + VICTORY_D3D12_DRED=light, VICTORY_CAPTURE_WORLD=1). Note: submit_split is the VICTORY_CUT_WAITS=0 / VICTORY_ASYNC_SUBMIT=0 fallback path; the default runtime verification exercises behind / submit_cut end-to-end as a regression check.
  • Scene / Area & Session Length: Golden Mission-1 balcony & exterior autosave (75s in-world >=500 draws/frame)

Measurements & Verification

  • Base FPS (without Frame Gen): 10.9 fps median (91.7 ms/frame, 9.5–11.9 fps steady balcony, 9.71 fps mean, 1.5 fps min at world transition) vs 8.9 fps baseline (+2.00 fps, diag build)
  • Frame-Gen FPS (if enabled): off
  • VRAM / RAM Usage: 5838 MB max / 5816.5 MB median vs 6939 MB budget (0 MB over, 8.3% room=false; -26 MB vs baseline 5864 MB)
  • Crashes / DRED Resets: 0 crashes, 0 host texture errors, final_waiting=1487 vs 7121 baseline (-5634), mapped() stall rate 33.5 ms/s, 24 captured world PNGs (19/24 lit, median luma 105.51, 0.0% near-black/magenta, edge_energy=7.0; visually inspected frame-7747.png and frame-8669.png), ALL 11/11 verify-world.ps1 gates PASS
  • Automated Checks:
    • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (asset policy: 294 files ok)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask (6 passed; 0 failed)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib -- --test-threads=1 (448 passed; 0 failed; 36 ignored)
    • cargo +1.98.1-x86_64-pc-windows-gnu build -p victory --release + objdump -p (zero non-system MinGW DLL imports) and cargo +1.98.1-x86_64-pc-windows-gnu build -p victory --features diagnostics --release
<!-- greyfinch-sync:Androtim/MiniVI:issue:5539701339 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/40). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T11:35:17Z. --- ## Summary Port `trustno1-coder/VIctory-NVIDIA` [`1d3b414`](https://github.com/trustno1-coder/VIctory-NVIDIA/commit/1d3b414) (`fxceless/victory-fork` PR `#1320`) into `crates/victory-gpu/src/queue.rs`: - Call `crate::list::tables_done(&lists[..cut])` after `host.execute(&now)` in `submit_split` so immediately executed (non-detached) command lists return their fresh descriptor tables' dynamic slots before the title resets them, matching `submit_cut`. ## Rig Specs Tested On - **CPU:** 13th Gen Intel(R) Core(TM) i7-13700F - **GPU & VRAM:** NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM) - **System RAM:** 32 GiB - **OS & GPU Driver:** Windows 11 Home (Build 26300), NVIDIA Driver 32.0.16.2124 ## Run Settings & Profile - **Build & Commit SHA:** `diag` (`--features diagnostics --release`, used for `verify-world.ps1` + PNG capture) and plain `release` @ `9947381` (off `origin/main` `f3c0c33`) - **Console Profile & Internal Resolution / Scale:** `series-s` - **Ray Tracing:** `off` - **Upscaling:** `DLSS quality` (`VICTORY_DLSS=1`, `VICTORY_DLSS_MODE=quality`) - **Frame Generation:** `off` - **Launcher Command / Preset & Extra `VICTORY_*` Overrides:** `verify-world.ps1` default preset (`play.rs SETTINGS` + `VICTORY_D3D12_DRED=light`, `VICTORY_CAPTURE_WORLD=1`). Note: `submit_split` is the `VICTORY_CUT_WAITS=0` / `VICTORY_ASYNC_SUBMIT=0` fallback path; the default runtime verification exercises `behind` / `submit_cut` end-to-end as a regression check. - **Scene / Area & Session Length:** Golden Mission-1 balcony & exterior autosave (`75s` in-world >=500 draws/frame) ## Measurements & Verification - **Base FPS (without Frame Gen):** `10.9 fps` median (`91.7 ms/frame`, `9.5–11.9 fps` steady balcony, `9.71 fps` mean, `1.5 fps` min at world transition) vs `8.9 fps` baseline (`+2.00 fps`, `diag` build) - **Frame-Gen FPS (if enabled):** `off` - **VRAM / RAM Usage:** `5838 MB` max / `5816.5 MB` median vs `6939 MB` budget (`0 MB` over, `8.3%` `room=false`; `-26 MB` vs baseline `5864 MB`) - **Crashes / DRED Resets:** `0` crashes, `0` host texture errors, `final_waiting=1487` vs `7121` baseline (`-5634`), `mapped()` stall rate `33.5 ms/s`, `24` captured world PNGs (`19/24` lit, median luma `105.51`, `0.0%` near-black/magenta, `edge_energy=7.0`; visually inspected `frame-7747.png` and `frame-8669.png`), ALL 11/11 `verify-world.ps1` gates PASS - **Automated Checks:** - [x] `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` (`asset policy: 294 files ok`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask` (`6 passed; 0 failed`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` (`0` warnings) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings` (`0` warnings) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib -- --test-threads=1` (`448 passed; 0 failed; 36 ignored`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu build -p victory --release` + `objdump -p` (zero non-system MinGW DLL imports) and `cargo +1.98.1-x86_64-pc-windows-gnu build -p victory --features diagnostics --release`
Androtim commented 2026-11-28 12:02:56 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T12:02:56Z.


Automated triage for the maintainers (not an approval).

Verdict: needs-gpu-test · CI (check): passing

Review Summary

  • Change: Adds crate::list::tables_done(&lists[..cut]) immediately after host.execute(&now) in submit_split (crates/victory-gpu/src/queue.rs), matching the existing synchronous execution path in submit_cut (crates/victory-gpu/src/queue.rs:167-177).
  • Correctness: On the cut > 0 path in submit_split, lists[..cut] are executed synchronously via host.execute(&now) without being detached (crate::list::detach is only used for lists[cut..]). Releasing their fresh descriptor tables' dynamic slots right after host.execute(&now) prevents those slots from staying pinned until the title resets the command lists, consistent with submit_cut.
  • Risk / Verification Gap: CI is passing and the logic is clean and minimal. However, this touches the D3D12 host queue submission & descriptor slot lifecycle on the submit_split fallback path (VICTORY_CUT_WAITS=0, VICTORY_ASYNC_SUBMIT=0), which was not directly exercised by the default-preset verify-world.ps1 run in the PR description. A quick local GPU smoke test on that fallback path is warranted before merging.

(Automated technical triage; not formal maintainer approval.)


Generated with Antigravity CLI (agy).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7238956229 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/40#issuecomment-7238956229). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T12:02:56Z. --- <!-- minivi-triage v1 head=9947381b4ab2167825d7c8c91f5f564b26bc990f verdict=needs-gpu-test ci=passing at=2026-11-28T12:03:22Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-gpu-test` · **CI (`check`):** `passing` ### Review Summary - **Change**: Adds `crate::list::tables_done(&lists[..cut])` immediately after `host.execute(&now)` in `submit_split` (`crates/victory-gpu/src/queue.rs`), matching the existing synchronous execution path in `submit_cut` (`crates/victory-gpu/src/queue.rs:167-177`). - **Correctness**: On the `cut > 0` path in `submit_split`, `lists[..cut]` are executed synchronously via `host.execute(&now)` without being detached (`crate::list::detach` is only used for `lists[cut..]`). Releasing their fresh descriptor tables' dynamic slots right after `host.execute(&now)` prevents those slots from staying pinned until the title resets the command lists, consistent with `submit_cut`. - **Risk / Verification Gap**: CI is passing and the logic is clean and minimal. However, this touches the D3D12 host queue submission & descriptor slot lifecycle on the `submit_split` fallback path (`VICTORY_CUT_WAITS=0`, `VICTORY_ASYNC_SUBMIT=0`), which was not directly exercised by the default-preset `verify-world.ps1` run in the PR description. A quick local GPU smoke test on that fallback path is warranted before merging. *(Automated technical triage; not formal maintainer approval.)* --- _Generated with Antigravity CLI (`agy`)._
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
Androtim/MiniVI!40
No description provided.