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

Open
isgti07-hub wants to merge 1 commit from upstream-pr/4602 into main
isgti07-hub commented 2026-11-30 23:43:34 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by isgti07-hub on 2026-11-30T23:43:34Z.


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; #4376 measures flicker but does not change this.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5575847986 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4602). Originally posted by [isgti07-hub](https://github.com/isgti07-hub) on 2026-11-30T23:43:34Z. --- ## 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; #4376 measures flicker but does not change this. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
BitWuehler commented 2026-12-01 00:41:53 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BitWuehler on 2026-12-01T00:41:53Z.


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.)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7296631314 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4602#issuecomment-7296631314). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-12-01T00:41:53Z. --- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/4602:upstream-pr/4602'
git switch 'upstream-pr/4602'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/4602'
git switch 'upstream-pr/4602'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/4602'
git switch 'upstream-pr/4602'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/4602'
git switch 'main'
git merge --squash 'upstream-pr/4602'
git switch 'main'
git merge --ff-only 'upstream-pr/4602'
git switch 'main'
git merge 'upstream-pr/4602'
git push origin 'main'
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!4602
No description provided.