Texture residency grows without bound and nothing evicts at the wall (RTX 4080 SUPER, 1080p->1440p DLAA) #2753

Open
opened 2026-11-29 16:54:51 +00:00 by github-bot · 4 comments
Owner

@⁠TheBen420 on GitHub · 2026-11-29 16:51 UTC · original

Texture memory grows without bound on every configuration I can find, and the picture decays as it does. Split out from #1976, where it is one of several findings and the thread has turned into the aliasing reports; this one has no switch that fixes it and it stops the session being playable after a while.

Machine: RTX 4080 SUPER 16 GB (budget reads 14.3-14.6 GB), driver 32.0.16.2140, Windows 11 Pro 23H2 build 22631, Ryzen-class CPU, 32 GB RAM. GTA VI Xbox game_scarlett_master.exe 1.0.2.1.
Launch: victory play <title> --res 1080to1440 --dlss dlaa --no-framegen-ready, plus the region switches from #1976 (VICTORY_ALIAS_TARGETS=0, VICTORY_SHOW_AFTER=0, VICTORY_TEXTURE_NO_WAIT=0, VICTORY_AMBIENT_CHROMA_SCRUB=1).

The measurement

Same save, same spot, F3's VRAM x/y GB line read twice, minutes apart:

configuration VRAM behaviour
568c5e5 + VICTORY_TEXTURE_ROOM_PERCENT=80 11.8/14.3 at first check, 14.2/14.6 later reaches the wall and stays; F1 prints ALSO: VIDEO MEMORY IS FULL (14.3 OF 14.6 GB)
fork bc5330f (VRAM admission reverted) 12 GB and climbing while standing still indoors no ceiling at all
VICTORY_TEXTURE_FIRST_UPLOAD_MB=0 (strict first-upload line) climbs more slowly material dies progressively: textures go black or missing, smoke collapses to low-poly, worse the longer it runs
VICTORY_SLOT_EVICT=1 (85/75, 256 MB sweeps) fills faster than any other configuration eviction increases residency instead of reducing it

Nothing bounds the roster. Two of these make it worse when a mechanism that should bound it is switched on.

Why it matters for the picture

The artefacts in #1976 are a function of residency, with a dose-response. Identical viewpoint, same save:

  • at 14.2/14.6 GB: large axis-aligned slabs of scrambled texture across the lower half of a wooden deck, plank edges destroyed between them;
  • at 11.5/14.4 GB: the same view, the same kind of damage, but much sparser, with clean plank edges between the bad patches.

That is what a surface looks like when it has dropped a mip level or lost residency, and it is worst nearest the camera, where on-screen texel density is highest.

What I have not tried

829188e9 itself (the four measurements are on 568c5e5 and the fork), and VICTORY_ROOM_REAL / VICTORY_RESIDENT_LATER, which look aimed at exactly this. I'll test those next and report back.

What would help

Anything that gives the roster a hard ceiling: a supported way to cap it, or a pointer to where residency is supposed to be released so I can instrument the growth. Logs from any of the four runs are available on request, and the launchers are identical apart from the switch under test.

