[NVIDIA GPU] Host view heap capped at 1,000,000 (0x80070057) + black screen / host texture & PSO refusals #1626

Open
opened 2026-11-24 19:57:31 +00:00 by mikebigboots-web · 11 comments
mikebigboots-web commented 2026-11-24 19:57:31 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by mikebigboots-web on 2026-11-24T19:57:31Z.


Environment

  • OS: Windows 10/11 x64 (AtlasOS)
  • GPU: NVIDIA (D3D12 Mesh Shaders supported)
  • Title Build: 7952987A (Xbox Series X)
  • VIctory Build: diag profile (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)

Summary of Behavior

  • Boot, audio (APU/DSP), menus, and loading into story000 work without crashing or causing a TDR/driver reset on NVIDIA (~0.3–1.4 FPS in world).
  • However, the window remains completely black (display triggers HDR even though VIctory logs HDR mode: disabled (SDR presentation)).

Key NVIDIA / D3D12 Issues Found in Logs

1. CBV/SRV/UAV Descriptor Heap Limit (NVIDIA 1,000,000 Tier 1/2 limit)

NVIDIA drivers cap shader-visible CBV_SRV_UAV heaps at 1,000,000 descriptors:

WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184

Once world rendering starts (frame 1756+), this leads to descriptor exhaustion and thousands of dropped draws:

WARN victory_gpu::descriptor::host: no free dynamic descriptor slots: a table is not made n=6
WARN victory_gpu::draw: a draw or dispatch dropped: no dynamic slots for its tables dropped=8192

2. Host Texture & View Creation Failures (0x80070057)

WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 86, sample_count: 1, sample_quality: 0, layout: 0, flags: 5 }
WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 }
WARN victory_gpu::descriptor::host: view the host does not allow unordered=true format=53 flags=2

3. Compute Pipelines Refused by NVIDIA Driver (0x80070057)

Multiple translated compute shaders are refused at PSO creation on NVIDIA (13dfdd3b1136e407, 88994c3496045f51, 02384a60fda6f2d0, 339d476c267c03c7, 42683eebec081520, 82849f7a614208eb, 9afd549c4f530901, 2fa2f94f560faf39, a25ed0e3d4d521ba, fa0c0819dc86ca60, 9e096a1111c6faaa, 00bcbbf278ee3d9d, d3e5b737ea7cc150, 6336cb3769fc53d7, 5b2ce592c3a5dd09, 0e90505eff274aa4, 1f1fbd86759b3da2, e4a9f58e3acfcf7b, b96880482a17f632, c4183d3cbee28e8e, 2f03a2df10503cef, 369cbe906ea72764, 196bf6114ff3a131, 660814153af43185, df3cf10a274e26ca, f8f50ab85e7b10bb, c9da71da40af2e28, a1f6cdf8874960a9, ce2378e5e8711aad, 754e38ca2378a43e).

(Note: Windows Graphics Tools / D3D12 debug layer wasn't installed during this run (0x887A002D); I can install it and capture exact D3D12 debug validation messages for these 0x80070057 errors if helpful!)

<!-- greyfinch-sync:Marvisak/VIctory:issue:6590229551 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627). Originally posted by [mikebigboots-web](https://github.com/mikebigboots-web) on 2026-11-24T19:57:31Z. --- ### Environment - **OS:** Windows 10/11 x64 (AtlasOS) - **GPU:** NVIDIA (D3D12 Mesh Shaders supported) - **Title Build:** `7952987A` (Xbox Series X) - **VIctory Build:** `diag` profile (`b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`) ### Summary of Behavior - Boot, audio (APU/DSP), menus, and loading into `story000` work without crashing or causing a TDR/driver reset on NVIDIA (~0.3–1.4 FPS in world). - However, the window remains completely black (display triggers HDR even though VIctory logs `HDR mode: disabled (SDR presentation)`). ### Key NVIDIA / D3D12 Issues Found in Logs #### 1. CBV/SRV/UAV Descriptor Heap Limit (NVIDIA 1,000,000 Tier 1/2 limit) NVIDIA drivers cap shader-visible `CBV_SRV_UAV` heaps at 1,000,000 descriptors: ```text WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184 ``` Once world rendering starts (frame 1756+), this leads to descriptor exhaustion and thousands of dropped draws: ```text WARN victory_gpu::descriptor::host: no free dynamic descriptor slots: a table is not made n=6 WARN victory_gpu::draw: a draw or dispatch dropped: no dynamic slots for its tables dropped=8192 ``` #### 2. Host Texture & View Creation Failures (`0x80070057`) ```text WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 86, sample_count: 1, sample_quality: 0, layout: 0, flags: 5 } WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 } WARN victory_gpu::descriptor::host: view the host does not allow unordered=true format=53 flags=2 ``` #### 3. Compute Pipelines Refused by NVIDIA Driver (`0x80070057`) Multiple translated compute shaders are refused at PSO creation on NVIDIA (`13dfdd3b1136e407`, `88994c3496045f51`, `02384a60fda6f2d0`, `339d476c267c03c7`, `42683eebec081520`, `82849f7a614208eb`, `9afd549c4f530901`, `2fa2f94f560faf39`, `a25ed0e3d4d521ba`, `fa0c0819dc86ca60`, `9e096a1111c6faaa`, `00bcbbf278ee3d9d`, `d3e5b737ea7cc150`, `6336cb3769fc53d7`, `5b2ce592c3a5dd09`, `0e90505eff274aa4`, `1f1fbd86759b3da2`, `e4a9f58e3acfcf7b`, `b96880482a17f632`, `c4183d3cbee28e8e`, `2f03a2df10503cef`, `369cbe906ea72764`, `196bf6114ff3a131`, `660814153af43185`, `df3cf10a274e26ca`, `f8f50ab85e7b10bb`, `c9da71da40af2e28`, `a1f6cdf8874960a9`, `ce2378e5e8711aad`, `754e38ca2378a43e`). *(Note: Windows Graphics Tools / D3D12 debug layer wasn't installed during this run (`0x887A002D`); I can install it and capture exact D3D12 debug validation messages for these `0x80070057` errors if helpful!)*
mikebigboots-web commented 2026-11-24 20:03:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by mikebigboots-web on 2026-11-24T20:03:07Z.


Update: Exact GPU Hang (0x887A0006) Breadcrumb & Command Dump

I captured a follow-up run on the NVIDIA GPU that reproduced an actual GPU device removal/hang (0x887A0006) at frame 1769 when rendering the world (story000).

Failure Summary

  • Error: host GPU device removed after a submission of 32 lists — The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006)
  • Exact Stopping Point: List 12 of 32, command 265 of 267 (op 42), between barriers 264..266.
  • Failing Pipeline: mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]
  • Likely Root Cause: Due to the NVIDIA 1,000,000 CBV_SRV_UAV heap cap (host view heap capped at 1000000), dynamic descriptor slots run out (no free dynamic descriptor slots: a table is not made n=254), leaving u8, u9, and u10 pointing to null heap entries right before executing the mesh draw.

Exact Breadcrumb & Command State

