Diagnostics: a dumped target counts for the frame its list is submitted in #961
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/962"
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 SantannaCarlos on 2026-11-25T13:52:09Z.
Problem
With
VICTORY_DUMP_TARGETS, a frame listed for capture is meant to dump every texture it renders to or writes.note_targetdecided the frame when a draw was recorded: the frame after the last one presented. The title records a frame's lists while the frame before it is still on its way to the screen, so part of each frame's targets counted for the frame before, or for no listed frame. Two dumps of the same shot, from runs of the same tree, could hold 55 and 245 textures.Change
note_targettakes the list. It keeps the texture's host copy in a host step of the list (defer_host). That step runs when the list is submitted (Host::submit, from bothexecuteandexecute_late) and decides the frame then, again as the frame after the last one presented.VICTORY_ASYNC_SUBMIT=1the frame stays right: a present runs its queue's line before the frame count moves on.shortcut: with
VICTORY_ASYNC_PRESENT=1a present goes behind its queue's line and the frame count moves on first, so notes from that line may count for the frame after.Tested
capture::tests::a_list_counts_for_the_frame_it_is_submitted_in: a step is recorded, a frame is presented, then the list is submitted, and the step sees the frame after the one it was recorded in. The old rule took the frame at recording.cargo test -p victory-gpu --lib, run withVICTORY_D3D12_WARP=1: all pass butdepth_bounds_pipeline_loads_and_filters_draws, which fails the same way on0b0074e.cargo clippy --workspace --all-targets -- -D warnings, with and without--all-features: only what0b0074ealready fails on (draw.rssort_unstable_by_key,shadow.rsis_multiple_of,indirect.rsRig::depth_written, and without the featuresplaced_filler_twins); nothing in the changed lines.cargo xtask policy.VICTORY_CAPTURE_WORLD=1withVICTORY_CAPTURE_WORLD_ALSO=240,480,800, 9-minute runs, alternating):0b0074e0b0074e0b0074edumps hold, and the same 12 more. The 12 are small targets (256x256, 192x108, 384x384 and 256x64 in fixed formats) that were lost even from those dumps.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.