Fix dropped-draw sampling in the overlay #4880

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

@⁠Yoruiopz on GitHub · 2026-12-01 12:36 UTC · original
Yoruiopz:fix/hud-draw-drop-sampling → main · +3 −7 · 2 files · 1 commits · open

What it changes

F3 and F2 calculate drops per frame by subtracting successive samples. The old accessor subtracted the frame meter's moving checkpoint before each sample, so a meter update between samples could hide drops from the overlay. Use the cumulative counter for the overlay and keep the frame meter's existing sampling.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing) — Windows D3D12 host fixture. No gameplay profile.
  • Before — The fixture recorded three drops, advanced the frame meter checkpoint, then recorded five more. Over two frames, the overlay sampler reported 2.5 drops per frame instead of the expected 4.0.
  • After — The same fixture reported 4.0 drops per frame with the source in 66c9e400f. The fixture was temporary. The exact focused command below failed before the fix and passed afterward.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes) — Not applicable.
  • cargo test passed for the crates it touches — Focused Windows unit test passed. Full crate suite and gameplay overlay validation pending.
cargo test --offline --locked -p victory-gpu --lib -j 2 host::panel::drop_checkpoint_local::dropped_samples_cross_frame_meter_checkpoint -- --exact --test-threads=1 --nocapture

GitHub's first Clippy step reports the same five diagnostics on the base commit 5fabb46e. The panel diagnostics are outside the changed lines. PRs #4680 and #4708 address that baseline failure. Base CI run

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2779, #3745, #3842. #2779 adjusts Advisor wording, #3745 adds drop-reason logging, and #3842 excludes intentionally skipped work in the Advisor. The accessor in #3842 still uses a moving checkpoint, so the sampling regression is independent.
**@⁠Yoruiopz** on GitHub · 2026-12-01 12:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4879) `Yoruiopz:fix/hud-draw-drop-sampling` → `main` · +3 −7 · 2 files · 1 commits · open ## What it changes F3 and F2 calculate drops per frame by subtracting successive samples. The old accessor subtracted the frame meter's moving checkpoint before each sample, so a meter update between samples could hide drops from the overlay. Use the cumulative counter for the overlay and keep the frame meter's existing sampling. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing) — Windows D3D12 host fixture. No gameplay profile. - Before — The fixture recorded three drops, advanced the frame meter checkpoint, then recorded five more. Over two frames, the overlay sampler reported 2.5 drops per frame instead of the expected 4.0. - After — The same fixture reported 4.0 drops per frame with the source in `66c9e400f`. The fixture was temporary. The exact focused command below failed before the fix and passed afterward. - For shader changes, the wave sizes tested (32 and/or 64 lanes) — Not applicable. - `cargo test` passed for the crates it touches — Focused Windows unit test passed. Full crate suite and gameplay overlay validation pending. ```text cargo test --offline --locked -p victory-gpu --lib -j 2 host::panel::drop_checkpoint_local::dropped_samples_cross_frame_meter_checkpoint -- --exact --test-threads=1 --nocapture ``` GitHub's first Clippy step reports the same five diagnostics on the base commit `5fabb46e`. The panel diagnostics are outside the changed lines. PRs #4680 and #4708 address that baseline failure. [Base CI run](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780) ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2779, #3745, #3842. #2779 adjusts Advisor wording, #3745 adds drop-reason logging, and #3842 excludes intentionally skipped work in the Advisor. The accessor in #3842 still uses a moving checkpoint, so the sampling regression is independent.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 12:37:37 +00:00
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/4880/head:github-bot/gh-4879'
git switch 'github-bot/gh-4879'

Merge

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