**@⁠TheBen420** on GitHub · 2026-11-29 16:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2753) Texture memory grows without bound on every configuration I can find, and the picture decays as it does. Split out from #1976, where it is one of several findings and the thread has turned into the aliasing reports; this one has no switch that fixes it and it stops the session being playable after a while. **Machine:** RTX 4080 SUPER 16 GB (budget reads 14.3-14.6 GB), driver 32.0.16.2140, Windows 11 Pro 23H2 build 22631, Ryzen-class CPU, 32 GB RAM. GTA VI Xbox `game_scarlett_master.exe` 1.0.2.1. **Launch:** `victory play <title> --res 1080to1440 --dlss dlaa --no-framegen-ready`, plus the region switches from #1976 (`VICTORY_ALIAS_TARGETS=0`, `VICTORY_SHOW_AFTER=0`, `VICTORY_TEXTURE_NO_WAIT=0`, `VICTORY_AMBIENT_CHROMA_SCRUB=1`). ## The measurement Same save, same spot, F3's `VRAM x/y GB` line read twice, minutes apart: | configuration | VRAM | behaviour | | --- | --- | --- | | `568c5e5` + `VICTORY_TEXTURE_ROOM_PERCENT=80` | 11.8/14.3 at first check, 14.2/14.6 later | reaches the wall and stays; F1 prints `ALSO: VIDEO MEMORY IS FULL (14.3 OF 14.6 GB)` | | fork `bc5330f` (VRAM admission reverted) | 12 GB and climbing while standing still indoors | no ceiling at all | | `VICTORY_TEXTURE_FIRST_UPLOAD_MB=0` (strict first-upload line) | climbs more slowly | material dies progressively: textures go black or missing, smoke collapses to low-poly, worse the longer it runs | | `VICTORY_SLOT_EVICT=1` (85/75, 256 MB sweeps) | **fills faster than any other configuration** | eviction increases residency instead of reducing it | Nothing bounds the roster. Two of these make it worse when a mechanism that should bound it is switched on. ## Why it matters for the picture The artefacts in #1976 are a function of residency, with a dose-response. Identical viewpoint, same save: - at **14.2/14.6 GB**: large axis-aligned slabs of scrambled texture across the lower half of a wooden deck, plank edges destroyed between them; - at **11.5/14.4 GB**: the same view, the same kind of damage, but much sparser, with clean plank edges between the bad patches. That is what a surface looks like when it has dropped a mip level or lost residency, and it is worst nearest the camera, where on-screen texel density is highest. ## What I have not tried `829188e9` itself (the four measurements are on `568c5e5` and the fork), and `VICTORY_ROOM_REAL` / `VICTORY_RESIDENT_LATER`, which look aimed at exactly this. I'll test those next and report back. ## What would help Anything that gives the roster a hard ceiling: a supported way to cap it, or a pointer to where residency is supposed to be released so I can instrument the growth. Logs from any of the four runs are available on request, and the launchers are identical apart from the switch under test.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:54:51 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 16:51 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.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-29 16:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2753#issuecomment-7259227738) 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. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠TheBen420 on GitHub · 2026-11-29 17:00 UTC · original

Answering the two things I should have put in the report itself:

The logs are here, added to the same gist the #1976 thread points at — https://gist.github.com/TheBen420/d227b62b1cc5aae626f4b4b795c9a74c — one per configuration in the table, all from gameplay with the reporter standing still:

  • victory-nvidia-play-20261129-084715-12828.log — VICTORY_TEXTURE_FIRST_UPLOAD_MB=0, the strict first-upload line. This is the run where material dies progressively.
  • victory-nvidia-play-20261129-085951-18204.log — main at 568c5e5 with VICTORY_TEXTURE_ROOM_PERCENT=80, the configuration that climbs to the wall and stays.
  • victory-nvidia-play-20261129-090238-18756.log — VICTORY_SLOT_EVICT=1, the run that filled fastest.
  • victory-nvidia-play-20261129-090610-22152.log — the long clean session, 11 MB.

Environment as asked in #1976: RTX 4080 SUPER 16 GB, driver 32.0.16.2140, Windows 11 Pro 23H2 build 10.0.22631, 32 GB RAM. Paths if you want them locally: play logs in %LOCALAPPDATA% ictory\logs\, and there is no crash log from any of these four — nothing crashed; the newest entry in %LOCALAPPDATA%\Victory\data952987A\crashes.log is from 2026-11-28 17:08, before any of this work.

And we are not sitting still: I'm building the newest main (55d06914, 1,282 commits past the build those measurements came from, 115 of them translator changes) right now, and the first thing I'll run is this same session with VICTORY_ROOM_REAL=1 and VICTORY_RESIDENT_LATER to see whether the new real-budget margin and the residency change bound the growth. I'll report the F3 numbers from it in this issue either way, so the table above gets a row for the current main.

