draw: look at textures that keep changing unnoticed every frame (VICTORY_HOT_RECHECK, off) #303

Closed
nullexxx wants to merge 565 commits from upstream-pr/303 into main
nullexxx commented 2026-11-27 14:49:11 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by nullexxx on 2026-11-27T14:49:11Z.


Draft: measured, but no visible effect identified yet. This is offered for others to test.

What

VICTORY_HOT_RECHECK=1 (off by default): once a texture picked by index has been found changed with nothing to tell of it twice, its slot is looked at every frame from then on, instead of the look spreading out again (4, 12, 40, … frames) after each change. Each look reads 48 KiB. A summary line logs, every 250 changes found, the unchanged looks, the changes, and the looks and changes at hot slots. In a diagnostics build, VICTORY_AB can flip the switch.

Why

On an RTX 5080 (GE-Proton11-14-viewtree, Series S profile, standing still in the opening area), the a texture picked by index changed after its upload with nothing to tell of it warning reached its 200-line cap within a few minutes in every session:

  • All 200 logged cases had blocks_shown_elsewhere > 0: textures the title repaints through another view of their pages.
  • Only 32 distinct slots. Three of them account for 117 of the 200, and 163 are the same size (557,056 bytes).
  • They were found 13, 41, 45 or 56 frames after their upload, so they were shown stale until then, over and over.

Measured

Two runs of about 3 minutes at the same spot, same build otherwise. The second ran at night, which raised the GPU time; that, not this switch, is behind the lower frame rate.

off VICTORY_HOT_RECHECK=1
frames after upload at which the change was found (most common, of the 200 logged) 1, 13, 41, 45, 12, 56 2, 1, 3, 12, 56
slots looked at every frame none 30
CPU time on textures, median per frame 0.9 ms 0.8 ms
CPU preparing, median per frame 33.3 ms 30.7 ms
GPU per frame, median 2.1 ms (day) 22.4 ms (night)

Open question

Watching the opening area, I could not see a difference with it on. These 30 textures are apparently not the foliage, which still shimmers either way. If someone recognises which surfaces such slots are (544 KiB, repainted through an aliased view all session), this would show where to look. Otherwise it is a cheap correctness improvement with no visible payoff found so far.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SEGb52ApL88uPMf5GhSz8K

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5528580991 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/303). Originally posted by [nullexxx](https://github.com/nullexxx) on 2026-11-27T14:49:11Z. --- **Draft: measured, but no visible effect identified yet.** This is offered for others to test. ### What `VICTORY_HOT_RECHECK=1` (off by default): once a texture picked by index has been found changed with nothing to tell of it **twice**, its slot is looked at every frame from then on, instead of the look spreading out again (4, 12, 40, … frames) after each change. Each look reads 48 KiB. A summary line logs, every 250 changes found, the unchanged looks, the changes, and the looks and changes at hot slots. In a diagnostics build, `VICTORY_AB` can flip the switch. ### Why On an RTX 5080 (GE-Proton11-14-viewtree, Series S profile, standing still in the opening area), the `a texture picked by index changed after its upload with nothing to tell of it` warning reached its 200-line cap within a few minutes in every session: - All 200 logged cases had `blocks_shown_elsewhere` > 0: textures the title repaints through another view of their pages. - Only 32 distinct slots. Three of them account for 117 of the 200, and 163 are the same size (557,056 bytes). - They were found 13, 41, 45 or 56 frames after their upload, so they were shown stale until then, over and over. ### Measured Two runs of about 3 minutes at the same spot, same build otherwise. The second ran at night, which raised the GPU time; that, not this switch, is behind the lower frame rate. | | off | `VICTORY_HOT_RECHECK=1` | |---|---|---| | frames after upload at which the change was found (most common, of the 200 logged) | 1, **13, 41, 45**, 12, 56 | **2, 1, 3**, 12, 56 | | slots looked at every frame | none | 30 | | CPU time on textures, median per frame | 0.9 ms | 0.8 ms | | CPU preparing, median per frame | 33.3 ms | 30.7 ms | | GPU per frame, median | 2.1 ms (day) | 22.4 ms (night) | ### Open question Watching the opening area, I could not see a difference with it on. These 30 textures are apparently not the foliage, which still shimmers either way. If someone recognises which surfaces such slots are (544 KiB, repainted through an aliased view all session), this would show where to look. Otherwise it is a cheap correctness improvement with no visible payoff found so far. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01SEGb52ApL88uPMf5GhSz8K
TaynanGT commented 2026-11-27 14:57:04 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T14:57:04Z.


@nullexxx The change detection moving from 13–45 frames to mostly 1–3 is worth following. At 30 hot slots, the checks read about 1.4 MiB each frame. Compare the same lighting and camera, and record how many slots remain hot after moving to a different area. That should show both the visual effect and the long-session cost.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7221435683 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/303#issuecomment-7221435683). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T14:57:04Z. --- @nullexxx The change detection moving from 13–45 frames to mostly 1–3 is worth following. At 30 hot slots, the checks read about 1.4 MiB each frame. Compare the same lighting and camera, and record how many slots remain hot after moving to a different area. That should show both the visual effect and the long-session cost.
TaynanGT commented 2026-11-30 17:12:20 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:12:20Z.


main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285884773 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/303#issuecomment-7285884773). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:12:20Z. --- `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

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
TaynanGT/Vice-Tay!303
No description provided.