GPU: report frames with completed fence waits #3157

Open
github-bot wants to merge 1 commit from github-bot/gh-3157 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-26 10:29 UTC · original
andrewpozdnakov7-jpg:codex2/fence-only-report → main · +28 −1 · 1 files · 1 commits · open

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 63bcca4 and 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.

Frame Scenario Base Patched
1 Idle No row No row
2 One completed fence event No row One row with fence_waits=1 and fence_wait_ms=5.185
3 Idle No row No row

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.

cargo test -p victory-gpu --features diagnostics --locked reports_frames_with_completed_fence_waits_only
**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-26 10:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/3157) `andrewpozdnakov7-jpg:codex2/fence-only-report` → `main` · +28 −1 · 1 files · 1 commits · open 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 63bcca4 and 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. | Frame | Scenario | Base | Patched | | --- | --- | --- | --- | | 1 | Idle | No row | No row | | 2 | One completed fence event | No row | One row with fence_waits=1 and fence_wait_ms=5.185 | | 3 | Idle | No row | No row | 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. cargo test -p victory-gpu --features diagnostics --locked reports_frames_with_completed_fence_waits_only
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:08:58 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 10:51 UTC · original · approved these changes

Verified on RTX 5090 against origin/main (63bcca4):

  • cargo test -p victory-gpu --lib queue:: -- --test-threads=1: 6/6 passed (including reports_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).

**@⁠Dukestar69** on GitHub · 2026-11-26 10:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/3157#pullrequestreview-6072815116) · **approved these changes** Verified on RTX 5090 against `origin/main` (`63bcca4`): - `cargo test -p victory-gpu --lib queue:: -- --test-threads=1`: 6/6 passed (including `reports_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).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3157/head:github-bot/gh-3157'
git switch 'github-bot/gh-3157'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3157'
git switch 'github-bot/gh-3157'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3157'
git switch 'github-bot/gh-3157'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3157'
git switch 'main'
git merge --squash 'github-bot/gh-3157'
git switch 'main'
git merge --ff-only 'github-bot/gh-3157'
git switch 'main'
git merge 'github-bot/gh-3157'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3157
No description provided.