Textures: hash guarded textures at every check while they are new or changing behind the guard #58

Closed
SlopComp wants to merge 1 commit from upstream-pr/58 into main
SlopComp commented 2026-11-24 21:00:28 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by SlopComp on 2026-11-24T21:00:28Z.


The opening star screen, the logo video and the loading animation flickered: the title writes these textures in a way the texture guard doesn't catch, so changes were only picked up by the every-8th-frame hash and older pictures kept showing.

A guarded texture is now hashed at every check for its first 64 frames, and for another 64 each time the hash finds a change the guard missed. Textures that don't change go back to the 8-frame hash. VICTORY_TEXTURE_HOT=0 turns it off.

Tested on an RTX 5080: the flicker is gone apart from a blink on the first frame.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6591309877 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/58). Originally posted by [SlopComp](https://github.com/SlopComp) on 2026-11-24T21:00:28Z. --- The opening star screen, the logo video and the loading animation flickered: the title writes these textures in a way the texture guard doesn't catch, so changes were only picked up by the every-8th-frame hash and older pictures kept showing. A guarded texture is now hashed at every check for its first 64 frames, and for another 64 each time the hash finds a change the guard missed. Textures that don't change go back to the 8-frame hash. `VICTORY_TEXTURE_HOT=0` turns it off. Tested on an RTX 5080: the flicker is gone apart from a blink on the first frame.
upstream-sync closed this pull request 2026-11-24 21:30:25 +00:00
arminkhaleghirod commented 2026-11-24 22:07:33 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by arminkhaleghirod on 2026-11-24T21:37:17Z.


Tested c5b12f1 on an RTX 4080 (Windows 11, Series X, default settings). I saved every frame of the startup animation (550 to 1000) and counted frames that jump back (n and n+2 match, n+1 doesn't):

Build Moving frames Jumps back
main 90228a7 25 13
main, VICTORY_TEXTURE_GUARD=0 29 0
this PR 33 0

Fixes #39 here too. I'm closing my #63 (same idea) in favour of this one.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7145171342 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/58#issuecomment-7145171342). Originally posted by [arminkhaleghirod](https://github.com/arminkhaleghirod) on 2026-11-24T21:37:17Z. --- Tested c5b12f1 on an RTX 4080 (Windows 11, Series X, default settings). I saved every frame of the startup animation (550 to 1000) and counted frames that jump back (n and n+2 match, n+1 doesn't): | Build | Moving frames | Jumps back | |---|---|---| | main 90228a7 | 25 | 13 | | main, `VICTORY_TEXTURE_GUARD=0` | 29 | 0 | | this PR | 33 | 0 | Fixes #39 here too. I'm closing my #63 (same idea) in favour of this one.
oz-stanislav-zhukov commented 2026-11-24 22:07:41 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by oz-stanislav-zhukov on 2026-11-24T22:05:52Z.


Confirmed on Windows 10 Pro 22H2 (19045), RTX 5060 Ti 16 GB (driver 621.24), i7-14700KF, 64 GB, Series X profile, release build.

Tree: main (4e17478) + #22 + this PR (c5b12f1), merged locally without conflicts. Speed switches on (VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024).

  • Before: the intro / logo video visibly jumped back and forth (as in #39), in every run.
  • With this PR: it plays smoothly. Checked by eye only (no frame captures, release build).
  • cargo test -p victory-gpu: 110 passed, 0 failed, 1 ignored.

Hardware report for this machine: #148

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7145798979 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/58#issuecomment-7145798979). Originally posted by [oz-stanislav-zhukov](https://github.com/oz-stanislav-zhukov) on 2026-11-24T22:05:52Z. --- Confirmed on **Windows 10 Pro 22H2 (19045)**, **RTX 5060 Ti 16 GB** (driver 621.24), i7-14700KF, 64 GB, Series X profile, release build. Tree: `main` (`4e17478`) + #22 + this PR (`c5b12f1`), merged locally without conflicts. Speed switches on (`VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024`). - Before: the intro / logo video visibly jumped back and forth (as in #39), in every run. - With this PR: it plays smoothly. Checked by eye only (no frame captures, release build). - `cargo test -p victory-gpu`: 110 passed, 0 failed, 1 ignored. Hardware report for this machine: #148 AI-assisted (Claude Code, Claude Opus 5.5).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!58
No description provided.