play: keep the shown texture until the new one is uploaded (VICTORY_KEEP_SHOWN=2) #4603

Open
github-bot wants to merge 1 commit from github-bot/gh-4602 into main AGit
Owner

@⁠isgti07-hub on GitHub · 2026-11-30 23:43 UTC · original
isgti07-hub:fix/keep-shown-flicker → main · +5 −0 · 1 files · 1 commits · open

What it changes

With VICTORY_SHOW_AFTER=1 (on in play-nvidia.ps1), a slot rewritten with a texture of another kind shows the gray stand-in until the new texture's upload has run. In a 20-minute drive through the city that happened 1,285,443 times (about 470 a second, 0.54 frames each on average, 5 at most; the slots shown after their texture's upload line), which in play reads as constant flicker on surfaces.

The launcher now sets VICTORY_KEEP_SHOWN=2 (an existing switch): the slot keeps showing any texture of the same dimension meanwhile, so no slot shows a view its shader cannot read. One line, with a comment.

How it was tested

  • GPU and profile: RTX 5090 32 GB, Ryzen 7 9800X3D, 62 GB RAM, Windows 11; Series X, 3840x2160 output, DLSS Quality, no frame generation, no ray tracing; release build.
  • Before: constant flicker on surfaces while driving; 1,285,443 gray stand-ins in 20 minutes.
  • After: far less flicker in play, the same drive. No crash or device loss in about 2 hours of play since.
  • Game results are from my own build, which carried this change together with the other three pull requests listed in this set; this exact commit was not played on its own.
  • For shader changes, the wave sizes tested: no shader change.
  • cargo test passed for the crates it touches: no Rust change (launcher only); nothing run.
  • Commit: 4d8899be, on main 7d93ee07.

Checked for overlap

  • I searched the open and closed pull requests for VICTORY_KEEP_SHOWN, "gray stand-in" and flicker. Related: none found for this switch; #3780 (closed) gave 1D, 3D and cube slots a stand-in of their kind; #4377 measures flicker but does not change this.

🤖 Generated with Claude Code

**@⁠isgti07-hub** on GitHub · 2026-11-30 23:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4602) `isgti07-hub:fix/keep-shown-flicker` → `main` · +5 −0 · 1 files · 1 commits · open ## What it changes With `VICTORY_SHOW_AFTER=1` (on in `play-nvidia.ps1`), a slot rewritten with a texture of another kind shows the gray stand-in until the new texture's upload has run. In a 20-minute drive through the city that happened **1,285,443 times** (about 470 a second, 0.54 frames each on average, 5 at most; the `slots shown after their texture's upload` line), which in play reads as constant flicker on surfaces. The launcher now sets `VICTORY_KEEP_SHOWN=2` (an existing switch): the slot keeps showing any texture of the same dimension meanwhile, so no slot shows a view its shader cannot read. One line, with a comment. ## How it was tested - GPU and profile: RTX 5090 32 GB, Ryzen 7 9800X3D, 62 GB RAM, Windows 11; Series X, 3840x2160 output, DLSS Quality, no frame generation, no ray tracing; release build. - Before: constant flicker on surfaces while driving; 1,285,443 gray stand-ins in 20 minutes. - After: far less flicker in play, the same drive. No crash or device loss in about 2 hours of play since. - Game results are from my own build, which carried this change together with the other three pull requests listed in this set; this exact commit was not played on its own. - For shader changes, the wave sizes tested: no shader change. - `cargo test` passed for the crates it touches: no Rust change (launcher only); nothing run. - Commit: 4d8899be, on main 7d93ee07. ## Checked for overlap - [x] I searched the open and closed pull requests for `VICTORY_KEEP_SHOWN`, "gray stand-in" and flicker. Related: none found for this switch; #3780 (closed) gave 1D, 3D and cube slots a stand-in of their kind; #4377 measures flicker but does not change this. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`slots_showing` took the slot's `Made` key with `?`, but `Made` has keys
for the title's `count` slots only while `kept` also has the dynamic
ones: a host texture shown by a dynamic slot was no longer reported, so
it was no longer blocked and could be chosen (freeing nothing, as the
dynamic slot holds a reference, while the title made a second copy).
Those slots are reported again with key 0, as before the key was carried;
they are never put back to waiting, only counted as blocking. Test:
`a_dynamic_slot_showing_a_texture_still_blocks_its_eviction`.

