Fix green/black textures on 8 GB GPUs (target reserve settle, slot eviction, neutral stand-in) #1179
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!1179
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1179"
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?
@EduardoMFOliveira on GitHub · 2026-11-28 14:57 UTC · original
EduardoMFOliveira:fix/8gb-green-black-textures→main· +32 −18 · 2 files · 1 commits · merged 2026-11-28 19:39 UTCSummary
Fixes green and black textures observed on 8 GB GPUs (tested on an RTX 5060 Laptop GPU, 6.6–7.1 GB local budget, both Series X and Series S + FrameGen modes) without regressing FPS or stability.
Root Causes & Fixes
crates/victory-gpu/src/resource.rs—targets_kept):targets_keptpreviously requiredtargets >= most / 2(1,536 MB) before settling to0. On 8 GB / Series S / DLSS setups, in-world render targets stabilize around 1,185–1,450 MB, so the condition was never met andtargets_room_kept()permanently added 1,620–1,887 MB of phantom usage toroom(), locking 16k–31k textures out of the queue.(most / 4).min(1024 << 20)(768 MB with defaultmost = 3072 MB), still safely above the ~652 MB pre-world menu baseline while allowing 8 GB / Series S / DLSS targets to settle.resource.rs—slot_evict,descriptor/host.rs—HostHeap::slots_showing):slot_evict's high/low watermarks againstroom_line(budget)and subtractedcrate::pool::texture_room()fromused, so eviction actually triggers whenroom()is capped at e.g. 80% (FrameGen).HostHeap::slots_showingfromself.tabled_lately(i, frame)(which expired afterTABLED_FRAMES = 240, shorter thanidle_ms) totabled_out() && self.tabled_stamp(i) != 0so idle table-held textures can be evicted and re-mirrored on demand.crates/victory-gpu/src/descriptor/host.rs—unmake,make_at,mirror):null_for((0, 0, 0, 0)), which renders black for albedo and bright green in YCoCg / BC5 normal-chrominance shaders (where0.5is subtracted). Replaced withneutral_for(1x1 R8G8B8A8_UNORM = 0x80).Testing
cargo test --release -p victory-gpu: 453 passed; 0 failed (including updatedroom_for_targets_is_given_up_once_they_settlecovering 1,185 MB world targets).cargo build --release --locked -p victory: clean release build.@T1bolus on GitHub · 2026-11-28 15:44 UTC · original
Confirmed on a setup bigger than the report's 8 GB cards: GeForce RTX 4070 SUPER 12 GB, AMD Ryzen 5 7600 (6 Zen 4 cores), Windows 11, Series S profile with DLSS performance and frame generation 2x. Built main with this PR and #1095 on top, and drove the same kind of street-parking scene that held whole rows of parked cars showing stale texture content for minutes.
changed after its uploadwarningsThe parked cars' textures arrived with the frame they first appeared in instead of minutes later; the re-upload competition against room-full textures is largely gone. The stale warnings left over trace to title writes through aliased views (fixed separately), so the two figures do not share a root cause.
One merge note from a tree that carries the view remap and the alias-write fixes:
unmakeresolved as— the neutral stand-in kept and the slot placed back. The
keptfromneutral_for(&view, ...)and theplace_backwiring are independent, so both fit one branch.cargo test -p victory-gpu --locked: 460 green.
@Exopus-0x65f7ad0 on GitHub · 2026-11-28 16:24 UTC · original
A run on an 8 GB desktop card in the Series X profile, as a complement to the 5060 Laptop and 4070 SUPER results above.
Setup: RTX 5060 Ti 8 GB (
vram_budget_mb~7,100), 16 GB RAM, Windows 11 26300.63b902f+ local commits, with and without this PR (one run each, same save). README launcher defaults: Series X, native 1440p, DLSS Quality, no frame generation. Prison opening: cutscene plus a scripted 90 s walk.kept for render targetsin the room linesno roomhas no room for new oneslinespresentCommonnotice)most / 2threshold, so the reserve settles to 0 without the PR too. Fix 1 can't show here; it's the Series S / DLSS case, as you describe.So nothing against it from the Series X side.