a list stopped at command 265 of 267 (op 42), commands 264..266 between its barriers:
command 265 (op 42): mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]
  04b9be3756e8f41c: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u13=0x0 [heap 0: Shader(0, Some([42, 2, 5768, 0, 0, 0, 0, 0, 0, 0]))] u14=0x349a190 root3=0xb2fbeef40 host Some((0x4459eef40, 0x110c0))
  1af4a50c7fb40c97: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u14=0x349a190

Additional Shader Translation Warnings Observed in World (Frame 1766–1769)

  • image_gather4_l is not supported (fc5e66f8f873d3bb, 0452fc2d2e2fc4c3, 4fb416369fc50b6e, 9f017d9011377efa, 87bf9e3f2bf2f052, 764ca63daec9c616)
  • image_sample_d_cl is not supported (ee41ebc3eb3fbbdc, 2deec721a63fe8a5, 7bdefdfde461f6e3)
  • barycentrics read directly is not supported (2d0cace65bc05bb2, 98bd9f9ae5f9c7e3)
  • a packed input half no element holds is not supported (a223e485dd8247a3)
  • an address in an SGPR that is no root parameter is not supported (several compute shaders including 3cea4534bbc15632, f6e47efa50226beb, 3b90165a77d95cdf, etc.)
<!-- greyfinch-sync:Marvisak/VIctory:comment:7142972449 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7142972449). Originally posted by [mikebigboots-web](https://github.com/mikebigboots-web) on 2026-11-24T20:03:07Z. --- ### Update: Exact GPU Hang (`0x887A0006`) Breadcrumb & Command Dump I captured a follow-up run on the NVIDIA GPU that reproduced an actual GPU device removal/hang (`0x887A0006`) at **frame 1769** when rendering the world (`story000`). #### Failure Summary - **Error:** `host GPU device removed after a submission of 32 lists` — `The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006)` - **Exact Stopping Point:** List `12` of `32`, **command 265 of 267 (op 42)**, between barriers `264..266`. - **Failing Pipeline:** `mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]` - **Likely Root Cause:** Due to the NVIDIA 1,000,000 `CBV_SRV_UAV` heap cap (`host view heap capped at 1000000`), dynamic descriptor slots run out (`no free dynamic descriptor slots: a table is not made n=254`), leaving `u8`, `u9`, and `u10` pointing to `null` heap entries right before executing the mesh draw. #### Exact Breadcrumb & Command State ```text a list stopped at command 265 of 267 (op 42), commands 264..266 between its barriers: command 265 (op 42): mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97] 04b9be3756e8f41c: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u13=0x0 [heap 0: Shader(0, Some([42, 2, 5768, 0, 0, 0, 0, 0, 0, 0]))] u14=0x349a190 root3=0xb2fbeef40 host Some((0x4459eef40, 0x110c0)) 1af4a50c7fb40c97: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u14=0x349a190 ``` #### Additional Shader Translation Warnings Observed in World (Frame 1766–1769) - `image_gather4_l is not supported` (`fc5e66f8f873d3bb`, `0452fc2d2e2fc4c3`, `4fb416369fc50b6e`, `9f017d9011377efa`, `87bf9e3f2bf2f052`, `764ca63daec9c616`) - `image_sample_d_cl is not supported` (`ee41ebc3eb3fbbdc`, `2deec721a63fe8a5`, `7bdefdfde461f6e3`) - `barycentrics read directly is not supported` (`2d0cace65bc05bb2`, `98bd9f9ae5f9c7e3`) - `a packed input half no element holds is not supported` (`a223e485dd8247a3`) - `an address in an SGPR that is no root parameter is not supported` (several compute shaders including `3cea4534bbc15632`, `f6e47efa50226beb`, `3b90165a77d95cdf`, etc.)
EduAzevedo commented 2026-11-24 21:28:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by EduAzevedo on 2026-11-24T21:12:42Z.


The same NVIDIA symptoms show up here: RTX 2070 SUPER (Turing), driver 610.88, Windows 11, retail 1.0.2.1 dump. Some of them already have open PRs:

  • Heap capped at 1,000,000 and dynamic slots running out. #747 reserves 2^18 dynamic descriptors inside the capped heap. With it I measured 0 slot drops in the world on this card. The AnyXboxX fork of VIctory ships the same idea as VICTORY_CAPPED_DYNAMIC=262144.
  • What keeps the world up on Turing: #493 + #189 + #206 on top of main, run with VICTORY_SHADER_LOOP_LIMIT=32. In today's run with that combination there was no device removal.
  • "an address in an SGPR that is no root parameter". In an offline victory translate --list over the 26,148 programs of my dump, main ffe310e gives this refusal for 247 programs: 195 geometry and 52 compute, most of them in XboxBvhBuilder.dll. #489 (which carries #302, spill-table arguments) clears 50 of the 52 compute ones. They then stop at later refusals, so none is emitted yet. In my own run into the world on main + #493 + #189 + #206, 34 of the 639 shaders refused in game had this reason, all compute.
  • Today's run (main ffe310e + #493 + #189 + #206 + the 2^18 reserve, VICTORY_SHADER_LOOP_LIMIT=32, about 4 minutes, 38 one-second samples):
    • In the world: 0.3 fps, about 3.5 s per frame.
    • Where the frame time goes: about 2.5 s of each frame copying back to the title, and 0.25–0.5 s on the GPU. The copy-back timer starts after the GPU wait (host.rs), so it is CPU time copying shader writes back, not GPU time.
    • Errors: no device removal, no no dynamic slots and no a table is not made.
    • Draws dropped: thousands per frame without a host pipeline, from 639 shaders that don't translate, plus 1,000–2,000 indirect.
    • Your 0x80070057 texture error, reproduced: I hit it twice, both on 2560x1440 textures (dimension 3, formats 86 and 115).

If you can run those four PRs merged on top of main, it would help to know whether your 0x80070057 PSO refusals for about 30 compute pipelines remain. That's the one part I have no measurement for.

AI-assisted write-up; the numbers are from my own runs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144626959 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7144626959). Originally posted by [EduAzevedo](https://github.com/EduAzevedo) on 2026-11-24T21:12:42Z. --- The same NVIDIA symptoms show up here: RTX 2070 SUPER (Turing), driver 610.88, Windows 11, retail 1.0.2.1 dump. Some of them already have open PRs: - **Heap capped at 1,000,000 and dynamic slots running out.** #747 reserves 2^18 dynamic descriptors inside the capped heap. With it I measured **0 slot drops** in the world on this card. The AnyXboxX fork of VIctory ships the same idea as `VICTORY_CAPPED_DYNAMIC=262144`. - **What keeps the world up on Turing:** #493 + #189 + #206 on top of main, run with `VICTORY_SHADER_LOOP_LIMIT=32`. In today's run with that combination there was no device removal. - **"an address in an SGPR that is no root parameter".** In an offline `victory translate --list` over the 26,148 programs of my dump, main `ffe310e` gives this refusal for 247 programs: 195 geometry and 52 compute, most of them in `XboxBvhBuilder.dll`. #489 (which carries #302, spill-table arguments) clears 50 of the 52 compute ones. They then stop at later refusals, so none is emitted yet. In my own run into the world on main + #493 + #189 + #206, 34 of the 639 shaders refused in game had this reason, all compute. - **Today's run (main `ffe310e` + #493 + #189 + #206 + the 2^18 reserve, `VICTORY_SHADER_LOOP_LIMIT=32`, about 4 minutes, 38 one-second samples):** - **In the world:** 0.3 fps, about 3.5 s per frame. - **Where the frame time goes:** about 2.5 s of each frame copying back to the title, and 0.25–0.5 s on the GPU. The copy-back timer starts after the GPU wait (`host.rs`), so it is CPU time copying shader writes back, not GPU time. - **Errors:** no device removal, no `no dynamic slots` and no `a table is not made`. - **Draws dropped:** thousands per frame without a host pipeline, from 639 shaders that don't translate, plus 1,000–2,000 indirect. - **Your `0x80070057` texture error, reproduced:** I hit it twice, both on 2560x1440 textures (dimension 3, formats 86 and 115). If you can run those four PRs merged on top of main, it would help to know whether your `0x80070057` PSO refusals for about 30 compute pipelines remain. That's the one part I have no measurement for. AI-assisted write-up; the numbers are from my own runs.
BaggyALPHA commented 2026-11-24 23:05:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T22:23:33Z.


Independent startup check on an RTX 3080 12 GiB, driver 621.24, on main at the mesh-cache update, with #1702 for scripted input. The Series S test also used #211 for its UI plane. Four runs spanning Series X and Series S and cold and warm VIctory caches ended in early device removal, about 41–43 seconds after the first trace event. They reached at most two draws per frame in the reported samples, before the world workload.

All four logged the shader-visible view-heap cap and 310,720 “title slot past the host heap” warnings during startup. In a fifth run, I kept Series X and a cold cache and suppressed only the descriptor warning target. The device was still removed, about nine seconds into the trace. This rules out warning output as a necessary condition for the failure on this setup. It does not isolate which GPU operation caused removal.

AI-assisted (Codex). Aggregate observations only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7146172200 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7146172200). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-24T22:23:33Z. --- Independent startup check on an RTX 3080 12 GiB, driver 621.24, on main at the mesh-cache update, with #1702 for scripted input. The Series S test also used #211 for its UI plane. Four runs spanning Series X and Series S and cold and warm VIctory caches ended in early device removal, about 41–43 seconds after the first trace event. They reached at most two draws per frame in the reported samples, before the world workload. All four logged the shader-visible view-heap cap and 310,720 “title slot past the host heap” warnings during startup. In a fifth run, I kept Series X and a cold cache and suppressed only the descriptor warning target. The device was still removed, about nine seconds into the trace. This rules out warning output as a necessary condition for the failure on this setup. It does not isolate which GPU operation caused removal. AI-assisted (Codex). Aggregate observations only.
Marvisak commented 2026-11-25 13:03:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:50:48Z.


