fix(gpu): average copy statistics over the full reporting interval #87
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/87"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T00:21:43Z.
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
35b054e.cargo check --locked -p victory-gpupassed with and without--features diagnosticson Windows.Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T01:14:08Z.
Tested
b304b7dwith 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 Microsoftd3dcompiler_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).--features diagnostics; the diff adds no test, so this only shows nothing else broke.No game data used.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:04:09Z.
Review: APPROVED
Tested
b304b7don Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (227 passed, 0 failed; the branch is based on an old main).cargo check -p victory-gpu --features diagnosticsis clean.copystat::logdrains counters gathered over about 5 s, so it must divide by the presentations in that same window, not by the last 1 s frame-rate sample.copy_stats_framescounts everyframe()call and is reset bymem::takeexactly when the counters are drained.The branch is far behind main, and
host.rshas changed a lot since, so it may need a rebase before it merges.AI-assisted (Claude Code).