GPU: keep dropped draws in the full frame reporting interval #1709

Open
zhaibingye wants to merge 1 commit from upstream-pr/1710 into main
zhaibingye commented 2026-11-24 21:03:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by zhaibingye on 2026-11-24T21:03:50Z.


Related to #293 and #1697. The one-second caption update drains the counters before the five-second frame report can log them. An early burst can disappear from the shader drop ranking. Use separate caption and report windows and drain counters only when logging.

Reproduced with the real meter in a Windows test binary under Wine 10. Across 20 presentations, inject 30 early drops of one kind and 2 late drops of another. Main omitted the early reason and reported 0.3 late drops/frame. The fix reports 1.5 and 0.1 drops/frame. For 32 MB of copies, the reported volume also changed from 0.3 to the expected 1.6 MB/frame.

Added an irregular-frame regression test. Windows GNU diagnostics suite under Wine: 54 passed, 1 ignored. Default and all-feature Clippy and asset policy passed. No game run.

AI assistance: OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6591370008 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1710). Originally posted by [zhaibingye](https://github.com/zhaibingye) on 2026-11-24T21:03:50Z. --- Related to #293 and #1697. The one-second caption update drains the counters before the five-second frame report can log them. An early burst can disappear from the shader drop ranking. Use separate caption and report windows and drain counters only when logging. Reproduced with the real meter in a Windows test binary under Wine 10. Across 20 presentations, inject 30 early drops of one kind and 2 late drops of another. Main omitted the early reason and reported 0.3 late drops/frame. The fix reports 1.5 and 0.1 drops/frame. For 32 MB of copies, the reported volume also changed from 0.3 to the expected 1.6 MB/frame. Added an irregular-frame regression test. Windows GNU diagnostics suite under Wine: 54 passed, 1 ignored. Default and all-feature Clippy and asset policy passed. No game run. AI assistance: OpenAI Codex.
catminou4 commented 2026-11-24 23:05:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T22:19:57Z.

Review: COMMENTED


Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.

Dropped draws kept in the full frame reporting: frame() tracks activity across caption updates, frame_report_keeps_activity_from_earlier_caption_updates test. 7.8K, host.rs only.

<!-- greyfinch-sync:Marvisak/VIctory:review:6048312265 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1710#pullrequestreview-6048312265). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T22:19:57Z. **Review:** COMMENTED --- Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff. Dropped draws kept in the full frame reporting: frame() tracks activity across caption updates, frame_report_keeps_activity_from_earlier_caption_updates test. 7.8K, host.rs only.
Marvisak commented 2026-11-25 02:06:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:34:50Z.


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: crates/victory-gpu/src/host.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149710990 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1710#issuecomment-7149710990). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:34:50Z. --- <!-- victory-triage v1 head=747093145fa4417aa529d63a9bcec3632038f6da verdict=needs-rebase at=2026-11-25T01:34:49Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `crates/victory-gpu/src/host.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
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/1710:upstream-pr/1710'
git switch 'upstream-pr/1710'

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/1710'
git switch 'upstream-pr/1710'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1710'
git switch 'upstream-pr/1710'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1710'
git switch 'main'
git merge --squash 'upstream-pr/1710'
git switch 'main'
git merge --ff-only 'upstream-pr/1710'
git switch 'main'
git merge 'upstream-pr/1710'
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
Marvisak/VIctory!1709
No description provided.