Repository navigation
Conversation
…nder health One CSV row per presented frame: draws and dispatches run, those not run because their host pipeline is still being made or will never be, dispatches left out because the ray-tracing structure builder is off, textures picked by index that were not on the card or held back for room, and the card's memory use and budget; a summary on stderr every 5 s. Off, it costs one cached flag test on the paths that drop work. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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. |
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 Diagnostics: record exact CPU present-call intervals #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: Move host.rs's and lower.rs's test modules to their own files, under the asset policy's 512 KiB limit #1357AI-assisted (Claude). GPL-3.0, like the rest of the repository.
🤖 Generated with Claude Code