GPU: keep rechecking heap textures known to change in place #396
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!396
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-396"
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?
@iliyabeacon on GitHub · 2026-11-26 23:42 UTC · original
iliyabeacon:fix/recheck-changing-heap-textures→a-publier· +112 −48 · 2 files · 1 commits · openRelates to #337.
A heap texture whose contents already changed without a descriptor notification now keeps its final 400-frame recheck interval. Textures with no observed in-place change still leave the queue after the fifth unchanged check. Rewriting the descriptor resets the tracking and discards recheck results for the previous write.
This covers the late-change case for textures that were observed changing during their original recheck window. The existing sampled fingerprint still limits which changes can be detected.
Validation
Tested on Windows with Rust 1.98.1 (x86_64-pc-windows-gnu).
cargo test --offline --locked -p victory-gpu --lib -- --test-threads=1passed (398 passed, 34 ignored).cargo test --offline --locked -p victory-gpu --features diagnostics --lib recheck -- --test-threads=1passed (2 passed).An in-game visual comparison and performance measurement remain to be done.
@MamaLeVrai on GitHub · 2026-11-27 01:23 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
bab2d75:cargo test --release -p victory-gpu --lib398 passed, 0 failed, 34 ignored.AI-assisted (Claude Code); no game data.
@adrianmjim on GitHub · 2026-11-27 12:32 UTC · original
Tested on an RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 build 26300, Rust 1.98.1. Head
bab2d75vs base4eb6cfd(a-publier), in release and in the diag profile with--features diagnostics.victory-gpu --lib, release: head 398 passed, 0 failed, 34 ignored. Base: 396 passed. Same at default threads and with--test-threads=1. The only per-test difference is the 2 new tests.--test-threads=1: head 446 passed, base 444 passed. Both fail the same test,timeline::report::tests::real_waits_are_recorded_with_who_ended_them(report.rs:950). It fails on base too, so it does not come from this PR.TextureQueue::checkedignoreswriteand the draw pass never setschanged_in_place. Both new tests still pass, and so does the full release lib suite (398 passed, 0 failed). The host test's finalNonecheck still holds, becauserecheckalready drops the stale write andwritten()resets the slot. So no test covers the write filter inchecked, or the pass settingchanged_in_place.cargo clippy --workspace --all-targets -- -D warningsis clean, with default features and with--all-features.cargo fmt --checkalready fails on base (142 files), and head has the same file count. The new one-linetexture_slot_rechecksignature in descriptor/host.rs and theTextureRecheckdestructuring in draw.rs go over the 100-column limit.Not tested: in game.
@gut0to on GitHub · 2026-11-27 14:34 UTC · original · reviewed
AI-assisted static review (ChatGPT); I did not run tests.
@ -2481,0 +2506,4 @@fingerprint: crate::texture::fingerprint(address, bytes),unchanged_looks: 0,uploaded: frame,changed_in_place,@gut0to on GitHub · 2026-11-27 14:34 UTC · original
The new tests cover the scheduling helper and descriptor-write identity separately, but not the
Statepath that sets and carrieschanged_in_placethrough a fingerprint mismatch and its next recheck. If this flag is lost when the slot is rescheduled, periodic checks stop after the initial windows while the current tests still pass. Could you add a focused regression for mismatch → reschedule → unchanged follow-up, and verify the flag is cleared only when the descriptor is rewritten?View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.