Fix stale frames in the opening video #489

Open
github-bot wants to merge 1 commit from github-bot/gh-489 into main AGit
Owner

@⁠ballade0d on GitHub · 2026-11-25 01:28 UTC · original
ballade0d:fix/intro-video-texture-refresh → main · +17 −4 · 1 files · 1 commits · open

Summary

The opening video can replay three stale frames in rotation. The decoder's sampled planes are single-layer, single-mip linear R8_UNORM textures. Writes through a different view of the same pages could escape the guards on the sampled view. The existing periodic hash then leaves those planes stale between checks.

For textures with that layout, use the existing content hash whenever the normal write-watch path is unavailable. The hash still gates detiling and upload.

Verification

  • With default settings on c96b4f2, frames 300–305 repeated A, B, C, A, B, C. Frames 300–317 and 364–369 contained 8 distinct frame hashes among 24 captures.
  • Applying this patch to the same revision produced 24 distinct hashes at the same capture points with default settings. Disabling VICTORY_TEXTURE_GUARD also cleared the loop on the original checkout.
  • The original patched checkout passed the two existing texture:: unit tests and a release startup smoke test.

The format and layout rule can also match non-video textures. Gameplay texture refresh cost and an automated alias-write regression still need validation.

**@⁠ballade0d** on GitHub · 2026-11-25 01:28 UTC · [original](https://github.com/fxceless/victory-fork/pull/489) `ballade0d:fix/intro-video-texture-refresh` → `main` · +17 −4 · 1 files · 1 commits · open ## Summary The opening video can replay three stale frames in rotation. The decoder's sampled planes are single-layer, single-mip linear `R8_UNORM` textures. Writes through a different view of the same pages could escape the guards on the sampled view. The existing periodic hash then leaves those planes stale between checks. For textures with that layout, use the existing content hash whenever the normal write-watch path is unavailable. The hash still gates detiling and upload. ## Verification - With default settings on `c96b4f2`, frames 300–305 repeated A, B, C, A, B, C. Frames 300–317 and 364–369 contained 8 distinct frame hashes among 24 captures. - Applying this patch to the same revision produced 24 distinct hashes at the same capture points with default settings. Disabling `VICTORY_TEXTURE_GUARD` also cleared the loop on the original checkout. - The original patched checkout passed the two existing `texture::` unit tests and a release startup smoke test. The format and layout rule can also match non-video textures. Gameplay texture refresh cost and an automated alias-write regression still need validation.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:44:32 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/489/head:github-bot/gh-489'
git switch 'github-bot/gh-489'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-489'
git switch 'github-bot/gh-489'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-489'
git switch 'github-bot/gh-489'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-489'
git switch 'main'
git merge --squash 'github-bot/gh-489'
git switch 'main'
git merge --ff-only 'github-bot/gh-489'
git switch 'main'
git merge 'github-bot/gh-489'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.