**@⁠TheBen420** on GitHub · 2026-11-29 17:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2753#issuecomment-7259353204) Answering the two things I should have put in the report itself: **The logs are here**, added to the same gist the #1976 thread points at — **https://gist.github.com/TheBen420/d227b62b1cc5aae626f4b4b795c9a74c** — one per configuration in the table, all from gameplay with the reporter standing still: - `victory-nvidia-play-20261129-084715-12828.log` — `VICTORY_TEXTURE_FIRST_UPLOAD_MB=0`, the strict first-upload line. This is the run where material dies progressively. - `victory-nvidia-play-20261129-085951-18204.log` — `main` at `568c5e5` with `VICTORY_TEXTURE_ROOM_PERCENT=80`, the configuration that climbs to the wall and stays. - `victory-nvidia-play-20261129-090238-18756.log` — `VICTORY_SLOT_EVICT=1`, the run that filled fastest. - `victory-nvidia-play-20261129-090610-22152.log` — the long clean session, 11 MB. Environment as asked in #1976: **RTX 4080 SUPER 16 GB**, driver 32.0.16.2140, **Windows 11 Pro** 23H2 build 10.0.22631, 32 GB RAM. Paths if you want them locally: play logs in `%LOCALAPPDATA% ictory\logs\`, and there is **no crash log from any of these four** — nothing crashed; the newest entry in `%LOCALAPPDATA%\Victory\data952987A\crashes.log` is from 2026-11-28 17:08, before any of this work. **And we are not sitting still:** I'm building the newest main (`55d06914`, 1,282 commits past the build those measurements came from, 115 of them translator changes) right now, and the first thing I'll run is this same session with `VICTORY_ROOM_REAL=1` and `VICTORY_RESIDENT_LATER` to see whether the new real-budget margin and the residency change bound the growth. I'll report the F3 numbers from it in this issue either way, so the table above gets a row for the current main.
Author
Owner

@⁠TheBen420 on GitHub · 2026-11-29 17:03 UTC · original

Full specifications for the machine behind the table above, since #1976 only had the GPU and OS:

CPU: AMD Ryzen 7 5800X (Zen 3), 8 cores / 16 threads
Board: ASUS ROG STRIX B550-F GAMING — PCIe 4.0, DDR4 platform
Memory: 64 GB DDR4-3600, 2 x 32 GB in dual channel
GPU: NVIDIA GeForce RTX 4080 SUPER 16 GB, driver 32.0.16.2140
OS: Windows 11 Pro, build 22631

Worth flagging for whoever reproduces this: this is a DDR4 Zen 3 platform, while the development and most of the reporting in these threads is on DDR5 systems. Two consequences that matter for exactly the symptoms in this issue:

  1. Every CPU-side copy in the path is roughly half the bandwidth. The per-frame numbers in our logs are preparing: copies 21.5 ms / 55 MB on the clean build, i.e. about 2.5 GB/s achieved, and those copies sit on the submitting thread. On DDR5 that same accounting reads much lower, so a threshold tuned upstream may sit on the far side of what this machine can feed.
  2. VICTORY_SLOT_EVICT=1 filling the card faster may be a platform effect rather than a policy one — if re-uploads after eviction can't keep up with the rate the title asks for, the roster refills before the sweep's effect is visible. If so, a DDR5 machine would show less of it, and this row of the table may not reproduce for you.

If a log from the 55d06914 build on this platform would help distinguish those, it's coming in this thread next.

**@⁠TheBen420** on GitHub · 2026-11-29 17:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2753#issuecomment-7259383199) Full specifications for the machine behind the table above, since #1976 only had the GPU and OS: **CPU:** AMD Ryzen 7 5800X (Zen 3), 8 cores / 16 threads **Board:** ASUS ROG STRIX B550-F GAMING — **PCIe 4.0**, DDR4 platform **Memory:** 64 GB DDR4-3600, 2 x 32 GB in dual channel **GPU:** NVIDIA GeForce RTX 4080 SUPER 16 GB, driver 32.0.16.2140 **OS:** Windows 11 Pro, build 22631 Worth flagging for whoever reproduces this: **this is a DDR4 Zen 3 platform, while the development and most of the reporting in these threads is on DDR5 systems.** Two consequences that matter for exactly the symptoms in this issue: 1. **Every CPU-side copy in the path is roughly half the bandwidth.** The per-frame numbers in our logs are `preparing: copies 21.5 ms / 55 MB` on the clean build, i.e. about 2.5 GB/s achieved, and those copies sit on the submitting thread. On DDR5 that same accounting reads much lower, so a threshold tuned upstream may sit on the far side of what this machine can feed. 2. **`VICTORY_SLOT_EVICT=1` filling the card faster may be a platform effect rather than a policy one** — if re-uploads after eviction can't keep up with the rate the title asks for, the roster refills before the sweep's effect is visible. If so, a DDR5 machine would show less of it, and this row of the table may not reproduce for you. If a log from the `55d06914` build on this platform would help distinguish those, it's coming in this thread next.
Author
Owner

