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

Manually merged
github merged 1 commit from github-bot/gh-2104 into main 2026-11-30 14:17:38 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 09:32 UTC · original
101Leafy:nv/full-fingerprint → main · +28 −6 · 2 files · 1 commits · merged 2026-11-30 14:12 UTC

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.

**@⁠101Leafy** on GitHub · 2026-11-29 09:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2104) `101Leafy:nv/full-fingerprint` → `main` · +28 −6 · 2 files · 1 commits · merged 2026-11-30 14:12 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 09:34:09 +00:00
github manually merged commit 2171b279bd into main 2026-11-30 14:17:38 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2104
No description provided.