Repository navigation
perf(gpu): count what a list asks for already current - #308
Merged
pragyaangaur merged 1 commit intoNov 26, 2026
Merged
Conversation
The copystat line has always printed "{skips} skipped {MB} MB", from
counters nothing ever counted. The asks that return early in
`Batch::add` — what a later list asks for a copy the submission
already brought up to date — are that number, and the interesting one
in-game: what staying current saved the later lists, and so what
pragyaangaur#259's moves now keep.
Co-Authored-By: GLM 5.3 <noreply@z.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The copystat line has always printed its skipped counters, from numbers nothing ever counted:
C::SkippedandC::SkippedBytesare defined incopystat.rsand printed in the "copies per frame" line, with no increment site anywhere in the tree.This wires them where they belong: the asks that return early in
Batch::add— a later list asking for a copy the submission already brought up to date. That is the interesting number in-game now:Step::Movekeeps across what aStep::Runused to make due again — the skipped line is the direct in-game read-out of the bytes its preservation saved.The counters stay diagnostics-gated as the line they feed; nothing on the release path changes.
Verification
host::batch::a_still_current_ask_is_counted_skipped(diagnostics lane, Windows-side as the wholehostmodule is): a real copy of plain memory, a flush that makes it current, the ask again — counted with its bytes; runs under Wine:WINE=/opt/homebrew/bin/wine tools/macos/test-wine.sh -p victory-gpu --features diagnostics a_still_current_ask→ 1 passed.cargo build -p victory-gpu --target x86_64-pc-windows-gnullvmgreen; clippy on both feature lanes, the CI-faithful target, exit 0.perfops/bench.sh: one REG?-flagged run proved machine-state noise (guard 25.2→9.9 µs, tex bc1 254.6→112.9 ns on the immediate re-run; the change is a cfg-gated counter add that the release benches never execute).