Repository navigation
Conversation
|
Thanks @cat4blep for the GPU refresh/readback changes. I tested head Result: 49 passed, 0 failed, 1 ignored. The suite includes the bounded texture-refresh burst and interrupted-streak cases, copyback merge behavior, guarded-view checks, and the affected GPU unit modules. The ignored per-submission benchmark was not run, so this verifies correctness tests but provides no performance measurement; no title workload was run. |
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 0b5838d on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (268 passed, 0 failed).
merge_copy_backwrites whenh != old && t != h, the same condition as the loop it replaces. The new exhaustive test over 5×5×5 values checks that, and the "already merged" test checks that no write is issued then.- The copy-back scratch buffer is now
PAGEbytes from the caller instead of a 64 KiBvec!percopy_backcall. Pieces split onPAGE, sotitle[..n]always fits. - Texture hash bypass: a bypassed refresh still detiles the whole texture, so correctness doesn't depend on the hash. Only the skipped work changes. Clearing the unwatched digest when the texture goes back to being watched is the right invalidation.
- Reusing the probe readback buffer is safe given the existing presentation lock and fence wait before
blackreads it.
Heads-up: this conflicts with #472 (texture.rs scratch buffer, shadow.rs growth) and #435/#440 (the copy-back loop in host.rs), which change the same lines. Whichever lands second needs a rebase. I have not merged it into our fork for that reason.
AI-assisted (Claude Code).
…hashes Per-frame copy-machinery churn is reduced: Shadow::copy_back reuses a caller scratch buffer instead of allocating and zeroing 64 KiB on every call, the diagnostics probe reuses its readback buffer, watch::writes deduplicates kernel pages that fold into one title page, and unwatched textures that change every frame skip their content hash for a short burst. Ported from Marvisak/VIctory Marvisak#401. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current). Four unrelated micro-optimisations (skipping hashes in bursts, a reused probe buffer, a reused copy-back buffer, a tweak to watch::writes), each against code main replaced today. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Changes
Runtime context
An earlier local Windows run on an RTX 3060 Ti processed 12.7 MB of movie-texture data per frame. With the hash bypass, about 5.1 MB was hashed and 7.6 MB was detiled without hashing. That run also carried independent pacing and rendering changes, so these figures describe the hash workload in that build. Verification of this branch uses the tests below.
Verification
cargo test --locked --workspace --profile diag --features victory/diagnosticscargo check --locked --workspace --profile diagcargo xtask policy --stagedgit diff --check