RTX 2070 SUPER 8 GB: the fixed 3 GB reserve of VICTORY_CARD_ROOM_FOR_TARGETS_MB keeps textures picked by index from being made (textures black, then back) #407
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#407
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?
@Jesper-Andersson on GitHub · 2026-11-27 00:40 UTC · original
Environment
avatarmanz/VIctory-7900XTX@014d52d(main at the time of the runs), plus #203 (DLSS) for the Series S upscale. #359 and #384 are in the build too, but inert:VICTORY_PORT_DESCRIPTORSis not set.victory run <title> --execute --console series-swith the settings ofscripts\play.ps1at014d52d, plusVICTORY_UPSCALE=dlssWhat happens
In the world, textures turn black and come back, some faces carry a rainbow-coloured grid for a while, and shadows show grid-like patterns. The log's "passes that made none for lack of room" climbs from 0 to 1,001 in about two minutes of play.
resource::room()(resource.rs:1774) lets a texture picked by index get a host copy only whileused - texture pool room + card copies kept + targets_room_kept() < 90 % of budgettargets_room_kept()(resource.rs:1822) isVICTORY_CARD_ROOM_FOR_TARGETS_MB(default 3,072) less the render targets made so far. Its doc comment gives its measurements (runs 193-198) on a card with a 10,200 MB budget. Here 90 % of the budget is about 6.1-6.3 GB, and the reserve takes up to half of that, soroom()stays false for most of the game. While it is false, the texture pass (draw.rs:2367-2376) makes no more of them ("textures picked by index: the card has no room for more; they wait"), and the held slots only come back once there is room.Narrowed down
Same build and settings, one switch changed; one run each, about two minutes in the world:
VICTORY_CARD_ROOM_FOR_TARGETS_MB=512=1280A second build on this PC (a local branch based on
c9c932cwith other changes) gives the same picture. With 3,072, the lack-of-room passes reach 2,961 and keep climbing, and 52,935 host copies are made. With 512, they stay at 52, 103,130 host copies are made, the card reaches at most 6,833 of 6,993 MB, and textures load much faster, with only a large floor black for a few seconds. Those two runs are different builds, so only their room counts and pictures compare, not their frame times.512 is too little here: the card went over its budget. 1,280 (the value #267 uses on an RTX 2060 SUPER 8 GB) is the best of the three: no lack-of-room passes, almost no black textures, and the card over its budget once, by 27 MB, at a budget of 6,928 MB (the system moved it between 6,689 and 6,981 MB during the run, from 7,221 at the start). #318 (RX 7600M XT 8 GB) uses 1,536. Neither names the reserve as the cause. A reserve that scales with the budget (or with the targets' own measured size) instead of a fixed 3 GB would fit 8 GB cards without a switch; until then, about 1,280 is a starting point for them.
Related: #122 has the same log line on a 24 GB card, but with 0 lack-of-room passes, so it isn't this. #262 and #297 are about the pool's own accounting in the same check.
Log
Not checked
Values other than 512, 1,280 and 3,072; AMD 8 GB cards; Series X; ray tracing on; runs longer than about two minutes in the world; a release build. The grid-like shadows were also seen with 512 in the second build, so they may have another cause. Geometry flickering black was seen in all three runs (3,072, 512 and 1,280), so it isn't from this switch; it may be what #124 describes.
AI use
Log reading, code reading and write-up with AI assistance (Claude Code); the runs are my own.
@Dathinel on GitHub · 2026-11-27 01:15 UTC · original
A 4 GB data point for the fixed reserve. RTX 3050 Laptop 4 GB, Ryzen 7 7435HS, 24 GB RAM, Windows 11, Series S profile, a cool_fox-lineage tree with the same 3,072 MB default. Here the test past the floor cannot pass at all: title-filled host copies stop at the floor (a quarter of the budget, about 840 MB) and never grow, 6 to 7.5 GB of title textures wait, and nothing is evicted.
VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536changed nothing in one run (the targets hold about 1,350 MB, andusedalone is over the line).VICTORY_TEXTURE_DROP_MIPS=2put about 9,100 to 10,800 textures in the same bytes against about 5,500. Not checked: values under 1,536, or a reserve that scales with the budget.https://github.com/Dathinel/victory-4gb/issues/3
No game files or captures attached. Written with AI assistance (Claude Code).