Automated triage for the maintainers.

Same setup and symptoms as #1620, with a DRED stop added: at frame 1769 a mesh draw with u8–u10 on null heap entries ends in 0x887A0006. Where each part is tracked:

  • The view heap does not fit NVIDIA's 1,000,000 cap (host view heap capped at 1000000 ... count=1245184): #1760, the oldest complete report, also seen in #1808 and #1851. main (63bcca4) still falls back in HostHeap::new (crates/victory-gpu/src/descriptor/host.rs) to 1,000,000 descriptors, of which 934,464 hold title views; the 310,720 title slots above that are never mirrored and read as null. An RTX 3080 run confirms the title indexes every one of them during start-up.
  • Open PRs measured in the title on that RTX 3080 (45 s start-up runs on main 63bcca4): #1751 leaves the partition exactly as main (310,720 slots outside the heap), so it does not address this report. #2628 keeps the full dynamic range and clamps the 507,331 slots it leaves out, so the access is defined but fewer title slots fit. #2121 pages all 1,245,184 title slots into the 1,000,000 the host allows, so none falls outside. Whether any of them draws correctly was not measured, and no run reached the world. #2937 only makes the two victory-gpu heap tests skip on a capped host. The two-heap split proposed earlier belongs on #1760, where the alternatives are compared.
  • Dynamic slots running out under the cap: #747.
  • World hang on NVIDIA: #71.
  • The two 2560×1440 textures (formats 86 and 115): #797 and #1600. Open PRs #89 and #1787.
  • Compute pipelines refused with 0x80070057: wave64 programs on a 32-lane host, tracked in #2220 and #71.

@mikebigboots-web, your own GPU model, driver, Windows build and VIctory commit are still welcome, but they are no longer needed to place this report.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7162938157 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7162938157). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T12:50:48Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-26T04:03:24Z at=2026-11-26T07:02:00Z --> Automated triage for the maintainers. Same setup and symptoms as #1620, with a DRED stop added: at frame 1769 a mesh draw with `u8`–`u10` on null heap entries ends in `0x887A0006`. Where each part is tracked: - **The view heap does not fit NVIDIA's 1,000,000 cap** (`host view heap capped at 1000000 ... count=1245184`): #1760, the oldest complete report, also seen in #1808 and #1851. `main` (63bcca4) still falls back in `HostHeap::new` (`crates/victory-gpu/src/descriptor/host.rs`) to 1,000,000 descriptors, of which 934,464 hold title views; the 310,720 title slots above that are never mirrored and read as null. An RTX 3080 run confirms the title indexes every one of them during start-up. - **Open PRs measured in the title on that RTX 3080** (45 s start-up runs on `main` 63bcca4): #1751 leaves the partition exactly as `main` (310,720 slots outside the heap), so it does not address this report. #2628 keeps the full dynamic range and clamps the 507,331 slots it leaves out, so the access is defined but fewer title slots fit. #2121 pages all 1,245,184 title slots into the 1,000,000 the host allows, so none falls outside. Whether any of them draws correctly was not measured, and no run reached the world. #2937 only makes the two `victory-gpu` heap tests skip on a capped host. The two-heap split proposed earlier belongs on #1760, where the alternatives are compared. - **Dynamic slots running out under the cap:** #747. - **World hang on NVIDIA:** #71. - **The two 2560×1440 textures (formats 86 and 115):** #797 and #1600. Open PRs #89 and #1787. - **Compute pipelines refused with `0x80070057`:** wave64 programs on a 32-lane host, tracked in #2220 and #71. @mikebigboots-web, your own GPU model, driver, Windows build and VIctory commit are still welcome, but they are no longer needed to place this report. --- _Generated by [Claude Code](https://claude.ai/code)_
bittertea0323 commented 2026-11-25 13:03:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T12:58:34Z.


The black screen is the view heap cap, and here is the shape of a fix

Cross-posting what we measured on our tree today, because #1627 is the right issue for it and we now have numbers plus a concrete direction rather than a guess.

What we see

