[GH #3081] NVIDIA 12 GB on Windows 10: capped_dynamic_slots renders the world correctly, and VICTORY_MEMORY_CARD_MB has a measured sweet spot at 1024 #3079

Open
opened 2026-11-26 07:01:42 +00:00 by bittertea0323 · 1 comment
bittertea0323 commented 2026-11-26 07:01:42 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-26T06:55:49Z.


Your 15 lines turned a black screen into a picture on an NVIDIA card — plus a measured sweet spot for VICTORY_MEMORY_CARD_MB

Reporting a run of full-build (e2a577d) on the host that has been failing to render this title at all, because it is exactly the hardware your capped_dynamic_slots was written for.

Environment

RTX 4070 SUPER (12 GB, 32-lane), driver 591.74, Windows 10.0.19045, Ryzen 7 7800X3D, 31 GB. Retail build 7952987A, Xbox Series X. Built with --features victory-gpu/diagnostics; D3D12Core.dll 1.620.2 beside the exe (your agility.rs covers the export).

What capped_dynamic_slots did here

Before: on main + the paging PR (#2121), the title reached 3,510 draws/frame and drew a black window — the host heap caps at 1,000,000, the title asks 1,245,184, and every split that keeps the title's whole either truncated 310,720 slots or cycled pages on every submission (title slot past the host heap ×310,720 in 90 s).

After your change, same machine, same title, same keypresses:

draws/frame fps picture
main + #2121 (paged) 3,510 0.1 black
full-build (yours) 2,646–6,085 2–5 correct

The opening caption card, the account/loading art, the world — all render with correct colour, lighting and text. I have not posted title content, but the difference is unambiguous: black window before, correct frame after.

Your comment explains why better than I could: slots past 393,215 are a ring of tables the title rewrites per draw, and a draw reaching them has its table rebuilt in a dynamic slot anyway, so host slots kept for that ring stood unused while the dynamic range ran out. That reasoning was invisible to us from the logs — we spent a day trying to fit 1,245,184 into 1,000,000 when 393,215 was always enough. Thank you for writing it down.

VICTORY_MEMORY_CARD_MB: measured, and it matters a lot here

With VICTORY_MODE=1280x720 and keys advanced, sweeping the by-address card budget on this 12 GB card:

VICTORY_MEMORY_CARD_MB fps reached stability VRAM peak note
4096 (default) 2 steady 8.8 GB system RAM exhausted in ~2 min
1024 5 steady 8.8 GB best balance here
768 3–11 swinging 10.6 GB draws swing 546↔6173 with it
512 2–11 swinging 10.6 GB same

At 4096 the by-address copies do not fit the card alongside the world's textures and spill into system memory, which is what kills the run. At 1024 the picture is steady at 5 fps with 3 GB of VRAM and 3.4 GB of RAM left. Below that the peak fps goes up (11) but draws/frame swings between 546 and 6173 from second to second — my read is textures being evicted and re-uploaded as VRAM tightens, which costs more in feel than the extra peak fps gives back.

Not measured: whether a 16 GB card wants a different value (your card_limits thresholds suggest it will), and whether the swing at 768/512 is eviction rather than something else — I have not instrumented it, only observed the correlation with VRAM.

Still failing on this host, in case it is useful to you

  • System RAM still drains from ~16 GB free to under 2 GB within a few minutes of reaching the world at every setting above. If you know what allocates per frame in the world there, that is the thing keeping this from running longer than a couple of minutes here.
  • 143 compute pipelines are refused with E_INVALIDARG on this card in one of my runs (not reproduced with yours; noted only in case it is driver-specific).

Coda

You wrote "Anyone is free to use what I've done; I'm just having fun and maybe helping people at the same time." It helped: this is the first time this title has drawn a correct frame on this machine. Log lines, counts and timings only; no title content, assets or shader bytes.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6621274848 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3081). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-26T06:55:49Z. --- ## Your 15 lines turned a black screen into a picture on an NVIDIA card — plus a measured sweet spot for `VICTORY_MEMORY_CARD_MB` Reporting a run of `full-build` (`e2a577d`) on the host that has been failing to render this title at all, because it is exactly the hardware your `capped_dynamic_slots` was written for. ### Environment RTX 4070 SUPER (12 GB, 32-lane), driver 591.74, **Windows 10.0.19045**, Ryzen 7 7800X3D, 31 GB. Retail build `7952987A`, Xbox Series X. Built with `--features victory-gpu/diagnostics`; `D3D12Core.dll` 1.620.2 beside the exe (your `agility.rs` covers the export). ### What `capped_dynamic_slots` did here Before: on `main` + the paging PR (#2121), the title reached 3,510 draws/frame and drew a **black window** — the host heap caps at 1,000,000, the title asks 1,245,184, and every split that keeps the title's whole either truncated 310,720 slots or cycled pages on every submission (`title slot past the host heap` ×310,720 in 90 s). After your change, same machine, same title, same keypresses: | | draws/frame | fps | picture | |---|---:|---:|---| | `main` + #2121 (paged) | 3,510 | 0.1 | black | | `full-build` (yours) | 2,646–6,085 | 2–5 | **correct** | The opening caption card, the account/loading art, the world — all render with correct colour, lighting and text. I have not posted title content, but the difference is unambiguous: black window before, correct frame after. Your comment explains why better than I could: slots past 393,215 are a ring of tables the title rewrites per draw, and a draw reaching them has its table rebuilt in a dynamic slot anyway, so host slots kept for that ring stood unused while the dynamic range ran out. **That reasoning was invisible to us from the logs** — we spent a day trying to fit 1,245,184 into 1,000,000 when 393,215 was always enough. Thank you for writing it down. ### `VICTORY_MEMORY_CARD_MB`: measured, and it matters a lot here With `VICTORY_MODE=1280x720` and keys advanced, sweeping the by-address card budget on this 12 GB card: | `VICTORY_MEMORY_CARD_MB` | fps reached | stability | VRAM peak | note | |---:|---|---|---:|---| | 4096 (default) | 2 | steady | 8.8 GB | system RAM exhausted in ~2 min | | **1024** | **5** | **steady** | **8.8 GB** | **best balance here** | | 768 | 3–11 | swinging | 10.6 GB | draws swing 546↔6173 with it | | 512 | 2–11 | swinging | 10.6 GB | same | At 4096 the by-address copies do not fit the card alongside the world's textures and spill into system memory, which is what kills the run. At 1024 the picture is steady at 5 fps with 3 GB of VRAM and 3.4 GB of RAM left. Below that the peak fps goes up (11) but `draws/frame` swings between 546 and 6173 from second to second — my read is textures being evicted and re-uploaded as VRAM tightens, which costs more in feel than the extra peak fps gives back. **Not measured:** whether a 16 GB card wants a different value (your `card_limits` thresholds suggest it will), and whether the swing at 768/512 is eviction rather than something else — I have not instrumented it, only observed the correlation with VRAM. ### Still failing on this host, in case it is useful to you - System RAM still drains from ~16 GB free to under 2 GB within a few minutes of reaching the world at every setting above. If you know what allocates per frame in the world there, that is the thing keeping this from running longer than a couple of minutes here. - 143 compute pipelines are refused with `E_INVALIDARG` on this card in one of my runs (not reproduced with yours; noted only in case it is driver-specific). ### Coda You wrote "Anyone is free to use what I've done; I'm just having fun and maybe helping people at the same time." It helped: this is the first time this title has drawn a correct frame on this machine. Log lines, counts and timings only; no title content, assets or shader bytes.
wingsc84-sketch commented 2026-11-26 09:06:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by wingsc84-sketch on 2026-11-26T08:32:34Z.


hey you wrote me this message on a fork i would like to say that yes im on windows 11 not 10
Ryzen 7 9800X3D, RTX 5070 12 GB (driver 617.42), 32 GB RAM, Windows 11 26H2 (build 26300.10075). Loads fine, all imports bind, then about 1s in an int3 (0x80000003) at victory-image-b99f876b…dll+0x1330a44, unhandled. Same crash on series-s and series-x, and with VICTORY_MEMORY_CARD_MB=1024 at 720p. It always comes right after the "pipeline creation method not implemented" warnings for slot=0x218 calls=64 and calls=128. GPU memory is nowhere near full and there's no device-lost error. The log also says "host view heap capped at 1000000 … count=1245184".

<!-- greyfinch-sync:Marvisak/VIctory:comment:7186720008 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3081#issuecomment-7186720008). Originally posted by [wingsc84-sketch](https://github.com/wingsc84-sketch) on 2026-11-26T08:32:34Z. --- hey you wrote me this message on a fork i would like to say that yes im on windows 11 not 10 Ryzen 7 9800X3D, RTX 5070 12 GB (driver 617.42), 32 GB RAM, Windows 11 26H2 (build 26300.10075). Loads fine, all imports bind, then about 1s in an int3 (0x80000003) at victory-image-b99f876b…dll+0x1330a44, unhandled. Same crash on series-s and series-x, and with VICTORY_MEMORY_CARD_MB=1024 at 720p. It always comes right after the "pipeline creation method not implemented" warnings for slot=0x218 calls=64 and calls=128. GPU memory is nowhere near full and there's no device-lost error. The log also says "host view heap capped at 1000000 … count=1245184".
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#3079
No description provided.