Texture slots keep the texture they show until the new one has uploaded (VICTORY_KEEP_SHOWN=2 by default) #4719
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4719
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4718"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@DoubleD17 on GitHub · 2026-12-01 03:24 UTC · original
DoubleD17:fix/keep-shown-any-same-dimension→main· +17 −8 · 2 files · 1 commits · closed without mergingWhat it changes
When the title rewrites a texture slot with another texture, the slot has to show something until the new texture is made and its upload has run. Today (
VICTORY_KEEP_SHOWNunset, which meanschecked):On a card at its budget, new textures wait for room ("no room, new textures wait" in the 5 s texture-queue line). The grey then lasts and shows as grey flicker or pop on surfaces. On an RTX 5070 12 GB the queue was at its line in most 5 s lines of every run below.
This makes
2the default: a slot keeps showing any texture of the same dimension until the new one has uploaded.checked,1and0stay available, unchanged. The README row and the doc comments say so.The trade-off is the one
keep_checked's comment names: a kept texture can belong to something else (rainbow noise, another character's map) until the upload lands. We looked for that and did not see it (below), but it is the reasoncheckedwas the default, so it is worth a look on other scenes.How it was tested
e1251c31, release, with--set VICTORY_KEEP_SHOWN=2against unset. This PR only flips that default, rebased onde21ed57.Grey slots per 150 s run, from the "slots that showed a texture and were written with another" line:
checked), 6 runs2, 4 runsPicture:
2.2, none showed another object's texture on any surface, clothing included. The flagged frames were the one-frame vegetation gap, which the unset runs show as well.Frame time: 2+2 runs, light views.
2against unsetThat is within the run-to-run noise of this PC, so there is no cost.
Play:
KEEP_SHOWN=2(the user also hadVICTORY_TEXTURE_ROOM_PERCENT=88).Checks on this branch:
cargo clippy --workspace --all-targets --locked -- -D warnings: it stops on five findings incrates/victory-gpu/src/host/font.rs:213,260,host/menu.rs:667andhost/panel.rs:602,668. The same five appear onde21ed57without this change; this PR touches none of those files. #4708 fixes them (itscheckjob passed); this PR'scheckshould pass once that is on main.cargo test --workspace --locked:victory-gpu1,095 passed. One test elsewhere,victory-loaderconsole_insn::tests::clzero_on_a_guarded_line_goes_through_the_guard, failed once in the full run and passed when run on its own (cargo test -p victory-loader console_insn: 10 passed). That crate is untouched here.Not tested: AMD and Intel cards, other parts of the map, sessions longer than 34 minutes, ray tracing on.
Checked for overlap
KEEP_SHOWNand for grey texture flicker. I also listed the open pull requests that changecrates/victory-gpu/src/descriptor/host.rs: about 30, none of which changeskeep_shown/keep_checked. Related: none found.AI Assisted
@nick0451 on GitHub · 2026-12-01 04:18 UTC · original
A second card for this, one with room to spare: RTX 3090 24 GB, driver 610.88, i9-14900K, 32 GB, Series S, DLSS performance, no frame generation or ray tracing. Official v2026.11.30.03 with
--set VICTORY_KEEP_SHOWN=2against unset, 3 + 3 starts alternating, off-screen. Idle camera at a frozen balcony save, 150 s in the world, then a 60-frame burst at 24–27 frames/s. Both arms ran withVICTORY_SHADER_OPT=445, so the #4188 hair didn't add per-frame noise.2, 3 runschecked, and2keeps all of them.Limits: one idle view, no movement or driving, so a stream-heavy scene where a kept texture belongs to something else for longer isn't covered here.
@nick0451 on GitHub · 2026-12-01 06:38 UTC · original
Following up with the case I said wasn't covered: a watched driving session with
VICTORY_KEEP_SHOWN=2. Same RTX 3090, driver 610.88, Series S profile. The build was mainf5c3d243with #4695 (so neither the leak nor the retry stutter) andVICTORY_SHADER_OPT=445. A person drove through the city on the left monitor for about 10 of the 10.7 minutes in the world. Rolling 30-frame captures at about 15 frames/s ran the whole time, with the same frame-to-frame check as before.2as well. Nothing was flagged while driving, though the check is less sensitive while the camera moves.@kodifan on GitHub · 2026-12-01 11:03 UTC · original
Confirmation from a different card and CPU, on a build made of
main(5fabb46e) with this PR, #4775 and #4636 merged in (local release build,cargo build --release -p victory).Hardware: RTX 5060 Ti 16 GB (15.9 GB of its own), Ryzen 7 7700 (32 MB L3), 32 GB DDR5-6000, Windows 11 26200, driver 621.24.
Settings: Series X profile, 2560x1440 output, DLSS Performance, Frame Generation on, texture room 70 % -> VRAM at 15.2 of 16.3 GB, texture loading all detail. So the card sits at its budget in most scenes, which is the case this PR describes.
Before (v2026.11.29.05, same settings): road and wall surfaces flickered continuously. The log showed why, and it matches your description exactly - six adjacent texture slots (two of 2,176 KB, four of 544 KB) rewritten by the title about every 2.7 s and re-uploaded after the fact:
Those 200 warnings over ~2 minutes remained in the new build, i.e. the title still rewrites them behind the layer's back - what changed is what the screen shows while the new texture waits for room.
After: the player's verdict was "almost flicker free". No grey or neutral pops observed on roads, walls or terrain in a normal 10-minute session. Frame times were unaffected (p99 50-72 ms, none over 100, 7.5 us per draw).
Caveat on attribution: three PRs went in together, so this is not a clean single-variable test. #4775 touches the refresh path and could in principle change upload timing, and #4636 changes present pacing. But the visual change - grey placeholder gone - is what
KEEP_SHOWN=2is for, and it is the only one of the three that names it.Also worth knowing: with the same build,
VICTORY_INDIRECT_REST=0removed the tree flicker on the same machine (docs/findings.mdcalls that the suspected cause of outdoor flicker). So two separate faults, two separate fixes, both confirmed here on a card at its VRAM budget.Happy to run a single-variable build (+ this PR only) if you want that attribution nailed down.
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 18:16 UTC · original
The follow-up in #4860 gives an isolated comparison of this default. The tester used a clean
5fabb46ebuild on an RTX 5090 under Linux, with the same save and route, changing onlyVICTORY_KEEP_SHOWN.The continuous flashing while walking was present with
checked, disappeared with2, and came back whencheckedwas restored. With2, they still saw occasional gray-to-texture transitions and a briefly incorrect nearby texture. The result supports the flicker reduction on that setup and records the visual trade-off for a global default.@transbinaryunicorn-sys on GitHub · 2026-12-01 18:22 UTC · original · edited 2026-12-01 18:24 UTC
Test report for this default, from #4860: RTX 5090, Linux (GE-Proton11-14, vkd3d-proton master), clean
main5fabb46e, normal release build, upstream defaults, ray tracing off, same save and walking route each run, onlyVICTORY_KEEP_SHOWNchanged (that's all this PR changes).checked(current default)2(this PR)Back and forth on the same build: the flashing comes back with
checkedand goes away with2. With2, now and then a texture visibly switches from gray, or one nearby is briefly not quite right; for playing that's far less noticeable than the flashing. Details and counters: #4860Note: I tested the switch on clean main, not this branch itself. The PR only flips the default, so it should be the same.
@DoubleD17 on GitHub · 2026-12-01 18:32 UTC · original
Closing this: main now sets
VICTORY_KEEP_SHOWN=2by default invictory play(f4a8eeeb, from discussion #4670 / PR #4603), which is what this pull request asked for. The layer's own default stayschecked, butvictory playis how the game is started, so this change is no longer needed.AI Assisted
Pull request closed