With main 940d32f plus six lowering fixes and the Agility opt-in (that part is in #2376: without it every heap-indexed root signature is refused on Windows 10 and the title dies in two seconds), the title runs and presents:

frame=165  draws=192  dispatches=64
33.0 fps, 30.3 ms/frame

The window is there, the frame rate is real, and the picture is completely black — same symptom #1627 reports. Presenting works, so this is not a missing swapchain or a lost device.

The cap, with the exact numbers

HEAP_VIEWS is 1 << 21 (2,097,152) — what the generated shaders clamp their indices below. PORTABLE_VIEWS is 1,000,000 — what an NVIDIA CBV/SRV/UAV heap accepts. HostHeap::new therefore falls back:

Err(e) if count + MIN_DYNAMIC > PORTABLE_VIEWS => {
    tracing::warn!("host view heap capped at {PORTABLE_VIEWS}");
    (make(PORTABLE_VIEWS).ok()?, PORTABLE_VIEWS - MIN_DYNAMIC, MIN_DYNAMIC)
}

so the heap holds 1,000,000 descriptors and count becomes 934,464 (1,000,000 − MIN_DYNAMIC). The title keeps making views past that:

title slot past the host heap   index=1029688  count=934464

310,720 such lines in a 90-second run, and the highest index we saw is 1,029,688 — the title needs about 95,000 slots more than the fallback gives it, and about 30,000 more than the driver's hard cap allows in one heap.

mirror() returns None for those, so the slots stay null and whatever samples them is black. That is the visible symptom.

Two things that do not fix it (we tried them)

Raising the shader's clamp does not help. We set HEAP_VIEWS to 1,000,000 and then to 934,464 to line it up with the host, retranslating the whole corpus each time: the past the host heap count stayed at exactly 310,720. Those warnings come from mirror() on the CPU side, checking the title's own descriptor index against count — they are not about what the shader indexes at runtime. So the clamp is not the lever.

Lowering MIN_DYNAMIC alone cannot close the gap either: even at zero the heap tops out at 1,000,000, and the title wants 1,029,688.

The direction we think works

Two shader-visible heaps instead of one, with the title's linear index split across them:

  • heap A holds 0 .. A_CAP (up to the driver cap), heap B holds the rest;
  • the root signature gains a second descriptor, so the generated shader has two heap views;
  • heap_handle becomes idx < A_CAP ? createHandleFromHeap(t1, idx) : createHandleFromHeap(t2, idx - A_CAP), and the clamp becomes the sum of both capacities;
  • mirror() maps index to (heap, slot) instead of one flat arena.

The cost is in descriptor/host.rs (two heaps, the mapping), pipeline/host.rs (one more root descriptor, the second SetDescriptorHeaps entry), emit/shader.rs (heap_handle plus the constant), and a full retranslation of the 26,503 containers. That is why we did not attempt it tonight — it is a cross-layer change where a mistake shows up as a new black screen or a new removal, and hard to bisect.

Not measured

  • Whether 1,029,688 is the title's true maximum or just the highest we reached in 90 seconds; a longer run would tell.
  • Whether the two-heap split keeps createHandleFromHeap's dynamic indexing non-uniform across heaps (HLSL's ResourceDescriptorHeap is documented as one heap, which is why we would add an explicit second descriptor rather than try NonUniformResourceIndex over two).
  • Whether Windows 11 or an AMD host has the same cap; both may not need this at all.

If a maintainer has a better shape for the split — or knows that the title's highest descriptor index is bounded well below 934,464 on a full run — that would save the retranslation round-trip.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163114859 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7163114859). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-25T12:58:34Z. --- ## The black screen is the view heap cap, and here is the shape of a fix Cross-posting what we measured on our tree today, because #1627 is the right issue for it and we now have numbers plus a concrete direction rather than a guess. ### What we see With `main` `940d32f` plus six lowering fixes and the Agility opt-in (that part is in #2376: without it every heap-indexed root signature is refused on Windows 10 and the title dies in two seconds), the title runs and presents: ``` frame=165 draws=192 dispatches=64 33.0 fps, 30.3 ms/frame ``` The window is there, the frame rate is real, and the picture is **completely black** — same symptom #1627 reports. Presenting works, so this is not a missing swapchain or a lost device. ### The cap, with the exact numbers `HEAP_VIEWS` is `1 << 21` (2,097,152) — what the generated shaders clamp their indices below. `PORTABLE_VIEWS` is 1,000,000 — what an NVIDIA CBV/SRV/UAV heap accepts. `HostHeap::new` therefore falls back: ```rust Err(e) if count + MIN_DYNAMIC > PORTABLE_VIEWS => { tracing::warn!("host view heap capped at {PORTABLE_VIEWS}"); (make(PORTABLE_VIEWS).ok()?, PORTABLE_VIEWS - MIN_DYNAMIC, MIN_DYNAMIC) } ``` so the heap holds 1,000,000 descriptors and `count` becomes **934,464** (1,000,000 − `MIN_DYNAMIC`). The title keeps making views past that: ``` title slot past the host heap index=1029688 count=934464 ``` **310,720** such lines in a 90-second run, and the highest index we saw is **1,029,688** — the title needs about 95,000 slots more than the fallback gives it, and about 30,000 more than the driver's hard cap allows in one heap. `mirror()` returns `None` for those, so the slots stay null and whatever samples them is black. That is the visible symptom. ### Two things that do not fix it (we tried them) Raising the shader's clamp does not help. We set `HEAP_VIEWS` to 1,000,000 and then to 934,464 to line it up with the host, retranslating the whole corpus each time: the `past the host heap` count stayed at exactly 310,720. Those warnings come from `mirror()` on the **CPU** side, checking the title's own descriptor index against `count` — they are not about what the shader indexes at runtime. So the clamp is not the lever. Lowering `MIN_DYNAMIC` alone cannot close the gap either: even at zero the heap tops out at 1,000,000, and the title wants 1,029,688. ### The direction we think works Two shader-visible heaps instead of one, with the title's linear index split across them: - heap A holds `0 .. A_CAP` (up to the driver cap), heap B holds the rest; - the root signature gains a second descriptor, so the generated shader has two heap views; - `heap_handle` becomes `idx < A_CAP ? createHandleFromHeap(t1, idx) : createHandleFromHeap(t2, idx - A_CAP)`, and the clamp becomes the sum of both capacities; - `mirror()` maps `index` to `(heap, slot)` instead of one flat arena. The cost is in `descriptor/host.rs` (two heaps, the mapping), `pipeline/host.rs` (one more root descriptor, the second `SetDescriptorHeaps` entry), `emit/shader.rs` (`heap_handle` plus the constant), and a full retranslation of the 26,503 containers. That is why we did not attempt it tonight — it is a cross-layer change where a mistake shows up as a new black screen or a new removal, and hard to bisect. ### Not measured - Whether `1,029,688` is the title's true maximum or just the highest we reached in 90 seconds; a longer run would tell. - Whether the two-heap split keeps `createHandleFromHeap`'s dynamic indexing non-uniform across heaps (HLSL's `ResourceDescriptorHeap` is documented as one heap, which is why we would add an explicit second descriptor rather than try `NonUniformResourceIndex` over two). - Whether Windows 11 or an AMD host has the same cap; both may not need this at all. If a maintainer has a better shape for the split — or knows that the title's highest descriptor index is bounded well below 934,464 on a full run — that would save the retranslation round-trip.
bittertea0323 commented 2026-11-25 13:03:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T13:00:25Z.