@⁠TheBen420 on GitHub · 2026-11-30 08:15 UTC · original

Distant-texture flicker with no residency churn — five exclusions, measured

main at 41adb551 (+ our 27-line copy-back cap), RTX 4080 SUPER, Ryzen 7 5800X, Win 11 23H2, GTA VI Xbox
1.0.2.1, --res 1080to1440 --dlss dlaa, daily switches
(VICTORY_ALIAS_TARGETS=0 VICTORY_ROOM_REAL=1 VICTORY_AMBIENT_CHROMA_SCRUB=1 VICTORY_GPU_BACK_MAX_KB=256 VICTORY_RAYMISS_KEEP=1 VICTORY_AMBIENT_SPECULAR=1,0 VICTORY_SOFT_VIEWS=0 VICTORY_MAP_THREADS=8 VICTORY_JOIN_PARTS=1 VICTORY_TEXTURE_ROOM_PERCENT=80).

Symptom

Standing still at a viewpoint with the island in the distance: every so often, several times a minute, distant
texture detail reads incorrectly for roughly a frame and then corrects itself. The reporter counts three to four
per two-minute window. Once, while VICTORY_ALIAS_TARGETS=1, a wider flash covered clouds and sunlit wood, pale
grey with a slight red cast, and cleared in the same way.

What the counters say

Three minutes standing still at the spot, reading the frame line's texture column every ~5 s:

07:54:17 tex 3.6 ms   07:55:08 tex 2.7 ms   07:56:04 tex 3.5 ms
07:54:22 tex 3.1 ms   07:55:13 tex 4.2 ms   07:56:20 tex 5.1 ms
07:54:47 tex 4.0 ms   07:55:49 tex 3.7 ms   07:56:45 tex 2.6 ms

Flat. 2.3-5.1 ms a frame for 2.5 minutes with no bursts and no periodicity, i.e. nothing is being re-streamed
while the flicker happens.
If the flicker were a texture leaving the card and coming back, this column would
show it, and it does not.

What was excluded, by count

Each row is a cold launch, the reporter parked at the same viewpoint, counting flickers in a fixed window:

configuration flickers conclusion
daily (above) 3 distant + 1 close per 2 min baseline
VICTORY_PORT_CONSTANTS=0 4 the port section's 174 MiB whole copy (27-29x/frame) is not it
VICTORY_RESIDENCY_HIGH=1 3 in a short window residency priority is not it
VICTORY_TEXTURE_ROOM_PERCENT=90 3, sporadic card space is not it (+800 MB VRAM, no frame gain)
VICTORY_ALIAS_TARGETS=1 3 distant alias tracking is not it, and it brought its own cloud/wood flash

Where that points

