GPU diagnostics: create missing capture output directories #1146

Manually merged
github merged 1 commit from gh-pr/1146/head into gh-pr/1146/base 2026-11-26 04:21:06 +00:00
Owner

@⁠jamesn-xt on GitHub · 2026-11-24 16:13 UTC · original
jamesn-xt:fix/capture-output-directory → main · +1 −1 · 1 files · 1 commits · merged 2026-11-25 00:17 UTC

Setting VICTORY_CAPTURE to a directory that does not exist currently loses every requested frame with a file-write error. Create the output directory and missing parents before writing each diagnostic PNG; creation and write failures retain the existing warning path.

Related: #792. That issue already offers JFIREonFIRE's separate fix, which initializes the directory once. This is an independently reproduced, minimal alternative; please prefer whichever implementation fits the project. This does not fix the title's rendering.

Validation on Windows 11 x64, Ryzen 5 5600, 32 GiB RAM, NVIDIA RTX 4080 (driver 617.42), base ffe310eb2098e52169f4c44db5ffdabf43a72622:

  • Reproduced failed captures with a nonexistent output folder before the change.
  • Rebuilt diagnostics and verified that a previously nonexistent output folder was created and frame PNGs were saved in a bounded local WARP run after the change.
  • cargo test --workspace --locked: 342 passed, 6 ignored.
  • cargo test -p victory-gpu --features diagnostics --locked: 53 passed, 1 ignored, including both existing capture tests.
  • Both workspace Clippy configurations from CI passed (all targets, default features and all features, warnings denied).
  • cargo xtask policy and git diff --check passed.

Game files, captures and retail logs remain outside the repository and are not attached. Commands and runtime checks executed on the machine above.

**@⁠jamesn-xt** on GitHub · 2026-11-24 16:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/1146) `jamesn-xt:fix/capture-output-directory` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-25 00:17 UTC Setting `VICTORY_CAPTURE` to a directory that does not exist currently loses every requested frame with a file-write error. Create the output directory and missing parents before writing each diagnostic PNG; creation and write failures retain the existing warning path. Related: #792. That issue already offers JFIREonFIRE's separate fix, which initializes the directory once. This is an independently reproduced, minimal alternative; please prefer whichever implementation fits the project. This does not fix the title's rendering. Validation on Windows 11 x64, Ryzen 5 5600, 32 GiB RAM, NVIDIA RTX 4080 (driver 617.42), base `ffe310eb2098e52169f4c44db5ffdabf43a72622`: - Reproduced failed captures with a nonexistent output folder before the change. - Rebuilt diagnostics and verified that a previously nonexistent output folder was created and frame PNGs were saved in a bounded local WARP run after the change. - `cargo test --workspace --locked`: 342 passed, 6 ignored. - `cargo test -p victory-gpu --features diagnostics --locked`: 53 passed, 1 ignored, including both existing capture tests. - Both workspace Clippy configurations from CI passed (all targets, default features and all features, warnings denied). - `cargo xtask policy` and `git diff --check` passed. Game files, captures and retail logs remain outside the repository and are not attached. Commands and runtime checks executed on the machine above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:21:04 +00:00
github manually merged commit 47c00d5ea6 into gh-pr/1146/base 2026-11-26 04:21:06 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 18:01 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 47c00d5: cargo test -p victory-gpu passes, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/1146#issuecomment-7140041726) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 47c00d5: `cargo test -p victory-gpu` passes, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!1146
No description provided.