Environment, as asked, all from this machine:

  • GPU: NVIDIA GeForce RTX 4070 SUPER (12 GB), 32-lane host
  • Driver: 591.74 (installed 2026-01-08, not updated today)
  • Windows: 10.0.19045 (Win10 22H2, UBR 3393)
  • CPU: AMD Ryzen 7 7800X3D, 31.2 GB
  • VIctory commit: 27a3045 on ry/upstream-base, which is 940d32f plus seven commits (the Agility opt-in among them — without it this title does not get past init on Windows 10, see #2376)

The debug-layer messages I cannot give you, and that is itself a data point: with d3d12SDKLayers.dll from Microsoft.Direct3D.D3D12 1.620.2 placed both in D3D12\ beside ictory.exe and directly beside it, D3D12GetDebugInterface returns

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163158369 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7163158369). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-25T13:00:25Z. --- Environment, as asked, all from this machine: - **GPU:** NVIDIA GeForce RTX 4070 SUPER (12 GB), 32-lane host - **Driver:** 591.74 (installed 2026-01-08, not updated today) - **Windows:** 10.0.19045 (Win10 22H2, UBR 3393) - **CPU:** AMD Ryzen 7 7800X3D, 31.2 GB - **VIctory commit:** 27a3045 on ry/upstream-base, which is 940d32f plus seven commits (the Agility opt-in among them — without it this title does not get past init on Windows 10, see #2376) **The debug-layer messages I cannot give you**, and that is itself a data point: with d3d12SDKLayers.dll from Microsoft.Direct3D.D3D12 1.620.2 placed both in D3D12\ beside ictory.exe and directly beside it, D3D12GetDebugInterface returns
bittertea0323 commented 2026-11-25 14:07:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T13:17:01Z.


Correction to the number I gave above: the title's highest descriptor index is 1,245,183, not 1,029,688. The earlier figure came from a 60-second run that had not finished growing; at 90 seconds it settles, and it is stable across runs:

20:45:20  run  hits=310720  highest=1245183
20:46:22  run  hits=310720  highest=1245183
20:49:46  run  hits=310720  highest=1245183
20:53:13  run  hits=310720  highest=1245183
20:45:41  run  hits=95225   highest=1029688   (60 s, still climbing)

And the arithmetic closes exactly: 1,245,183 - 934,464 = 310,719, against 310,720 hits — one per index in the range, so the title walks its descriptors sequentially from 0 upward and simply runs past where the heap stops. Nothing is sparse or scattered.

That makes the sharding estimate concrete: the second heap has to hold 310,720 slots, comfortably under the 1,000,000 cap, so a two-segment split covers the whole range with room to spare. The mapping is a single comparison on the generated shader's side, not a remapping table.

Still unmeasured: whether the index keeps growing past 1,245,183 on a much longer run (90 seconds is where we stopped, and the count was identical in every run at that length), and whether the growth is per-level or per-session — if a second run in the same process pushed further, the second heap's size would need headroom rather than exactly 310,720.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163553224 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7163553224). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-25T13:17:01Z. --- Correction to the number I gave above: **the title's highest descriptor index is 1,245,183, not 1,029,688.** The earlier figure came from a 60-second run that had not finished growing; at 90 seconds it settles, and it is stable across runs: ``` 20:45:20 run hits=310720 highest=1245183 20:46:22 run hits=310720 highest=1245183 20:49:46 run hits=310720 highest=1245183 20:53:13 run hits=310720 highest=1245183 20:45:41 run hits=95225 highest=1029688 (60 s, still climbing) ``` And the arithmetic closes exactly: `1,245,183 - 934,464 = 310,719`, against 310,720 hits — one per index in the range, so the title walks its descriptors **sequentially** from 0 upward and simply runs past where the heap stops. Nothing is sparse or scattered. That makes the sharding estimate concrete: the second heap has to hold **310,720** slots, comfortably under the 1,000,000 cap, so a two-segment split covers the whole range with room to spare. The mapping is a single comparison on the generated shader's side, not a remapping table. Still unmeasured: whether the index keeps growing past 1,245,183 on a much longer run (90 seconds is where we stopped, and the count was identical in every run at that length), and whether the growth is per-level or per-session — if a second run in the same process pushed further, the second heap's size would need headroom rather than exactly 310,720.
bittertea0323 commented 2026-11-25 14:07:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T13:25:32Z.


The number that settles it — the title asks for 1,245,184 descriptors, and that is its own declaration, not an observed maximum:

WARN victory_gpu::descriptor::host: host view heap capped at 1000000
     error=E_INVALIDARG (0x80070057)  count=1245184

So the chain is:

title's NumDescriptors      1,245,184
+ DYNAMIC (2^18)            1,507,328   -> E_INVALIDARG (over the 1,000,000 cap)
+ MIN_DYNAMIC (2^16)        1,310,720   -> E_INVALIDARG
fall back to PORTABLE_VIEWS 1,000,000   -> succeeds, but count = 1,000,000 - 65,536 = 934,464
short of the title by            245,184
short of its own count by        310,720

This also explains why MIN_DYNAMIC looked like the lever and is not: view heap aside, even the MIN_DYNAMIC variant asks the driver for 1,310,720 in one heap, which it will never grant. No arrangement of a single heap reaches 1,245,184 on this GPU. The cap is on the heap, not on our arithmetic.

The sharding parameters are therefore concrete rather than estimated: heap A up to 1,000,000, heap B for the remaining 245,184 — 24% of the cap, no pressure at all. The split point can even be the current 934,464 so the existing fallback path keeps working for everything below it.

Worth noting for anyone reading the log: count=934464 and count=1245184 in the two warnings are not contradictory — the first is what the host ended up with, the second is what the title asked for. The 310,720 hits are the difference between the title's index walk and the host's capacity; the 245,184 is the difference between the title's declaration and the driver's cap.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163758037 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7163758037). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-25T13:25:32Z. --- The number that settles it — **the title asks for 1,245,184 descriptors, and that is its own declaration, not an observed maximum**: ``` WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=E_INVALIDARG (0x80070057) count=1245184 ``` So the chain is: ``` title's NumDescriptors 1,245,184 + DYNAMIC (2^18) 1,507,328 -> E_INVALIDARG (over the 1,000,000 cap) + MIN_DYNAMIC (2^16) 1,310,720 -> E_INVALIDARG fall back to PORTABLE_VIEWS 1,000,000 -> succeeds, but count = 1,000,000 - 65,536 = 934,464 short of the title by 245,184 short of its own count by 310,720 ``` This also explains why MIN_DYNAMIC looked like the lever and is not: view heap aside, even the MIN_DYNAMIC variant asks the driver for 1,310,720 in one heap, which it will never grant. **No arrangement of a single heap reaches 1,245,184 on this GPU.** The cap is on the heap, not on our arithmetic. The sharding parameters are therefore concrete rather than estimated: **heap A up to 1,000,000, heap B for the remaining 245,184** — 24% of the cap, no pressure at all. The split point can even be the current 934,464 so the existing fallback path keeps working for everything below it. Worth noting for anyone reading the log: count=934464 and count=1245184 in the two warnings are not contradictory — the first is what the host ended up with, the second is what the title asked for. The 310,720 hits are the difference between the title's index walk and the host's capacity; the 245,184 is the difference between the title's declaration and the driver's cap.
BaggyALPHA commented 2026-11-26 04:06:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-26T03:28:42Z.


Measured the open pull requests for this on a host that reproduces it: three reach an identical heap on this card, and they are 1, 9 and 14 files. The two red tests are a poor way to tell them apart, because every green row changes them.

