GPU: reduce work in texture refresh and readback #401
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/401"
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 cat4blep on 2026-11-24T02:56:22Z.
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 --checkImported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:19:08Z.
Review: APPROVED
Tested
0b5838don Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (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.PAGEbytes from the caller instead of a 64 KiBvec!percopy_backcall. Pieces split onPAGE, sotitle[..n]always fits.blackreads it.Heads-up: this conflicts with #472 (
texture.rsscratch buffer,shadow.rsgrowth) and #435/#440 (the copy-back loop inhost.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).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:30:34Z.
Thanks @cat4blep for the GPU refresh/readback changes. I tested head
0b5838d4d2711021beca723254075f67a248d4c2with: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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:02:30Z.
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.
Pull request closed