Describe skipped work accurately in the F2 advisor #2779

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

@⁠saakedev on GitHub · 2026-11-29 17:13 UTC · original
saakedev:fix/f2-skipped-work → main · +4 −3 · 1 files · 1 commits · open

What it changes

Addresses #2736. The F2 advisor used the same shader-conversion warning for every skipped draw, including work the backend left out intentionally. The advisor now reports skipped draws or dispatches per frame and points to the play log for details. The log already reports the intentional ray-tracing skips separately.

How it was tested

  • GPU and profile: Windows unit tests. The in-game overlay still needs a runtime check.
  • Before: The advisor regression assertion failed on the shader-conversion warning.
  • After: All nine host::panel::tests passed, including the updated advisor assertion.
  • The full victory-gpu library suite reported 914 passes, 57 ignored tests, and one failure in host::card_steps::tests::places_written_after_sending_are_learned both on upstream main and with this patch.
  • The repository asset-policy check flagged the unchanged crates/victory-loader/src/heap_sites/frame_users.rs.

Checked for overlap

  • I searched open pull requests for #2736, the advisor wording, and panel.rs.

Codex assisted with this change.

**@⁠saakedev** on GitHub · 2026-11-29 17:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779) `saakedev:fix/f2-skipped-work` → `main` · +4 −3 · 1 files · 1 commits · open ## What it changes Addresses #2736. The F2 advisor used the same shader-conversion warning for every skipped draw, including work the backend left out intentionally. The advisor now reports skipped draws or dispatches per frame and points to the play log for details. The log already reports the intentional ray-tracing skips separately. ## How it was tested - GPU and profile: Windows unit tests. The in-game overlay still needs a runtime check. - Before: The advisor regression assertion failed on the shader-conversion warning. - After: All nine `host::panel::tests` passed, including the updated advisor assertion. - The full `victory-gpu` library suite reported 914 passes, 57 ignored tests, and one failure in `host::card_steps::tests::places_written_after_sending_are_learned` both on upstream `main` and with this patch. - The repository asset-policy check flagged the unchanged `crates/victory-loader/src/heap_sites/frame_users.rs`. ## Checked for overlap - [x] I searched open pull requests for #2736, the advisor wording, and `panel.rs`. Codex assisted with this change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:16:56 +00:00
Author
Owner

@⁠ANDREANIADS on GitHub · 2026-11-29 17:44 UTC · original

The new wording handles intentional skips without guessing their cause. One separate counting issue at 427aa9d: F2 samples dropped_now(), which resets when the frame meter calls take_dropped(). Synthetic 10-frame example: start at 8, add 12 skips, let the meter take its count, then add 8 more. F2 reads 8 at both ends and omits the note, although 20 operations were skipped (2/frame). Without the reset, 8 → 28 correctly prints 2/frame. I checked the actual Counters::since and advice functions in isolation. Could slot 8 sample the existing cumulative draw::dropped_all() and use this crossing-window case as a regression test, here or in a follow-up?

**@⁠ANDREANIADS** on GitHub · 2026-11-29 17:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779#issuecomment-7259931024) The new wording handles intentional skips without guessing their cause. One separate counting issue at `427aa9d`: F2 samples `dropped_now()`, which resets when the frame meter calls `take_dropped()`. Synthetic 10-frame example: start at 8, add 12 skips, let the meter take its count, then add 8 more. F2 reads 8 at both ends and omits the note, although 20 operations were skipped (2/frame). Without the reset, 8 → 28 correctly prints 2/frame. I checked the actual `Counters::since` and `advice` functions in isolation. Could slot 8 sample the existing cumulative `draw::dropped_all()` and use this crossing-window case as a regression test, here or in a follow-up?
Author
Owner

@⁠saakedev on GitHub · 2026-11-29 17:47 UTC · original

Good catch. I’ve confirmed that the frame meter can reset the counter between F2 samples. I’m switching the panel to dropped_all() in a follow-up PR and adding your 10-frame example as a regression test. I’ll keep this PR focused on the wording.

**@⁠saakedev** on GitHub · 2026-11-29 17:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779#issuecomment-7259972338) Good catch. I’ve confirmed that the frame meter can reset the counter between F2 samples. I’m switching the panel to ` dropped_all() ` in a follow-up PR and adding your 10-frame example as a regression test. I’ll keep this PR focused on the wording.
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 23:54 UTC · original

Confirmed on current upstream 7d93ee07: cherry-picking your 427aa9d1 succeeds, and cargo test --locked -p victory-gpu --lib host::panel::tests passes all 10 tests on Windows, including the advisor line-width check. The recent #4592 report found the same mislabelled counter. I closed our duplicate #4610 in favour of this PR.

**@⁠tyr0nsur** on GitHub · 2026-11-30 23:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779#issuecomment-7295661298) Confirmed on current upstream `7d93ee07`: cherry-picking your `427aa9d1` succeeds, and `cargo test --locked -p victory-gpu --lib host::panel::tests` passes all 10 tests on Windows, including the advisor line-width check. The recent #4592 report found the same mislabelled counter. I closed our duplicate #4610 in favour of this PR.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/2779/head:github-bot/gh-2779'
git switch 'github-bot/gh-2779'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2779'
git switch 'github-bot/gh-2779'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2779'
git switch 'github-bot/gh-2779'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2779'
git switch 'main'
git merge --squash 'github-bot/gh-2779'
git switch 'main'
git merge --ff-only 'github-bot/gh-2779'
git switch 'main'
git merge 'github-bot/gh-2779'
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/trustno1-coder--VIctory-NVIDIA!2779
No description provided.