FIND-9 in the coordination thread asked for someone with such a GPU to check. RTX 3080 (Ampere) / Windows 11, every row merged onto the same main 63bcca4, each built in a build cache of its own, cargo test -p victory-gpu --lib --no-fail-fast. Every row run twice with identical results. Alongside the suite I probed what heap the host actually ends up with, by printing NumDescriptors and HostHeap::dynamic from a temporary test (reverted afterwards), because that is the thing these pull requests change and the suite does not report it.

row host view heap dynamic range victory-gpu --lib the two tests size
main 63bcca4 65,540 65,536 229 passed / 2 failed both fail —
#1751 1,000,000 262,144 231 / 0 pass +27/-4, 1 file
#2628 1,000,000 262,144 233 / 0 pass +243/-128, 9 files
#2121 1,000,000 262,144 241 / 0 pass +1688/-75, 14 files
#2937 65,540 65,536 231 / 0 skip +28/-3, 2 files
#2896 65,540 65,536 231 passed / 2 failed both fail +39/-5, 1 file
#1779 / #2185 / #2475 — — — — conflict with main

DYNAMIC is 262,144, MIN_DYNAMIC 65,536 and PORTABLE_VIEWS 1,000,000, so the baseline's 65,540 is count + MIN_DYNAMIC: on this card main falls past both heap attempts to the smallest range. #1751's added tier asks for max(count + DYNAMIC, PORTABLE_VIEWS) = 1,000,000, which is exactly this driver's cap, so it is granted and the full dynamic range comes back. The reason for wanting that range is #1751's own, not mine: its comment cites #59 for the smaller one running out in the world. I did not reproduce that — #59 discusses a dynamic-slot overrun on an RX 9070 XT with a different DYNAMIC than main has today — so treat the motivation as that pull request's claim and the heap numbers below as mine.

The part I nearly got wrong, and the reason the test counts above should not decide this. Every row that is green is green partly because it changed the two tests. #1751 makes the old assertion conditional on the device actually accepting a HEAP_VIEWS heap and adds assert_eq!(heap.dynamic, DYNAMIC); #2628 drops that assertion and re-expresses "past the dynamic slots" against views.pairs_start(); #2121 relaxes it to a disjunction; #2937 skips both with a line naming the cap. That is not evasion in any of them — the tests encode a premise ("the host took a heap of HEAP_VIEWS") that is simply false on this hardware, so anything that makes them meaningful here must touch them. It does mean "makes the tests pass" is nearly uninformative, and I would have published a misleading table if I had stopped at the counts.

What the probe does separate: #1751, #2628 and #2121 produce the same heap and the same dynamic range on this card, while #2937 and #2896 leave it at the floor. So on the measurable outcome the one-file change matches the two large ones.

What this does not say. Nothing about the black screen in this issue, the world, or the framerate — these are synthetic unit tests and no title was run. The larger pull requests also do things this cannot evaluate: #2628 clamps shader heap indices from the first shader and gives lower a limit, #2121 pages the heap. A shader indexing past 1,000,000 is still the documented shortcut in HostHeap::new on all three, so if that case occurs in the world, the extra work in the larger two is the part that would matter and the heap numbers above would not show it. #2896 targets #2894 (a list binding no view heap) and is not a candidate for these two tests at all; its two failures are the baseline's, not a regression. #2937 is explicit that it fixes the red CI and not the limitation, and it is the only row that is honest about changing nothing else — it is complementary to a real fix rather than competing with it.

Method notes: counts, descriptor numbers and test names only; no game files, no world run. The probe was a temporary test, and the worktree was left clean.

AI-assisted (Claude Code); every figure is from the runs described on this host.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7181753587 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7181753587). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-26T03:28:42Z. --- **Measured the open pull requests for this on a host that reproduces it: three reach an identical heap on this card, and they are 1, 9 and 14 files. The two red tests are a poor way to tell them apart, because every green row changes them.** FIND-9 in the coordination thread asked for someone with such a GPU to check. RTX 3080 (Ampere) / Windows 11, every row merged onto the same `main` `63bcca4`, each built in a build cache of its own, `cargo test -p victory-gpu --lib --no-fail-fast`. Every row run twice with identical results. Alongside the suite I probed what heap the host actually ends up with, by printing `NumDescriptors` and `HostHeap::dynamic` from a temporary test (reverted afterwards), because that is the thing these pull requests change and the suite does not report it. | row | host view heap | dynamic range | `victory-gpu --lib` | the two tests | size | |---|---:|---:|---|---|---| | `main` `63bcca4` | 65,540 | 65,536 | 229 passed / **2 failed** | both fail | — | | **#1751** | **1,000,000** | **262,144** | 231 / 0 | pass | +27/-4, 1 file | | **#2628** | **1,000,000** | **262,144** | 233 / 0 | pass | +243/-128, 9 files | | **#2121** | **1,000,000** | **262,144** | 241 / 0 | pass | +1688/-75, 14 files | | #2937 | 65,540 | 65,536 | 231 / 0 | **skip** | +28/-3, 2 files | | #2896 | 65,540 | 65,536 | 231 passed / **2 failed** | both fail | +39/-5, 1 file | | #1779 / #2185 / #2475 | — | — | — | — | conflict with `main` | `DYNAMIC` is 262,144, `MIN_DYNAMIC` 65,536 and `PORTABLE_VIEWS` 1,000,000, so the baseline's 65,540 is `count + MIN_DYNAMIC`: on this card `main` falls past both heap attempts to the smallest range. #1751's added tier asks for `max(count + DYNAMIC, PORTABLE_VIEWS)` = 1,000,000, which is exactly this driver's cap, so it is granted and the full dynamic range comes back. The reason for wanting that range is #1751's own, not mine: its comment cites #59 for the smaller one running out in the world. I did not reproduce that — #59 discusses a dynamic-slot overrun on an RX 9070 XT with a different `DYNAMIC` than `main` has today — so treat the motivation as that pull request's claim and the heap numbers below as mine. **The part I nearly got wrong, and the reason the test counts above should not decide this.** Every row that is green is green partly because it changed the two tests. #1751 makes the old assertion conditional on the device actually accepting a `HEAP_VIEWS` heap and adds `assert_eq!(heap.dynamic, DYNAMIC)`; #2628 drops that assertion and re-expresses "past the dynamic slots" against `views.pairs_start()`; #2121 relaxes it to a disjunction; #2937 skips both with a line naming the cap. That is not evasion in any of them — the tests encode a premise ("the host took a heap of `HEAP_VIEWS`") that is simply false on this hardware, so anything that makes them meaningful here must touch them. It does mean "makes the tests pass" is nearly uninformative, and I would have published a misleading table if I had stopped at the counts. What the probe does separate: #1751, #2628 and #2121 produce the **same heap and the same dynamic range** on this card, while #2937 and #2896 leave it at the floor. So on the measurable outcome the one-file change matches the two large ones. **What this does not say.** Nothing about the black screen in this issue, the world, or the framerate — these are synthetic unit tests and no title was run. The larger pull requests also do things this cannot evaluate: #2628 clamps shader heap indices from the first shader and gives `lower` a limit, #2121 pages the heap. A shader indexing past 1,000,000 is still the documented shortcut in `HostHeap::new` on all three, so if that case occurs in the world, the extra work in the larger two is the part that would matter and the heap numbers above would not show it. #2896 targets #2894 (a list binding no view heap) and is not a candidate for these two tests at all; its two failures are the baseline's, not a regression. #2937 is explicit that it fixes the red CI and not the limitation, and it is the only row that is honest about changing nothing else — it is complementary to a real fix rather than competing with it. Method notes: counts, descriptor numbers and test names only; no game files, no world run. The probe was a temporary test, and the worktree was left clean. AI-assisted (Claude Code); every figure is from the runs described on this host.
BaggyALPHA commented 2026-11-26 04:06:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-26T03:44:53Z.


