Describe skipped work accurately in the F2 advisor #2779

Open
saakedev wants to merge 1 commit from upstream-pr/2779 into main
saakedev commented 2026-11-29 17:13:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by saakedev on 2026-11-29T17:13:26Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5553106394 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779). Originally posted by [saakedev](https://github.com/saakedev) on 2026-11-29T17:13:26Z. --- ## 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.
ANDREANIADS commented 2026-11-29 17:44:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-29T17:44:43Z.


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?

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7259931024 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779#issuecomment-7259931024). Originally posted by [ANDREANIADS](https://github.com/ANDREANIADS) on 2026-11-29T17:44:43Z. --- 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?
saakedev commented 2026-11-29 17:47:53 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by saakedev on 2026-11-29T17:47:53Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7259972338 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779#issuecomment-7259972338). Originally posted by [saakedev](https://github.com/saakedev) on 2026-11-29T17:47:53Z. --- 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.
tyr0nsur commented 2026-11-30 23:54:15 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T23:54:15Z.


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 #4591 report found the same mislabelled counter. I closed our duplicate #4609 in favour of this PR.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7295661298 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2779#issuecomment-7295661298). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-11-30T23:54:15Z. --- 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 #4591 report found the same mislabelled counter. I closed our duplicate #4609 in favour of this PR.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2779:upstream-pr/2779'
git switch 'upstream-pr/2779'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2779'
git switch 'upstream-pr/2779'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2779'
git switch 'upstream-pr/2779'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2779'
git switch 'main'
git merge --squash 'upstream-pr/2779'
git switch 'main'
git merge --ff-only 'upstream-pr/2779'
git switch 'main'
git merge 'upstream-pr/2779'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!2779
No description provided.