Diagnostics: VICTORY_FRAME_HEALTH=1 writes a per-frame CSV of draws/dispatches not run, unready textures and VRAM (off by default) #1415
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1415
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@TG0000 on GitHub · 2026-11-27 00:04 UTC · original
TG0000:pr/frame-health→main· +335 −0 · 6 files · 1 commits · openWhat
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
@UwUCammie on GitHub · 2026-11-27 00:15 UTC · original
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.