Correcting my comment above: I measured the heap at the unit tests' count of 4, and at the count the title actually asks for, #1751 does nothing. The conclusion I drew from that table — that the one-file change matches the two large ones — is wrong.

HostHeap::new takes the count the title requested (descriptor.rs:100, self.desc.count), and its branches depend on it. My probe used the value the two tests use, 4. Sweeping the count instead, on the same main 63bcca4 and the same card:

count main views / dynamic + #1751 views / dynamic
4 65,540 / 65,536 1,000,000 / 262,144
700,000 765,536 / 65,536 1,000,000 / 262,144
737,856 803,392 / 65,536 1,000,000 / 262,144
737,857 803,393 / 65,536 803,393 / 65,536
934,464 1,000,000 / 65,536 1,000,000 / 65,536
1,245,184 1,000,000 / 65,536 1,000,000 / 65,536

The step is at PORTABLE_VIEWS - DYNAMIC + 1 = 737,857: #1751's added tier asks for max(count + DYNAMIC, PORTABLE_VIEWS), which above that count exceeds the cap, fails, and falls through to the same arm main already takes. So the improvement exists only for counts below ~737,856.

What the title asks for here. A short run of about 100 seconds was enough — this happens during start-up, no world needed — with VICTORY_LOG=info,victory_gpu::descriptor::host=debug on a release build of main 63bcca4:

WARN  host view heap capped at 1000000   error=The parameter is incorrect. (0x80070057) count=1245184
DEBUG host descriptor heap count=934464 sampler=false

1,245,184 — the same figure the RX 9070 XT report on #59 gives, so it looks like the title's own number rather than a host's. That is above the step, so on this card the run takes the PORTABLE_VIEWS arm: a heap of 1,000,000, the title's count truncated to PORTABLE_VIEWS - MIN_DYNAMIC = 934,464, and the smaller 65,536 dynamic range. 310,720 of the title's slots are left out, on main and with #1751 alike.

And the dropped descriptors are not hypothetical: the title indexes every one of them. The same run logs, starting 1.9 seconds in and over the next 1.5 seconds:

WARN title slot past the host heap index=934464  count=934464 for_draw=false
WARN title slot past the host heap index=934465  count=934464 for_draw=false
...
WARN title slot past the host heap index=1245183 count=934464 for_draw=false

310,720 of them — exactly 1,245,184 - 934,464, one for every slot the cap left out, from the first missing index to the last. So on this card the title walks the whole truncated tail during start-up, before anything in the world is drawn.

So the table above should be read the other way round. The condition that actually occurs in the title is a count past the cap, where descriptors are dropped and a shader indexing into them hits the documented shortcut. That is the case #2628 (clamping indices from the first shader) and #2121 (paging the heap) are built for, and it is the one my first comment said they addressed but that nothing here could evaluate. They are not equivalent to the one-file change; at the count that matters, #1751 is a no-op and they are not. Whether either of them is correct is still beyond what I measured — I have shown which ones can act at this count, not that their output is right.

Unchanged from the first comment: the suite results for each row (no regressions), #2937 skipping both tests on a capped host by design rather than changing behaviour, #2896 being a different problem with the baseline's two failures, and #1779 / #2185 / #2475 not merging with main.

My mistake was taking the number a unit test hardcodes as the operating point and reporting a per-row heap figure from it. The sweep and the start-up log are what should have been in the first comment.

How that run ended, for completeness, since it bounds what I saw: a device hang rather than anything to do with the heap — 0x887A0006 after a 7.4 s compute submission of 26 lists, which is the hang already described on #71 and #1968 and not something this measurement bears on. Peak card use was 7,518 MB of a 9,681 MB budget with no E_OUTOFMEMORY anywhere, so it was not memory on the card either. Everything above was logged in the first few seconds, well before it.

Counts and log lines only — no game files, no shader names, hashes or paths, and nothing from the title's data. AI-assisted (Claude Code); figures from the runs described on this host (RTX 3080 / Windows 11).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7181988417 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7181988417). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-26T03:44:53Z. --- **Correcting my comment above: I measured the heap at the unit tests' count of 4, and at the count the title actually asks for, #1751 does nothing. The conclusion I drew from that table — that the one-file change matches the two large ones — is wrong.** `HostHeap::new` takes the count the title requested (`descriptor.rs:100`, `self.desc.count`), and its branches depend on it. My probe used the value the two tests use, 4. Sweeping the count instead, on the same `main` `63bcca4` and the same card: | count | `main` views / dynamic | + #1751 views / dynamic | |---:|---:|---:| | 4 | 65,540 / 65,536 | 1,000,000 / 262,144 | | 700,000 | 765,536 / 65,536 | 1,000,000 / 262,144 | | 737,856 | 803,392 / 65,536 | 1,000,000 / 262,144 | | **737,857** | 803,393 / 65,536 | **803,393 / 65,536** | | 934,464 | 1,000,000 / 65,536 | **1,000,000 / 65,536** | | 1,245,184 | 1,000,000 / 65,536 | **1,000,000 / 65,536** | The step is at `PORTABLE_VIEWS - DYNAMIC + 1` = 737,857: #1751's added tier asks for `max(count + DYNAMIC, PORTABLE_VIEWS)`, which above that count exceeds the cap, fails, and falls through to the same arm `main` already takes. So the improvement exists only for counts below ~737,856. **What the title asks for here.** A short run of about 100 seconds was enough — this happens during start-up, no world needed — with `VICTORY_LOG=info,victory_gpu::descriptor::host=debug` on a release build of `main` `63bcca4`: ``` WARN host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184 DEBUG host descriptor heap count=934464 sampler=false ``` 1,245,184 — the same figure the RX 9070 XT report on #59 gives, so it looks like the title's own number rather than a host's. That is above the step, so on this card the run takes the `PORTABLE_VIEWS` arm: a heap of 1,000,000, the title's count truncated to `PORTABLE_VIEWS - MIN_DYNAMIC` = **934,464**, and the smaller 65,536 dynamic range. **310,720 of the title's slots are left out**, on `main` and with #1751 alike. **And the dropped descriptors are not hypothetical: the title indexes every one of them.** The same run logs, starting 1.9 seconds in and over the next 1.5 seconds: ``` WARN title slot past the host heap index=934464 count=934464 for_draw=false WARN title slot past the host heap index=934465 count=934464 for_draw=false ... WARN title slot past the host heap index=1245183 count=934464 for_draw=false ``` **310,720 of them** — exactly `1,245,184 - 934,464`, one for every slot the cap left out, from the first missing index to the last. So on this card the title walks the whole truncated tail during start-up, before anything in the world is drawn. **So the table above should be read the other way round.** The condition that actually occurs in the title is a count past the cap, where descriptors are dropped and a shader indexing into them hits the documented shortcut. That is the case #2628 (clamping indices from the first shader) and #2121 (paging the heap) are built for, and it is the one my first comment said they addressed but that nothing here could evaluate. They are not equivalent to the one-file change; at the count that matters, #1751 is a no-op and they are not. Whether either of them is *correct* is still beyond what I measured — I have shown which ones can act at this count, not that their output is right. Unchanged from the first comment: the suite results for each row (no regressions), #2937 skipping both tests on a capped host by design rather than changing behaviour, #2896 being a different problem with the baseline's two failures, and #1779 / #2185 / #2475 not merging with `main`. My mistake was taking the number a unit test hardcodes as the operating point and reporting a per-row heap figure from it. The sweep and the start-up log are what should have been in the first comment. How that run ended, for completeness, since it bounds what I saw: a device hang rather than anything to do with the heap — `0x887A0006` after a 7.4 s compute submission of 26 lists, which is the hang already described on #71 and #1968 and not something this measurement bears on. Peak card use was 7,518 MB of a 9,681 MB budget with no `E_OUTOFMEMORY` anywhere, so it was not memory on the card either. Everything above was logged in the first few seconds, well before it. Counts and log lines only — no game files, no shader names, hashes or paths, and nothing from the title's data. AI-assisted (Claude Code); figures from the runs described on this host (RTX 3080 / Windows 11).
BaggyALPHA commented 2026-11-26 04:06:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-26T04:03:24Z.


