Host copies of render targets are never let go: +1.4 GB over a session squeezes texture admission on an 8 GB card (interiors go black later in a run) #791
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#791
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@CuteBooty on GitHub · 2026-11-28 05:59 UTC · original
What the player sees: every session starts well, and later in the session the rooms you walk into come up black (walls, floor, furniture), while characters, screens and props are drawn. Outdoors is mostly fine. A restart fixes it for another 10-20 minutes. Issue #763 and Discussion #639 sound like the same decline on bigger cards.
PC: RTX 3070 8 GB (driver 621.24), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, DLSS performance + frame generation 2x,
victory.exe run. Build: main63b902fe1+ #630 + #697 + a few local commits that do not touch release logic. Settings that matter:VICTORY_TEXTURE_POOL=1,VICTORY_SOFT_VIEWS=copies,VICTORY_SLOT_EVICT=1,VICTORY_TEXTURE_ROOM_PERCENT=85,VICTORY_CARD_ROOM_FOR_TARGETS_MB=2048(released: 0 MB kept in play).What grows (three sessions, from the census lines):
In the 19.5-minute session the count jumped 83 -> 576 within 5 s of entering the world, then rose by about 20 a minute, tapering; it fell only 15 times against 997 rises. Of 310 depth + UAV copies made, the shapes (128x128x6, 256x256x3, 512x384, 768x768, R16) look like per-light shadow maps [a reading]. Meanwhile the title-filled copies are pushed out (12.1 GB let go, 2.6 GB made again) and title textures without a copy reach 113,000.
The census line at the end of that session:
What the code does (two independent read-only reviews, nothing built or run on it):
fills()false) gets a committed host copy on first use inhosted(), plus a colour twin for depth + UAV.Drop for Resource, when the title's lastReleasearrives.let_go_idleandslot_evictboth skip this class by design, and no switch caps it (VICTORY_TEXTURE_BUDGET_MB,VICTORY_TEXTURE_KEEP,VICTORY_SLOT_EVICTcount filled copies only;VICTORY_CARD_ROOM_FOR_TARGETS_MBis a reserve, not a cap). The comment bytargets_censusrecords the same growth in an earlier run.hosted(.., false)stampsused, which may keep the idle count at 0.A suggestion, if it helps: four more numbers in
targets_census: copies whose address now names a newer target; address-backed copies whose memory is unmapped (not only placed ones); title render/write textures created since the start; and released since the start. If the first two rise with the alive count, these are dead copies and a targets pass inlet_go_idleunder pressure could release them safely (last real use 60 s+ ago, held by no list or slot, no placed view aliasing it, contents provably dead). If creations stop after world entry and releases stay near zero, the title really holds them, and it becomes a question of what to do with live targets on small cards. Letting a live one go would need a write-back and a re-make that uploads from it, which is not small.Related: #691 (VRAM at the budget), #756 / #784 (spare blocks, idle host lists), #609 / #76 (the target reserve), #763, #639. I can run a build with such counters on this card and report.
Measurements and this report were prepared with AI assistants (Claude Code and Codex); the runs were played on my machine.
@github-actions[bot] on GitHub · 2026-11-28 05:59 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@kibagami-nc on GitHub · 2026-11-28 06:21 UTC · original
The counters you suggested are in #803, as a diagnostics build. The memory line's census of the host copies the sweep never lets go now also gives:
TARGETS_ATholds the newest at each address);This does not include the copies whose last real use was long ago, since the
usedstamp fromhosted(.., false)you mention still keeps that count low.If you run your 8 GB session with it, the end of that line should tell the two cases apart: dead copies that a pass could release, or targets the title really holds.
@KaV3R on GitHub · 2026-11-28 07:33 UTC · original
Same symptom here on a 12 GB card: after a long session (a few hours), going into a different interior shows it almost fully black, with little or no lighting. Interiors earlier in the run looked fine.
PC: RTX 4070 SUPER 12 GB (driver 621.35), Ryzen 9 9950X3D, 62 GB RAM, Windows 11 26300. Release build at
8fc22547(before63b902fe, soVICTORY_SLOT_EVICT/VICTORY_ALLOCATOR_TRIM/VICTORY_BUDGET_PACKwere off), Series X, 2560x1440, DLSS Quality, frame generation 2x.What the log shows (one run, 4 h 40 min): the texture queue is over its line for the whole session, from the first minutes on, so new textures wait:
At the end: "no room, new textures wait", 67165 of 67726 slots taken in 5 s "held back for room", 128 GB uploaded since the start. Host copies in the card's memory stay around 2.1 GB (3757 copies). So it fits your reading: on a new interior its textures can't get in, and what stays resident is the old area's.
Next here: a run on
63b902fe(memory stack on by default) to see whether the queue drops under its line and the late interiors light up. I can also run the #803 diagnostics build if the census helps.AI-assisted (Claude Code): the log analysis and this text. Observed by me in play; no game files.
@CuteBooty on GitHub · 2026-11-28 08:58 UTC · original
I ran the #803 counters on the 8 GB card. The machine is an RTX 3070 8 GB (driver 621.24), a Ryzen 7 5800X3D, 32 GB and Windows 11 build 26200. The build was main
63b902feplus my local patches, with #803 applied as is (diagnostics feature). Settings: Series S, DLSS performance, no frame generation,VICTORY_TEXTURE_ROOM_PERCENT=85,VICTORY_SLOT_EVICT=1.Caveat first: this was one unattended run. It loaded a save and then stood still for 11 minutes after world entry. Nobody moved, so it says nothing about traversal or new interiors.
From the "never lets go" line, by minutes after world entry:
How it reads against the guide in #803:
What this can't tell:
usedstamp caveat fromhosted(.., false)still applies.Next on this card: the same counters in a normal play session, with the same table.
(Unattended standing-still run without frame generation. Measurements and text prepared with my AI assistants, Claude Code and Codex. No game files.)
@CuteBooty on GitHub · 2026-11-28 14:53 UTC · original
Here are the #803 counters from a PLAY session on the same 8 GB card, as promised. Setup: RTX 3070 8 GB, Ryzen 7 5800X3D, 32 GB, Windows 11 26200, driver 621.24. Build: main
63b902fe, my local patches, #803, and also #923, #933, #945 and #888. Settings: Series S, DLSS performance, frame generation 2x,VICTORY_TEXTURE_ROOM_PERCENT=85,VICTORY_SLOT_EVICT=1. The session lasted 11.6 minutes, moving through the world.The player's words at the end: the run "started out looking really good", but by the time they finished, "the texture quality and black textures were worse". That's the same late-run pattern as in the issue.
The "never lets go" line, last line of each minute (minute 0 is loading):
How it reads against the guide in #803:
(A note in passing:
VICTORY_FRAME_INTERVAL_US=1000changed nothing on this CPU-bound machine. Frames were not quantized at 33 / 67 ms.)Where this points, as far as I can tell: a "dead copies" pass alone would not fix this card. The memory is in copies of targets the title still holds. Any relief would have to come from letting go of the host copies of held but idle targets, with a write-back and a re-make on next use, or from not giving every target a full card copy on 8 GB. As said before, that is not small. I can test a build with such a policy on this card.
(Measurements and text prepared with my AI assistants, Claude Code and Codex. No game files.)
@trustno1-coder on GitHub · 2026-11-28 20:46 UTC · original
#803 is now merged into main: the memory line now tells dead render-target host copies apart from the ones the title still holds. That's the measurement, not the fix yet. A log from the next release over a long session, from start to when rooms turn black, would show which kind grows.
@trustno1-coder on GitHub · 2026-11-29 19:49 UTC · original
Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.
If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!