F6 captures a frame; the recorder is in the release build; replay handles predication and bounded waits #4985
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4985
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4984"
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?
@TheDarkDnKTv on GitHub · 2026-12-01 16:25 UTC · original
TheDarkDnKTv:pr/frame-capture-key→main· +464 −75 · 19 files · 5 commits · openWhat it changes
A player who sees a fault can capture the frame and send it without building the diagnostics profile, and the capture can be run again offline with
victory replay. Four parts, one commit each (plus a docs commit):VICTORY_RECORD=<folder>set, F6 (title window in front) starts the frame recorder, as the file<folder>\goalready did.VICTORY_RECORD_FRAMES=<n>captures the nextnframes. One capture per process. The key is polled at every present like F1 and F3, so the title still receives it. WithoutVICTORY_RECORDnothing is hooked and the key is not read.record, on by default in thevictoryapp;cargo build --release --locked -p victory --no-default-featuresleaves it out).victory replaystays diagnostics-only. Release exe 16.65 MB with it, 16.01 MB without.SetPredicationwas counted and dropped, so a replay ran predicated work unconditionally. It is now recorded (new command tag 36; older captures still read) and replayed; a predicate the replay cannot bind skips the guarded work and is counted.ExecuteIndirectcalls whose arguments hold GPU addresses, calls with a missing object, and draws without their pipeline are left out and counted instead of failing. A barrier that names a committed resource on one side is replaced by one that names nothing (the list otherwise failed at Close). The replay's fence waits give up after 30 seconds and say which value was waited for (they wereINFINITE); the--awakedrain wait is bounded to 1 second. The recorder on the live device keeps its waits.Recorder::newcallsvictory_core::ensure_outside_repobefore it creates anything; a refused folder logsframe recorder not started: ...and the title runs on.victory-gpunow depends onvictory-core(oneCargo.lockline).Docs:
docs/replay.md(key, variables, one capture per process, size: 12 to 14 GB for the captures made so far).Cost when not armed (read from the code, not measured): without
VICTORY_RECORDone env lookup when the device is made, oneOnceLockload at each present andname_it, no lock, no allocation. With it set, every device method is wrapped; only the capture frame stops the title.How it was tested
cargo testpassed for the crates it touches: yes, except two tests that also fail onmain(commitd5cc3461, Windows, rustc 1.98.0):cargo build --release --locked -p victory,cargo build --locked --profile diag -p victory --features diagnosticsandcargo check --locked -p victory --no-default-features: ok, no warningscargo test -p victory-gpu -- --test-threads=1: 1095 passed, 0 failed, 66 ignoredcargo test -p victory-gpu --features record --lib: 1114 passed, 0 failed, 66 ignored (the three new tests pass: held key is one press, folder inside the repository refused and not created, folder outside accepted)cargo test -p victory-gpu --features diagnostics --locked --test replay: 1 passed (records a frame and replays it, including a predicate change; returns early without an adapter)cargo test -p victory-gpu --features diagnostics --lib: 1170 passed, 2 failed, 69 ignored.compose::tests::bgrx_plane_selects_a_typed_viewfails the same way onmain;host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_endpasses alone and fails only in the parallel run (another timing test fails there onmain).cargo test --workspace --locked --no-fail-fast: 2506 passed, 1 failed, 96 ignored. The failure isvictory-hlemodules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it: it fails in everyvictory-hle --librun and passes alone, also onmain; this branch changes novictory-hlecode.cargo clippy --workspace --all-targets --locked -- -D warnings(and--all-features) does not pass: 5 findings inhost/font.rs,host/menu.rsandhost/panel.rs, none in code this branch adds, the same onmain. With those three lints allowed on the command line both runs are clean.cargo xtask policy: okNot tested: F6, a capture and the replay of a real capture in the title on this branch; the cost of an armed recorder; the
--no-default-featuresbuild beyondcargo check.Checked for overlap
VICTORY_CAPTURE(PNG and target dumps), a different tool fromVICTORY_RECORD.Player::barrier, so whichever lands second needs a rebase, and this hunk can be dropped in favour of #2143's.ClearUavUintas wire tag 36, the same tag asPredicationhere: one line to renumber in whichever lands second.Worker::waitinreplay/gpu.rs.🤖 Generated with Claude Code
record) 6b5d3c80e6View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.