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

Open
opened 2026-11-27 00:56:45 +00:00 by github-bot · 1 comment
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-27 00:40 UTC · original

Environment

  • Repo: 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_DESCRIPTORS is not set.
  • Build: diagnostics; profile: Series S with DLSS (quality 2); ray tracing off
  • GPU: NVIDIA GeForce RTX 2070 SUPER 8 GB, driver 621.14. The card's budget is 7,221 MB at the start, and the system lowers it to 6,680-6,766 MB in the world.
  • CPU / RAM / OS: Ryzen 7 5800X / 32 GB / Windows 11 Insider 26320
  • Command: victory run <title> --execute --console series-s with the settings of scripts\play.ps1 at 014d52d, plus VICTORY_UPSCALE=dlss

What 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 while

used - texture pool room + card copies kept + targets_room_kept() < 90 % of budget

targets_room_kept() (resource.rs:1822) is VICTORY_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, so room() 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:

reserve 3,072 (default) VICTORY_CARD_ROOM_FOR_TARGETS_MB=512 =1280
passes that made none for lack of room 0 -> 1,001 0 -> 15 0
host copies made 55,360 82,355 81,066
textures picked by index uploaded 56,947 (2,807 MB), 12,550 waiting 102,380 (5,180 MB), 9,571 waiting 92,668 (4,771 MB), 9,076 waiting
card memory, highest 6,576 of 6,949 MB, never over 7,076 of 6,993 MB, over the budget in 12 of 35 lines 6,955 of 6,928 MB, over in 1 of 37 lines (by 27 MB)
median frame in the world 472 ms 386 ms 378 ms
on screen textures black and back, rainbow grid on faces, grid-like shadows fewer black textures, no real artifacts; still slow almost no black textures, no rainbow grid

A second build on this PC (a local branch based on c9c932c with 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

reserve 3,072 (default):
passes that made none for lack of room: 1001
55360 host copies made in all
textures picked by index: 56947 uploaded so far (2807 MB), 12550 waiting
the system changed the budget of the card's memory from 7221 MB to 6680 MB (frame 1421)

VICTORY_CARD_ROOM_FOR_TARGETS_MB=512:
passes that made none for lack of room: 15
82355 host copies made in all
textures picked by index: 102380 uploaded so far (5180 MB), 9571 waiting
the system changed the budget of the card's memory from 7221 MB to 6766 MB (frame 1355)
the card: 7076 MB in use of a budget of 6993 MB

VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280:
passes that made none for lack of room: 0
81066 host copies made in all
textures picked by index: 92668 uploaded so far (4771 MB), 9076 waiting
the card: 6955 MB in use of a budget of 6928 MB

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.

**@⁠Jesper-Andersson** on GitHub · 2026-11-27 00:40 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/407) ## Environment - Repo: `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_DESCRIPTORS` is not set. - Build: diagnostics; profile: Series S with DLSS (quality 2); ray tracing off - GPU: NVIDIA GeForce RTX 2070 SUPER 8 GB, driver 621.14. The card's budget is 7,221 MB at the start, and the system lowers it to 6,680-6,766 MB in the world. - CPU / RAM / OS: Ryzen 7 5800X / 32 GB / Windows 11 Insider 26320 - Command: `victory run <title> --execute --console series-s` with the settings of `scripts\play.ps1` at `014d52d`, plus `VICTORY_UPSCALE=dlss` ## What 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 while `used - texture pool room + card copies kept + targets_room_kept() < 90 % of budget` `targets_room_kept()` (`resource.rs:1822`) is `VICTORY_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, so `room()` 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: | | reserve 3,072 (default) | `VICTORY_CARD_ROOM_FOR_TARGETS_MB=512` | `=1280` | |---|---|---|---| | passes that made none for lack of room | 0 -> 1,001 | 0 -> 15 | 0 | | host copies made | 55,360 | 82,355 | 81,066 | | textures picked by index uploaded | 56,947 (2,807 MB), 12,550 waiting | 102,380 (5,180 MB), 9,571 waiting | 92,668 (4,771 MB), 9,076 waiting | | card memory, highest | 6,576 of 6,949 MB, never over | 7,076 of 6,993 MB, over the budget in 12 of 35 lines | 6,955 of 6,928 MB, over in 1 of 37 lines (by 27 MB) | | median frame in the world | 472 ms | 386 ms | 378 ms | | on screen | textures black and back, rainbow grid on faces, grid-like shadows | fewer black textures, no real artifacts; still slow | almost no black textures, no rainbow grid | A second build on this PC (a local branch based on `c9c932c` with 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 ``` reserve 3,072 (default): passes that made none for lack of room: 1001 55360 host copies made in all textures picked by index: 56947 uploaded so far (2807 MB), 12550 waiting the system changed the budget of the card's memory from 7221 MB to 6680 MB (frame 1421) VICTORY_CARD_ROOM_FOR_TARGETS_MB=512: passes that made none for lack of room: 15 82355 host copies made in all textures picked by index: 102380 uploaded so far (5180 MB), 9571 waiting the system changed the budget of the card's memory from 7221 MB to 6766 MB (frame 1355) the card: 7076 MB in use of a budget of 6993 MB VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280: passes that made none for lack of room: 0 81066 host copies made in all textures picked by index: 92668 uploaded so far (4771 MB), 9076 waiting the card: 6955 MB in use of a budget of 6928 MB ``` ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:56:46 +00:00
Author
Owner

@⁠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=1536 changed nothing in one run (the targets hold about 1,350 MB, and used alone is over the line). VICTORY_TEXTURE_DROP_MIPS=2 put 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).

**@⁠Dathinel** on GitHub · 2026-11-27 01:15 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/407#issuecomment-7207143455) 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=1536` changed nothing in one run (the targets hold about 1,350 MB, and `used` alone is over the line). `VICTORY_TEXTURE_DROP_MIPS=2` put 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).
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/avatarmanz--VIctory-7900XTX#407
No description provided.