Textures: a slot keeps another texture of the same description only when its bytes match, by default, and on the show-later path too #2102

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

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


A descriptor slot written with a different texture of the same description (same size and format, placed elsewhere) went on showing the old texture until the new one's upload ran, unless VICTORY_KEEP_SHOWN=checked was set. Streamers reuse slots that way for unrelated textures, so a surface could show rainbow-noise texels, or a shirt could show another character's map of the same size, a different one each run.

checked is now the default: a moved texture of the same description is kept only when both memories begin and end with the same 4 KiB, which means the title really moved it. Otherwise the slot shows the neutral texture until the upload lands. A number in VICTORY_KEEP_SHOWN still picks the old modes (0, 1, 2).

The show-later path in mirror_inner also used its own copy of the rule and skipped the byte check. It now calls kept_meanwhile like the other path.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549443248 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2102). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T09:32:52Z. --- A descriptor slot written with a different texture of the same description (same size and format, placed elsewhere) went on showing the old texture until the new one's upload ran, unless `VICTORY_KEEP_SHOWN=checked` was set. Streamers reuse slots that way for unrelated textures, so a surface could show rainbow-noise texels, or a shirt could show another character's map of the same size, a different one each run. `checked` is now the default: a moved texture of the same description is kept only when both memories begin and end with the same 4 KiB, which means the title really moved it. Otherwise the slot shows the neutral texture until the upload lands. A number in `VICTORY_KEEP_SHOWN` still picks the old modes (0, 1, 2). The show-later path in `mirror_inner` also used its own copy of the rule and skipped the byte check. It now calls `kept_meanwhile` like the other path.
DoubleD17 commented 2026-11-30 03:37:14 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DoubleD17 on 2026-11-30T03:37:14Z.


We ran a picture test of this PR's default, VICTORY_KEEP_SHOWN=checked, on main 41adb551: two 150 s runs, each with bursts of 10 captures a second at 45, 90 and 130 s, 600 frames in all, looked at frame by frame.

No new defects in any of the 600 frames. One burst was flagged by our detector, but it was a bird flying across. The mix-ups this PR targets (another texture of the same size shown on a surface) did not show in our scene with or without the switch, so this shows only that it does not regress anything here, not the fix itself. Frame rate was not compared: the mid-run bursts take CPU time.

Setup:

  • Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11;
  • Series X, 1440p with DLAA (DLSS at native resolution; corrected, this line said DLSS Performance at first), frame generation and ray tracing off;
  • main 41adb551 with the switch, against 41adb551 without it;
  • 150 s runs in two rounds (the second in reverse order), with four control runs spread through the session;
  • every run starts from the same save, restored before each run;
  • figures are medians of the 5 s host lines; memory is the median of the last ~100 s of each run.

AI Assisted

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7268049169 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2102#issuecomment-7268049169). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-11-30T03:37:14Z. --- We ran a picture test of this PR's default, `VICTORY_KEEP_SHOWN=checked`, on main 41adb551: two 150 s runs, each with bursts of 10 captures a second at 45, 90 and 130 s, 600 frames in all, looked at frame by frame. **No new defects in any of the 600 frames.** One burst was flagged by our detector, but it was a bird flying across. The mix-ups this PR targets (another texture of the same size shown on a surface) did not show in our scene with or without the switch, so this shows only that it does not regress anything here, not the fix itself. Frame rate was not compared: the mid-run bursts take CPU time. **Setup:** - Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11; - Series X, 1440p with DLAA (DLSS at native resolution; corrected, this line said DLSS Performance at first), frame generation and ray tracing off; - main 41adb551 with the switch, against 41adb551 without it; - 150 s runs in two rounds (the second in reverse order), with four control runs spread through the session; - every run starts from the same save, restored before each run; - figures are medians of the 5 s host lines; memory is the median of the last ~100 s of each run. AI Assisted
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!2102
No description provided.