Repository navigation
Conversation
|
Tested
AI-assisted (Claude Code, Claude Opus 5.5); no game data. |
This was referenced Nov 24, 2026
This was referenced Nov 24, 2026
VICTORY_CAPTURE_DRAWS=<draws>[,<frames>]: the first frame that records at least that many draws picks the frames after it (3 by default), as if they were listed in VICTORY_CAPTURE_FRAMES, so their images and render targets are saved. Where a scene such as the opening cutscene starts moves by hundreds of frames between runs (loading time, a warm shader cache), so a frame number taken from one run misses it in the next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
itsRevela
force-pushed
the
diag/capture-on-draws
branch
from
November 24, 2026 12:22
be6df3a to
bdbaac6
Compare
This was referenced Nov 24, 2026
Owner
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
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
A new diagnostics variable,
VICTORY_CAPTURE_DRAWS=<draws>[,<frames>]. The first frame that records at leastdrawsdraws picks theframesframes after it (3 by default), exactly as if they were listed inVICTORY_CAPTURE_FRAMES. So withVICTORY_CAPTURE, their images are saved; withVICTORY_DUMP_TARGETS, their render targets too; and their draws are traced at debug level. The trigger fires once.list.rs: a per-frame draw counter next to the existing one, which is only read at power-of-two frames.queue.rs: at each present, the frame's count goes tocapture::frame_recorded.capture.rs:Trigger(parse and pick), plus the check inlisted.README.md: a row in the debugging table.All of it is behind
diagnostics.Why
The frame number where a scene starts is not stable between runs. With the opening cutscene (#255, #325), the first heavy frame moved from about 2,850 to about 3,330 to about 3,960 across runs of the same build. Loading time and a cold or warm shader cache shift it by hundreds of frames.
So a
VICTORY_CAPTURE_FRAMESlist taken from one run misses the scene in the next. That's worse with the cutscene's GPU hang, which leaves only a few heavy frames to catch. A draw-count threshold finds the scene wherever it starts.Tested
Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 3070 Ti (driver 32.0.16.1088) through Windows Sandbox's vGPU, Rust 1.98.1, on
d2a4bae.capture::tests::the_draw_trigger_reads_a_count_and_an_optional_lengthcovers parsing, including the rejected forms (0,1000,0, extra fields, text).capture::tests::the_draw_trigger_picks_the_frames_after_the_one_that_firedchecks that nothing is picked before the trigger fires, and that exactly the nextframesframes are picked after it.cargo test -p victory-gpu --features diagnostics --lib capturepasses (3 tests), andcargo test -p victory-gpu --libpasses (43 passed, 1 ignored).cargo clippy -p victory-gpu --tests, with and withoutdiagnostics: nothing in the changed files. The twounsafe block missing a safety commentwarnings (host.rs) are already onmain.cargo fmt -p victory-gpu --checkreports the same 79 diffs asmain(CI: check the formatting with cargo fmt on all PRs #17), and none in the new code.cargo xtask policyis ok.VICTORY_CAPTURE_DRAWS=1000,3:capture trigger: saving the frames after this one frame=3960 draws=16446 frames=3.AI-assisted (Claude Code). The title runs used my own copy; no game data is in this PR.
🤖 Generated with Claude Code