GPU: report frames with completed fence waits #3155
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3157"
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 Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T10:29:29Z.
A frame can complete a title fence event without releasing or blocking any command-list segments. The held-work logger drains the fence counters at each present, but its existing filter suppresses the entire row when the queue has no held work. Include completed fence waits in the filter.
I ran the same isolated Windows fixture on base
63bcca4and on this change. It registered one event on a synthetic fence, signaled the fence and confirmed the event was signaled. There were no held command lists. Three successive report calls produced these results.The included regression covers the frame filter for idle frames, fence-only frames, blocked work and released work. The full diagnostics suite on app-local WARP passed 247 tests with one ignored. Strict GPU Clippy passed with default and all features. Asset policy passed.
Run the regression with this command.
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T10:51:27Z.
Review: APPROVED
Verified on RTX 5090 against
origin/main(63bcca4):cargo test -p victory-gpu --lib queue:: -- --test-threads=1: 6/6 passed (includingreports_frames_with_completed_fence_waits_only).cargo test -p victory-gpu --lib fence:: -- --test-threads=1: 2/2 passed.cargo clippy -p victory-gpu --all-targets -- -D warnings&--features diagnostics: clean.cargo xtask policy: 191 files ok.Cleanly reports frames with completed fence waits in
queue.rs.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Jackster on 2026-11-26T23:02:07Z.
Windows 11,
63bcca4+ this PR, Radeon RX 7900 XTX:cargo test -p victory-gpu --lib: 232 passed / 0 failed / 1 ignored (unpatched63bcca4here: 231 passed).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.The added test
reports_frames_with_completed_fence_waits_onlyis in that count and passes, and the surrounding queue/fence tests are unchanged. Synthetic only. AI-assisted.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-27T00:35:54Z.
Review: APPROVED
Reviewed and tested
dfccab1eefad19022a9975bbde7ab4daded1facaon both RTX 5090 and WARP (VICTORY_D3D12_DEBUG=1).account_framealready consumes(fence_waits, fence_waited)viacrate::fence::take_waited()and logs both fields in the frame summary (queue.rs:302, 323-324), so addingfence_waits != 0toAccount::should_reportfixes the silent omission of frames whose only wait activity was completed fence waits.Checks run:
cargo xtask policy— passcargo clippy --tests -p victory-gpu -- -D warnings(default and--features diagnostics) — cleanqueue::tests— 6/6 pass on RTX 5090 and 6/6 pass on WARP (VICTORY_D3D12_DEBUG=1, 0 Debug Layer errors).LGTM!
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.