In-game measurement of the same pull requests, which is what my earlier comments should have led with. #1751's no-op is now measured rather than inferred, and only #2121 removes the condition entirely.

Four short start-up runs, each 45 s, on main 63bcca4 with the pull request merged, release build with diagnostics, VICTORY_LOG=info,victory_gpu::descriptor::host=debug. The whole truncated-slot burst lands in the first ~3.5 s, so 45 s captures it and stops well short of the ~90 s device hang; no run was removed, and no title process survived any of them. The metric is the heap partition the layer ends up with and how many of the title's 1,245,184 requested slots fall outside it.

row title slots in the heap dynamic range slots past the heap how
main 63bcca4 934,464 65,536 310,720 truncated at PORTABLE_VIEWS - MIN_DYNAMIC
+ #1751 934,464 65,536 310,720 identical to main at this count
+ #2628 737,853 262,144 507,331 fewer title slots, full dynamic range, indices clamped
+ #2121 all 1,245,184 (paged) — 0 view heap paged: ... slots=1245184 host_slots=1000000 pages=3906 fixed=1026

#1751 is confirmed a no-op here. Byte-identical partition and warning count to main, in the title, not deduced from a count sweep. That settles the thing my first comment got backwards.

More warnings is not worse, and #2628 should not be read that way. Its 507,331 is arithmetic: it keeps the full 262,144 dynamic range instead of MIN_DYNAMIC, so 1,000,000 − 262,144 − 3 = 737,853 slots are left for the title and the rest of the 1,245,184 fall outside. What changes is not the count but what happens on access — it clamps those indices, where main takes the documented shortcut. So it trades title slots for a defined access and the larger dynamic range that #59 wants. Whether that trade is right is a design question this measurement cannot settle; the count alone would make it look like a regression, and it is not one.

#2121 is the only row where no title slot is outside the heap. It places all 1,245,184 by page inside the 1,000,000 the host allows, so the condition does not arise rather than being clamped or truncated. It is also the largest change here (+1688/−75 across 14 files) and nothing above says its output is correct — only that the truncation is gone.

So the three are not variations of one fix: at the count the title actually uses, one does nothing, one re-partitions and defines the access, and one removes the shortage. My earlier table, measured at the unit tests' count of 4, showed all three as equivalent.

Not covered. No run reached the world — all four stopped at 45 s by design — so nothing here speaks to the black screen in this issue, the framerate, or whether any of these draws correctly. #2896 and #2937 were not re-run in the game: #2896 targets #2894, and #2937 changes only what the two tests report, so neither alters the partition. #1779, #2185 and #2475 still do not merge with main.

Counts and log lines only; no game files, no shader names, hashes or paths. AI-assisted (Claude Code); all four rows from the runs described on this host (RTX 3080 / Windows 11).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7182254881 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7182254881). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-26T04:03:24Z. --- **In-game measurement of the same pull requests, which is what my earlier comments should have led with. #1751's no-op is now measured rather than inferred, and only #2121 removes the condition entirely.** Four short start-up runs, each 45 s, on `main` `63bcca4` with the pull request merged, release build with diagnostics, `VICTORY_LOG=info,victory_gpu::descriptor::host=debug`. The whole truncated-slot burst lands in the first ~3.5 s, so 45 s captures it and stops well short of the ~90 s device hang; no run was removed, and no title process survived any of them. The metric is the heap partition the layer ends up with and how many of the title's 1,245,184 requested slots fall outside it. | row | title slots in the heap | dynamic range | slots past the heap | how | |---|---:|---:|---:|---| | `main` `63bcca4` | 934,464 | 65,536 | **310,720** | truncated at `PORTABLE_VIEWS - MIN_DYNAMIC` | | + #1751 | 934,464 | 65,536 | **310,720** | identical to `main` at this count | | + #2628 | 737,853 | **262,144** | **507,331** | fewer title slots, full dynamic range, indices clamped | | + #2121 | **all 1,245,184** (paged) | — | **0** | `view heap paged: ... slots=1245184 host_slots=1000000 pages=3906 fixed=1026` | **#1751 is confirmed a no-op here.** Byte-identical partition and warning count to `main`, in the title, not deduced from a count sweep. That settles the thing my first comment got backwards. **More warnings is not worse, and #2628 should not be read that way.** Its 507,331 is arithmetic: it keeps the full 262,144 dynamic range instead of `MIN_DYNAMIC`, so 1,000,000 − 262,144 − 3 = 737,853 slots are left for the title and the rest of the 1,245,184 fall outside. What changes is not the count but what happens on access — it clamps those indices, where `main` takes the documented shortcut. So it trades title slots for a defined access and the larger dynamic range that #59 wants. Whether that trade is right is a design question this measurement cannot settle; the count alone would make it look like a regression, and it is not one. **#2121 is the only row where no title slot is outside the heap.** It places all 1,245,184 by page inside the 1,000,000 the host allows, so the condition does not arise rather than being clamped or truncated. It is also the largest change here (+1688/−75 across 14 files) and nothing above says its output is correct — only that the truncation is gone. So the three are not variations of one fix: at the count the title actually uses, one does nothing, one re-partitions and defines the access, and one removes the shortage. My earlier table, measured at the unit tests' count of 4, showed all three as equivalent. **Not covered.** No run reached the world — all four stopped at 45 s by design — so nothing here speaks to the black screen in this issue, the framerate, or whether any of these draws correctly. #2896 and #2937 were not re-run in the game: #2896 targets #2894, and #2937 changes only what the two tests report, so neither alters the partition. #1779, #2185 and #2475 still do not merge with `main`. Counts and log lines only; no game files, no shader names, hashes or paths. AI-assisted (Claude Code); all four rows from the runs described on this host (RTX 3080 / Windows 11).
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#1626
No description provided.