Not residency (#2753), not streaming, not the port, not the copy-back cap, not the upscaler (the reporter sees it
at native 1440 with DLSS off as well, reported earlier on #1976). What is left is a transient wrong frame written
by a pass that reads elsewhere
— and the one time we saw it up close it looked like the pale grey / red cast that
this reporter's #2887 logs show the reflection programs writing into glossy surfaces when their rays carry sun and
sky but no scene content.

Two questions we cannot answer from the outside:

  1. Is there a path in the refresh/copy machinery that can leave a resource one frame stale in a way that shows only
    on distant geometry — something a frame counter would not catch because the data never moves, only the read?
  2. Does the reflection estimate write a garbage colour for a frame when its miss path has no scene content (no BVH),
    which would show as exactly the pale flash we caught once?

The counts above are the reporter's, from fixed two-minute windows, so treat them as a coarse instrument: the
variance between windows is large. The upload counter and the exclusions are the solid part.

Logs

https://gist.github.com/TheBen420/e1265a79164ba9087e132cbca70b8711

  • victory-nvidia-play-20261130-075238-20876.log — the three-minute stand at the viewpoint the upload figures above
    come from (the daily config, standing still, nothing else running).
  • victory-nvidia-play-20261130-080618-15168.log — the VICTORY_ALIAS_TARGETS=1 run in which the clouds and wood
    flashed pale grey with a red cast.
**@⁠TheBen420** on GitHub · 2026-11-30 08:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2753#issuecomment-7272686055) # Distant-texture flicker with no residency churn — five exclusions, measured `main` at `41adb551` (+ our 27-line copy-back cap), RTX 4080 SUPER, Ryzen 7 5800X, Win 11 23H2, GTA VI Xbox 1.0.2.1, `--res 1080to1440 --dlss dlaa`, daily switches (`VICTORY_ALIAS_TARGETS=0 VICTORY_ROOM_REAL=1 VICTORY_AMBIENT_CHROMA_SCRUB=1 VICTORY_GPU_BACK_MAX_KB=256 VICTORY_RAYMISS_KEEP=1 VICTORY_AMBIENT_SPECULAR=1,0 VICTORY_SOFT_VIEWS=0 VICTORY_MAP_THREADS=8 VICTORY_JOIN_PARTS=1 VICTORY_TEXTURE_ROOM_PERCENT=80`). ## Symptom Standing still at a viewpoint with the island in the distance: every so often, several times a minute, distant texture detail reads incorrectly for roughly a frame and then corrects itself. The reporter counts three to four per two-minute window. Once, while `VICTORY_ALIAS_TARGETS=1`, a wider flash covered clouds and sunlit wood, pale grey with a slight red cast, and cleared in the same way. ## What the counters say Three minutes standing still at the spot, reading the frame line's texture column every ~5 s: ``` 07:54:17 tex 3.6 ms 07:55:08 tex 2.7 ms 07:56:04 tex 3.5 ms 07:54:22 tex 3.1 ms 07:55:13 tex 4.2 ms 07:56:20 tex 5.1 ms 07:54:47 tex 4.0 ms 07:55:49 tex 3.7 ms 07:56:45 tex 2.6 ms ``` Flat. 2.3-5.1 ms a frame for 2.5 minutes with no bursts and no periodicity, i.e. **nothing is being re-streamed while the flicker happens.** If the flicker were a texture leaving the card and coming back, this column would show it, and it does not. ## What was excluded, by count Each row is a cold launch, the reporter parked at the same viewpoint, counting flickers in a fixed window: | configuration | flickers | conclusion | |---|---|---| | daily (above) | 3 distant + 1 close per 2 min | baseline | | `VICTORY_PORT_CONSTANTS=0` | 4 | the port section's 174 MiB whole copy (27-29x/frame) is not it | | `VICTORY_RESIDENCY_HIGH=1` | 3 in a short window | residency priority is not it | | `VICTORY_TEXTURE_ROOM_PERCENT=90` | 3, sporadic | card space is not it (+800 MB VRAM, no frame gain) | | `VICTORY_ALIAS_TARGETS=1` | 3 distant | alias tracking is not it, and it brought its own cloud/wood flash | ## Where that points Not residency (#2753), not streaming, not the port, not the copy-back cap, not the upscaler (the reporter sees it at native 1440 with DLSS off as well, reported earlier on #1976). What is left is a **transient wrong frame written by a pass that reads elsewhere** — and the one time we saw it up close it looked like the pale grey / red cast that this reporter's #2887 logs show the reflection programs writing into glossy surfaces when their rays carry sun and sky but no scene content. Two questions we cannot answer from the outside: 1. Is there a path in the refresh/copy machinery that can leave a resource one frame stale in a way that shows only on distant geometry — something a frame counter would not catch because the data never moves, only the read? 2. Does the reflection estimate write a garbage colour for a frame when its miss path has no scene content (no BVH), which would show as exactly the pale flash we caught once? The counts above are the reporter's, from fixed two-minute windows, so treat them as a coarse instrument: the variance between windows is large. The upload counter and the exclusions are the solid part. ## Logs https://gist.github.com/TheBen420/e1265a79164ba9087e132cbca70b8711 - `victory-nvidia-play-20261130-075238-20876.log` — the three-minute stand at the viewpoint the upload figures above come from (the daily config, standing still, nothing else running). - `victory-nvidia-play-20261130-080618-15168.log` — the `VICTORY_ALIAS_TARGETS=1` run in which the clouds and wood flashed pale grey with a red cast.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#2753
No description provided.