v2026.11.29.04: host copies of render targets still grow to ~1.5 GB and are never let go; 8 GB card over budget after 5-10 min (#791 on the latest release) #3420
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-11-29T23:04:52Z.
v2026.11.29.04: host copies of render targets still grow to ~1.5 GB and are never let go; an 8 GB card goes over budget after 5-10 min (#791 on the latest release)
#791 was closed as reported on an old build, with a request for a new issue if it still happens on the latest release. It does. The #803 counters are in this release, so this also answers the question left on #791 about which kind of copy grows: the ones the title still holds, not dead ones.
PC: RTX 3070 8 GB, driver 621.24, Ryzen 7 5800X3D, 32 GB RAM, Windows 11 build 26200.
Build: release v2026.11.29.04 (
f72cec771), built from source with the diagnostics feature plus the 4-line build fix from #2386 (copystat.rs / host.rs, no behaviour change).Settings: the launcher's own list from
play.rsat that commit, plus Series S, 1920x1080 output, DLSS performance, and either DLSS frame generation 2x or no frame generation. Our only memory change from the launcher's list isVICTORY_CARD_ROOM_FOR_TARGETS_MB=2048.What grows (five play sessions today, all on this build)
From the census line "host copies the sweep never lets go", first and last reading of each session:
The last census line of session 5:
So almost all of the growth is copies whose title memory is still mapped and still in use: none unmapped, none idle and unheld, and only 34-84 MB dead.
What it does to an 8 GB card
the card has 7538 MB in use of a budget of 7233 MBat the end of session 5. It stays over; standing still does not bring it back down.What did not help (one session each)
VICTORY_TEXTURE_ROOM_PERCENT=80instead of the launcher's no-frame-generation line: peak 7,640 against 7,721 MB.VICTORY_REUPLOAD_WHEN_FULL=0: peak 7,543 MB.VICTORY_CARD_ROOM_FOR_TARGETS_MB=2048: the reserve shows 0 MB kept later in each session.What would help
A policy for held render-target copies on small cards, for example a cap, or giving back copies of targets the title has not rendered to for a while. On #791 these looked like per-light shadow maps (sizes 128x128x6, 256x256x3, 512x384, 768x768, R16) [a reading].
I can run any diagnostics build or switch on this card and report the census over a long session. The play logs are not attached because they carry local user and path names; I can quote any lines you need.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T23:05:01Z.
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)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Jesper-Andersson on 2026-11-29T23:28:01Z.
/claim
Same growth here, on our own build rather than stock .04: RTX 2070 SUPER 8 GB (Turing), driver 621.40, Ryzen 7 5800X, 32 GB, Windows 11, Series S, DLSS Performance, no ReBAR. Build: v2026.11.29.02 plus PR #2143, the .03 foliage fold fix, and three of our own host-side switches (an ambient-pass change, shared hash buffers, sweep releases on a thread of their own); as far as I can tell none of them changes render-target copies. One run each, so take the numbers as single readings:
I have not re-checked the growth on stock .04. I can quote any lines of either log (they carry local paths, so I would rather not attach them whole).
What I am trying first: when a newer render target maps the same physical pages as an older one that is still alive, the older one's host copy is let go once the card is done with it (as I read the code, on the console those bytes now belong to the newer target). It comes behind a new switch, off by default, with a census count of how many held copies it would free, so the share can be checked before anything is turned on. A draft PR follows once it builds and has run in a game.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-11-30T01:11:56Z.
@Jesper-Andersson thanks for picking this up. Here is one number that may save you a round: on this card, the copies your first switch would free are a small share of the growth.
These are the same five sessions as in the table above, on v2026.11.29.04 with the #803 counters. They come from the last census line of each session ("whose title memory has a newer target now"):
So about 3-6% of the bytes. In every session the other census fields were 0 at the end: 0 copies whose title memory is not mapped now, and 0 not used for 30 s and held by no list and no slot. Your 27 of 996 MB fits the same pattern.
My reading, not tested: most of the growth is copies of targets the title still has mapped and touches at least every 30 s or keeps in a slot. Superseded-copy release is worth having, but it would leave most of the ~1.2 GB in place here. A cap or least-recently-used release for held copies on small cards looks like the part that would move the number.
I can run your switch and its census count on this card when the draft PR is up, and post the before/after.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Jesper-Andersson on 2026-11-30T01:15:14Z.
@CuteBooty thanks, that saves a round. It matches what I see: 27 of 996 MB under a newer target here, so about 3% of the bytes, the low end of your five sessions (3-6%). Freeing the superseded copies alone won't move the number much on an 8 GB card.
So I'm changing what the PR covers:
A cap or least-recently-used release for copies the title still has mapped is the part that would actually bring the number down, as you say. It's also the part most likely to cost a re-upload or a wrong picture when a released copy is needed again. I'd rather have the census numbers from a few cards before choosing its limits.
None of this has run in a game yet, and I haven't run the tests on the final commit yet. I'll mention you when the draft PR is up. Before and after numbers from your card would help a lot.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-11-30T03:28:36Z.
@Jesper-Andersson thanks, the residency-priority idea and the split census both sound right for this card. One longer reading that may matter for the limits: past ~30 minutes, the growth here moves from render-target copies to the texture side.
Same card as above, now on v2026.11.29.05 with upstream's launcher settings, frame generation off, DLSS Performance, Series S, plus
VICTORY_SAMPLED_EVICT=1,VICTORY_TEXTURE_ROOM_PERCENT=80andVICTORY_CARD_ROOM_FOR_TARGETS_MB=2048. This was one 65-minute session of normal story play that ended in a car chase. It is one run, so take it as a single reading.What this means for the PR, as I read it: the residency change and a later cap on render-target copies would cover the first ~30 minutes on an 8 GB card. A long session would still drift over budget through the texture pool unless empty pool space is given back. That may be a separate issue; I can open one if you think it is.
The before/after offer stands: I'll run the draft PR's switches and census on this card when it is up.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-11-30T19:42:12Z.
@Jesper-Andersson one data point from the first session on v2026.11.30.01 (RTX 3070 8 GB, Series S profile, frame generation on,
RESIDENCY_PRIORITY=1, 28 minutes of normal play, details in #3680): the render-target copies are unchanged by this release. They follow the same curve as on .05:What did change is the texture side: the pool is 2.7 GB instead of 4.0-4.3 GB, and the game stayed under its DXGI budget for the whole session (317 MB under at 28 min). That makes the host copies the sweep never lets go about a quarter of the game's card use (1,740 of 6,745 MB) and the biggest single block left after textures. On 8 GB they are now the margin between staying under budget and going over in a longer session.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-12-01T00:07:39Z.
Log line behind the v2026.11.30.01 column above (minute 28, pasted as text, cut after the first part):