Fix stale frames for guarded textures #32
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/32"
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 Zettrox/ztrx. Originally posted by S1M40 on 2026-11-25T04:07:10Z.
Summary
Textures in guarded view memory were hashed only once every eight frames when the guard saw no writes. Updates made through another view could therefore leave video frames stale. After a hash detects a change, this keeps checking the texture every frame for 16 frames, then returns it to the existing staggered schedule.
Related to the repeated/stale video frames in #24 and #5. This change does not claim to fix the prologue-video crash reported in #24.
Validation
cargo test -p victory-gpu --locked(112 passed, 1 ignored)cargo test -p victory-gpu --all-features --locked(119 passed, 1 ignored)cargo build --release -p victory --lockedRX 7700XT
tested in-game.
Imported from Zettrox/ztrx. Originally posted by S1M40 on 2026-11-25T04:31:52Z.
Loading screen is now perfectly locked 30fps with no errors reported.
Imported from Zettrox/ztrx. Originally posted by pluvialmoon on 2026-11-25T05:08:01Z.
same problem with issue5 and this PR works
Imported from Zettrox/ztrx. Originally posted by PikPakPik on 2026-11-25T07:33:41Z.
Review: APPROVED
Tested on an AMD RX 9060 XT (RDNA4, 16 GB, driver 32.0.32029.2010), Windows 11: it works.
Imported from Zettrox/ztrx. Originally posted by futurepro62 on 2026-11-25T15:14:50Z.
Full-suite run on Windows, since this PR has no test report yet. Tested exact head
798ecbb(on its base90b529f).Tested
rust-toolchain.toml), DXC + dxil.dll 1.9.2602.17, debug.cargo test --workspace --locked: 499 passed, 0 failed, 7 ignored (main90b529fon this machine: 492 passed, 0 failed, 7 ignored).cargo clippy --workspace --all-targets --locked -- -D warnings(the CI lint step): passed.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(the CI lint step): passed.still_textures_take_turns_unless_the_guard_saw_a_write,recently_changed_textures_are_hashed_each_frame,a_texture_is_hashed_once_per_frame_unless_the_guard_saw_a_write.Not tested
AI use
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.