Textures: fingerprint all of a texture for heap rechecks (VICTORY_FULL_FINGERPRINT=1) #2104

Merged
101Leafy merged 1 commit from upstream-pr/2104 into main 2026-11-30 14:12:03 +00:00
101Leafy commented 2026-11-29 09:32:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T09:32:56Z.


Adds VICTORY_FULL_FINGERPRINT=1, off by default.

The heap recheck fingerprints a texture from three 16 KiB windows: the start, where the small mip levels lie, and two pieces of the largest level. Two textures of one size whose small levels match and whose largest level differs outside those windows print the same. That happens when a streamer puts another variant of a texture in the same pages, or writes the largest level again in place, and the recheck then keeps the old upload.

With the switch on, fingerprint hashes all of the texture's memory in 1 MiB pieces. It costs more reads per recheck, so it stays opt-in for titles that show this.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549443753 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2104). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T09:32:56Z. --- Adds `VICTORY_FULL_FINGERPRINT=1`, off by default. The heap recheck fingerprints a texture from three 16 KiB windows: the start, where the small mip levels lie, and two pieces of the largest level. Two textures of one size whose small levels match and whose largest level differs outside those windows print the same. That happens when a streamer puts another variant of a texture in the same pages, or writes the largest level again in place, and the recheck then keeps the old upload. With the switch on, `fingerprint` hashes all of the texture's memory in 1 MiB pieces. It costs more reads per recheck, so it stays opt-in for titles that show this.
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
trustno1-coder/VIctory-NVIDIA!2104
No description provided.