GPU diagnostics: create missing capture output directories #1146
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1146
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1146/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCSetting
VICTORY_CAPTUREto 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: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.cargo xtask policyandgit diff --checkpassed.Game files, captures and retail logs remain outside the repository and are not attached. Commands and runtime checks executed on the machine above.
@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-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).