fix(gpu): average copy statistics over the full reporting interval #87

Manually merged
github merged 1 commit from gh-pr/87/head into gh-pr/87/base 2026-11-26 03:49:46 +00:00
Owner

@⁠jeremygold02 on GitHub · 2026-11-24 00:21 UTC · original
jeremygold02:codex/copy-stat-frame-window → main · +9 −1 · 1 files · 1 commits · merged 2026-11-24 07:48 UTC

The frame-rate meter updates about once a second. The detailed copy counters accumulate until they are logged about every five seconds. Dividing those counters by the last frame-rate sample inflated the reported submissions, copied bytes and time spent checking for writes per frame.

Count presentations across the full copy-statistics interval and reset that count when the logger drains the counters. The change is confined to diagnostics builds.

Verification

  • Exercised the real meter and copy-counter drain with 50 copies across successive windows of two and three presentations. The baseline reported 16.67 copies per frame (50 / 3). The change reported 10 (50 / 5), including on 35b054e.
  • A saved trace showed five presentations between two reports and one in the final frame-rate sample. The old log reported 178 submissions per frame for that interval. The full-interval average is 35.6.
  • cargo check --locked -p victory-gpu passed with and without --features diagnostics on Windows.
**@⁠jeremygold02** on GitHub · 2026-11-24 00:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/87) `jeremygold02:codex/copy-stat-frame-window` → `main` · +9 −1 · 1 files · 1 commits · merged 2026-11-24 07:48 UTC The frame-rate meter updates about once a second. The detailed copy counters accumulate until they are logged about every five seconds. Dividing those counters by the last frame-rate sample inflated the reported submissions, copied bytes and time spent checking for writes per frame. Count presentations across the full copy-statistics interval and reset that count when the logger drains the counters. The change is confined to diagnostics builds. **Verification** - Exercised the real meter and copy-counter drain with 50 copies across successive windows of two and three presentations. The baseline reported 16.67 copies per frame (50 / 3). The change reported 10 (50 / 5), including on `35b054e`. - A saved trace showed five presentations between two reports and one in the final frame-rate sample. The old log reported 178 submissions per frame for that interval. The full-interval average is 35.6. - `cargo check --locked -p victory-gpu` passed with and without `--features diagnostics` on Windows.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:49:45 +00:00
github manually merged commit b304b7ddbf into gh-pr/87/base 2026-11-26 03:49:46 +00:00
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 01:14 UTC · original

Tested b304b7d with the diagnostics feature on the Windows build under Wine 11.22 + vkd3d-proton 3.1 (Arch Linux x86_64, AMD RX 9060 XT, RADV 26.3.1), with a native Microsoft d3dcompiler_47: pass, no regression.

  • victory_gpu (diagnostics): 38 passed, 2 failed — the two environment-only failures (a_rejected_blob_gives_an_empty_library, and #128's upload skip).
  • Built with --features diagnostics; the diff adds no test, so this only shows nothing else broke.

No game data used.

**@⁠DaviTostes** on GitHub · 2026-11-24 01:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/87#issuecomment-7118896411) Tested `b304b7d` with the **diagnostics** feature on the Windows build under **Wine 11.22 + vkd3d-proton 3.1** (Arch Linux x86_64, AMD RX 9060 XT, RADV 26.3.1), with a native Microsoft `d3dcompiler_47`: **pass, no regression**. - `victory_gpu` (diagnostics): **38 passed, 2 failed** — the two environment-only failures (`a_rejected_blob_gives_an_empty_library`, and #128's upload skip). - Built with `--features diagnostics`; the diff adds no test, so this only shows nothing else broke. No game data used.
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!87
No description provided.