Diagnostics: VICTORY_FRAME_HEALTH=1 writes a per-frame CSV of draws/dispatches not run, unready textures and VRAM (off by default) #1415
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1415"
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?
Imported from fxceless/victory-fork. Originally posted by TG0000 on 2026-11-27T00:04:41Z.
What
VICTORY_FRAME_HEALTH=1(or=<path.csv>) writes one CSV row per presented frame:It also prints a summary line on stderr every 5 s. The point is to see whether a frame drew everything the title asked for: draws or dispatches skipped because their pipeline is still compiling or was refused, textures not on the card yet, and VRAM pressure. A plain FPS number does not show any of that.
Off by default. When it is off, the only cost is one cached flag test on the paths that already drop work. When it is on, each draw or dispatch that does not run adds one relaxed atomic add, and each present adds one video-memory query and one buffered row.
Files
health.rs(new, 283 lines)draw.rsandpipeline.rsmake::being_madeinpipeline/make.rshost.rsThis PR does not change rendering.
Tested
cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warningspasses, with and withoutdiagnostics. It ran on a Mac M3 Pro, cross-checked for the Windows target.mainhas not been run in game yet. Two changes were needed to apply it tomain:is_skipped, which exists only withdiagnostics.main. Those lines were left out.Related
VICTORY_FRAME_WHY2) and #1364 (present intervals) are also diagnostics, but they measure time: where a frame's time went. This PR counts the work that was not done. They can be used together.repository_passes_policywill fail for the same reason it fails onmain:host.rsandlower.rsare over 512 KiB. Depends on: #1357AI-assisted (Claude). GPL-3.0, like the rest of the repository.
🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-27T00:15:59Z.
I ported this to the AMD branch in #37. The Windows MSVC CSV test passed under Wine, and the diagnostics-feature check passed. During the port I kept the AMD present-status gate and treated a successful completion racing the missed-bind count as a compile miss. Before this, the compute-wait-off run had no comparable drop notice. The fixed-driver rerun will collect the same counters for both settings.
Imported from fxceless/victory-fork. Originally posted by TG0000 on 2026-11-28T01:14:46Z.
Closing: this targets the earlier line and no longer merges. Its counting of draws that did not run continues in a different form as
VICTORY_PROBE(Marvisak/VIctory#3638); the per-frame CSV and the texture and VRAM columns are not carried over. Thanks @UwUCammie for porting it. (AI-assisted comment.)Pull request closed