`SLOT_LOOKING` is now cleared by a drop guard, so a look that panics does
not stop every later look.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b23c0c4038)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With VICTORY_SHOW_AFTER on, a slot rewritten with a texture of another
kind showed the gray stand-in until the new upload had run: 1,285,443 times
in a 20-minute drive through the city (about 470 a second, 0.54 frames each
on average, 5 at most), which read as constant flicker. VICTORY_KEEP_SHOWN=2
keeps any texture of the same dimension meanwhile, so no slot shows a view a
shader cannot read; the flicker went down a lot in play.

RTX 5090 32 GB, Ryzen 7 9800X3D, 62 GB RAM, Windows 11, Series X profile,
3840x2160 output, DLSS Quality.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 23:48:05 +00:00
github-bot changed title from play: keep the shown texture until the new one is uploaded (VICTORY_KEEP_SHOWN=2), far less flicker to play: keep the shown texture until the new one is uploaded (VICTORY_KEEP_SHOWN=2) 2026-12-01 00:35:14 +00:00
github-bot force-pushed github-bot/gh-4602 from 14a7762036 to 4d8899be77 2026-12-01 00:35:16 +00:00 Compare
Author
Owner

@⁠BitWuehler on GitHub · 2026-12-01 00:41 UTC · original

Tested VICTORY_KEEP_SHOWN=2 on Linux (CachyOS) / GE-Proton 11-14 (vkd3d-proton master) / Ryzen 7 9800X3D / RTX 5080 16 GB (driver 620.73.04) on top of 7d93ee07 (Series X profile, 1440p, DLSS Balanced + DLSS Frame Generation 2x):

  • Ran cleanly for 22 minutes (188 in-world intervals, 0 host pipeline failures, 0 crashes).
  • Handled 1,003,838 same-kind texture slot overwrites with noticeably cleaner visuals and low texture upload overhead (tex_ms: 2.57 ms avg / 2.50 ms med).
  • Frame pacing stayed very smooth (frame_ms: 43.4 ms avg / 39.9 ms med / 156.1 ms max; DLSS-G 2x: 51.6 avg / 52.0 med / 82 max shown fps).

(Test summary compiled with AI assistance.)

**@⁠BitWuehler** on GitHub · 2026-12-01 00:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4602#issuecomment-7296631314) Tested `VICTORY_KEEP_SHOWN=2` on **Linux (CachyOS) / GE-Proton 11-14 (`vkd3d-proton master`) / Ryzen 7 9800X3D / RTX 5080 16 GB (driver 620.73.04)** on top of `7d93ee07` (Series X profile, 1440p, DLSS Balanced + DLSS Frame Generation 2x): - Ran cleanly for 22 minutes (188 in-world intervals, **0 host pipeline failures**, 0 crashes). - Handled **1,003,838** same-kind texture slot overwrites with noticeably cleaner visuals and low texture upload overhead (`tex_ms`: **2.57 ms avg / 2.50 ms med**). - Frame pacing stayed very smooth (`frame_ms`: **43.4 ms avg / 39.9 ms med / 156.1 ms max**; DLSS-G 2x: **51.6 avg / 52.0 med / 82 max shown fps**). *(Test summary compiled with AI assistance.)*
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4603/head:github-bot/gh-4602'
git switch 'github-bot/gh-4602'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4602'
git switch 'github-bot/gh-4602'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4602'
git switch 'github-bot/gh-4602'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4602'
git switch 'main'
git merge --squash 'github-bot/gh-4602'
git switch 'main'
git merge --ff-only 'github-bot/gh-4602'
git switch 'main'
git merge 'github-bot/gh-4602'
git push origin 'main'
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!4603
No description provided.