NVIDIA: view-heap slots past 737,855 are never mirrored (driver caps heaps at 1,000,000); phone screen black (separate cause: exposure texel stuck at -10) #545

Open
opened 2026-11-28 00:41:08 +00:00 by github-bot · 3 comments
Owner

@⁠chemist6913 on GitHub · 2026-11-28 00:38 UTC · original

Summary

On NVIDIA, every view the title places in its view heap at a slot past about 737,855 reads the wrong descriptor, or a null one. Shaders that pick descriptors by index (bindless) are hit; tables are not. The visible case is the cracked phone in the opening diner cutscene: its screen should show the ride app's "account suspended" page under the cracks, but it is black in most runs. It lit once for a whole run, and sometimes for a moment while the scene loads.

Seen on an RTX 5090 (driver 621.40, Windows 11), Series X profile, 1440p, on current main plus local diagnostics. The heap cap below should apply to every NVIDIA card, so other bindless materials past that slot are likely wrong on NVIDIA too.

Cause

  • The title's view heap has 1,245,184 slots.
  • The 5090 refuses any shader-visible CBV/SRV/UAV heap larger than exactly 1,000,000 descriptors. I tried 1,000,000 (made), 1,000,001, 1,048,576, 1,245,184, 1,310,720, 1,507,328, 2^21 and 2^22 (all refused).
  • So HostHeap::new takes the PORTABLE_VIEWS path:
    • the host heap holds 1,000,000 views;
    • title slots 0..737,855 are mirrored one to one;
    • 737,855..999,998 hold the DYNAMIC (2^18) per-draw tables;
    • 999,999 is the null slot.
  • The translator clamps every heap index with umin(index, 999999).
  • Title slots past 737,855 are never mirrored. changed_slots stops at mirrored_count, and mirror returns None for index >= count. The comment there already says "a title that reaches them needs remapping".
  • Tables past the count are fine: draws copy them into dynamic slots. Only shader-computed indices are affected.

The phone, step by step

  • Shaders. The screen is drawn by pixel shader 909d7b7af414d9e0 (PS_DeferredTextured_c5fd36bb) with mesh shader 5cbcffe7dfa18da4.
  • Its emissive. Disassembled, the emissive is movie colour × lerp(1, T·K, C) × s:
    • s is a packing constant, 1/256;
    • T comes from a small 4×4 BC1 texture named by the material record;
    • C (cb[2].w) and K (via cb[6].y) are read from a constant buffer at heap slot u10 >> 5.
  • That slot moves every frame, anywhere from about 420,000 to 1,245,000. Logged at the screen's draw, it was "past the mirrored slots" in most frames (for example 868,257 and 1,019,809).
  • When it is past them, the constants read null, the emissive comes out with a near-zero exponent (G-buffer alpha 30–31), and the screen is black.
  • The rest of the path is fine:
    • the screen draw is the last writer of its G-buffer pixels, and it carries the movie colour;
    • forcing the emissive alpha to 255 right after that draw blows the screen out to white, so the lighting passes (TL_PS_NoDir_PBR_MATERIAL_EMISSIVE_DIFFRACTION and the plain emissive variant) decode it correctly;
    • swapping the diffraction variant for the plain one changes nothing;
    • -Fast and the shader optimisation level change nothing.

How the title uses the heap (census, opening cutscene)

I counted the records holding a view in each 64K slots of the title's heap, in three frames running, every 600 frames. Frame 1200:

Slots Views of which constant buffers Changed since frame 600
0–64K 12,009 52 382
64K–320K 0 0 0
320K–1,245K 216–627 per 64K, about 5,600 in all 120–385 per 64K 64–480 per 64K

From one frame to the next, almost nothing changes (0–28 records per 64K). So:

  • Live views are few. About 17,500 in the whole heap, against 1,000,000 host slots. Room is not the problem; the high slot numbers are.
  • The high views are spread out. They are scattered across 320K..1.245M, mostly constant buffers. That is why the phone works or not depending on where its constant buffer happens to land.
  • Folding is not safe. slot mod M would let two live views share a host slot, because one frame's records lie across the whole range.

Proposed fix

A remap of title slots past the mirrored range:

  1. Host side. A title slot >= count that gets a view is given a host slot from a pool. The pool would be the identity slots the title leaves empty, or a fixed region taken from the mirrored range. The slot is freed when the title clears the record or writes over it. Its descriptor is made there, through the same mirror / buffer-pass path as any other slot, keyed by the title slot.
  2. A remap buffer. One u32 per title slot (5 MB), identity below count. Shaders read it like the SLOT_STRIDES root SRV, only for indices >= count, so slots below it cost nothing extra.
  3. Translator. In heap_handle_at: index < LIMIT ? index : remap[index], in place of the umin clamp alone.

I'm working on this in my fork and will open a pull request once it is verified over several diner runs. I'm posting now in case someone has a simpler route, or another NVIDIA bug with the same cause.

Diagnostics used (all behind --features diagnostics)

  • VICTORY_VIEW_SIZES=1: logs which view-heap sizes the driver accepts.
  • VICTORY_HEAP_CENSUS=<frames>: the census above.
  • Probes at the screen's draw: a record watcher, a G-buffer pixel probe kept in submission order, and a rectangle "paint" after a chosen pixel shader.

I can share any of these.

**@⁠chemist6913** on GitHub · 2026-11-28 00:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/545) ## Summary On NVIDIA, every view the title places in its view heap at a slot past about 737,855 reads the wrong descriptor, or a null one. Shaders that pick descriptors by index (bindless) are hit; tables are not. The visible case is the cracked phone in the opening diner cutscene: its screen should show the ride app's "account suspended" page under the cracks, but it is black in most runs. It lit once for a whole run, and sometimes for a moment while the scene loads. Seen on an RTX 5090 (driver 621.40, Windows 11), Series X profile, 1440p, on current `main` plus local diagnostics. The heap cap below should apply to every NVIDIA card, so other bindless materials past that slot are likely wrong on NVIDIA too. ## Cause - The title's view heap has **1,245,184** slots. - The 5090 refuses any shader-visible CBV/SRV/UAV heap larger than **exactly 1,000,000** descriptors. I tried 1,000,000 (made), 1,000,001, 1,048,576, 1,245,184, 1,310,720, 1,507,328, 2^21 and 2^22 (all refused). - So `HostHeap::new` takes the `PORTABLE_VIEWS` path: - the host heap holds 1,000,000 views; - title slots 0..737,855 are mirrored one to one; - 737,855..999,998 hold the `DYNAMIC` (2^18) per-draw tables; - 999,999 is the null slot. - The translator clamps every heap index with `umin(index, 999999)`. - Title slots past 737,855 are never mirrored. `changed_slots` stops at `mirrored_count`, and `mirror` returns `None` for `index >= count`. The comment there already says "a title that reaches them needs remapping". - Tables past the count are fine: draws copy them into dynamic slots. Only shader-computed indices are affected. ## The phone, step by step - **Shaders.** The screen is drawn by pixel shader `909d7b7af414d9e0` (`PS_DeferredTextured_c5fd36bb`) with mesh shader `5cbcffe7dfa18da4`. - **Its emissive.** Disassembled, the emissive is `movie colour × lerp(1, T·K, C) × s`: - `s` is a packing constant, 1/256; - `T` comes from a small 4×4 BC1 texture named by the material record; - `C` (`cb[2].w`) and `K` (via `cb[6].y`) are read from a **constant buffer at heap slot `u10 >> 5`**. - **That slot moves every frame,** anywhere from about 420,000 to 1,245,000. Logged at the screen's draw, it was "past the mirrored slots" in most frames (for example 868,257 and 1,019,809). - **When it is past them,** the constants read null, the emissive comes out with a near-zero exponent (G-buffer alpha 30–31), and the screen is black. - **The rest of the path is fine:** - the screen draw is the last writer of its G-buffer pixels, and it carries the movie colour; - forcing the emissive alpha to 255 right after that draw blows the screen out to white, so the lighting passes (`TL_PS_NoDir_PBR_MATERIAL_EMISSIVE_DIFFRACTION` and the plain emissive variant) decode it correctly; - swapping the diffraction variant for the plain one changes nothing; - `-Fast` and the shader optimisation level change nothing. ## How the title uses the heap (census, opening cutscene) I counted the records holding a view in each 64K slots of the title's heap, in three frames running, every 600 frames. Frame 1200: | Slots | Views | of which constant buffers | Changed since frame 600 | |---|---|---|---| | 0–64K | 12,009 | 52 | 382 | | 64K–320K | 0 | 0 | 0 | | 320K–1,245K | 216–627 per 64K, about 5,600 in all | 120–385 per 64K | 64–480 per 64K | From one frame to the next, almost nothing changes (0–28 records per 64K). So: - **Live views are few.** About 17,500 in the whole heap, against 1,000,000 host slots. Room is not the problem; the high slot numbers are. - **The high views are spread out.** They are scattered across 320K..1.245M, mostly constant buffers. That is why the phone works or not depending on where its constant buffer happens to land. - **Folding is not safe.** `slot mod M` would let two live views share a host slot, because one frame's records lie across the whole range. ## Proposed fix A remap of title slots past the mirrored range: 1. **Host side.** A title slot `>= count` that gets a view is given a host slot from a pool. The pool would be the identity slots the title leaves empty, or a fixed region taken from the mirrored range. The slot is freed when the title clears the record or writes over it. Its descriptor is made there, through the same `mirror` / buffer-pass path as any other slot, keyed by the title slot. 2. **A remap buffer.** One `u32` per title slot (5 MB), identity below `count`. Shaders read it like the `SLOT_STRIDES` root SRV, only for indices `>= count`, so slots below it cost nothing extra. 3. **Translator.** In `heap_handle_at`: `index < LIMIT ? index : remap[index]`, in place of the `umin` clamp alone. I'm working on this in my fork and will open a pull request once it is verified over several diner runs. I'm posting now in case someone has a simpler route, or another NVIDIA bug with the same cause. ## Diagnostics used (all behind `--features diagnostics`) - `VICTORY_VIEW_SIZES=1`: logs which view-heap sizes the driver accepts. - `VICTORY_HEAP_CENSUS=<frames>`: the census above. - Probes at the screen's draw: a record watcher, a G-buffer pixel probe kept in submission order, and a rectangle "paint" after a chosen pixel shader. I can share any of these.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 00:41:08 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 00:38 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

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

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

**@⁠github-actions[bot]** on GitHub · 2026-11-28 00:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/545#issuecomment-7231074937) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠chemist6913 on GitHub · 2026-11-28 00:47 UTC · original

Not a crash: the game runs; the phone screen in the diner is black. RTX 5090, driver 621.40, Windows 11 Pro (build 26300), Series X profile, 1440p, diagnostics build. Key lines from three short diner runs below (full logs on request; they are 2.5 to 5 MB each).

Run vs1: which shader-visible view-heap sizes the driver takes (VICTORY_VIEW_SIZES=1)

2026-11-27T19:22:11.404834Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 1000000 views: made
2026-11-27T19:22:11.404962Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 1000001 views: refused
2026-11-27T19:22:11.404975Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 1048576 views: refused
2026-11-27T19:22:11.404983Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 1245184 views: refused
2026-11-27T19:22:11.404989Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 1310720 views: refused
2026-11-27T19:22:11.404997Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 1507328 views: refused
2026-11-27T19:22:11.405005Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 2097152 views: refused
2026-11-27T19:22:11.405012Z  INFO victory_gpu::descriptor::host: a shader-visible view heap of 4194304 views: refused
2026-11-27T19:22:11.405031Z  INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped to the null slot at the end from the first shader on views=1000000 raw_twins=false
2026-11-27T19:22:11.875872Z  WARN victory_gpu::descriptor::host: host view heap capped at 1000000; views past it read a null slot count=1245184

Run mb1: the phone screen's material constant buffer slot (u10 >> 5), logged at its draw (first 12 of the 28 such lines)

2026-11-27T19:26:52.803050Z  INFO victory_gpu::draw: watched record, material buffer of frame 6560: slot 868257: past the mirrored slots
2026-11-27T19:26:52.803055Z  INFO victory_gpu::draw: watched record, material buffer of frame 6560: slot 868245: past the mirrored slots
2026-11-27T19:26:52.837273Z  INFO victory_gpu::draw: watched record, material buffer of frame 6561: slot 1019809: past the mirrored slots
2026-11-27T19:26:52.837277Z  INFO victory_gpu::draw: watched record, material buffer of frame 6561: slot 1019797: past the mirrored slots
2026-11-27T19:26:52.902031Z  INFO victory_gpu::draw: watched record, material buffer of frame 6562: slot 667553: Shader(2469580153536, Some([26, 4, 5768, 0, 2, 1, 0, 0, 0, 0]))
2026-11-27T19:26:52.902044Z  INFO victory_gpu::draw: watched record, material buffer of frame 6562: slot 667541: Shader(2457027609248, Some([26, 4, 5768, 0, 4, 1, 0, 0, 0, 0]))
2026-11-27T19:26:52.976050Z  INFO victory_gpu::draw: watched record, material buffer of frame 6564: slot 966561: past the mirrored slots
2026-11-27T19:26:52.976055Z  INFO victory_gpu::draw: watched record, material buffer of frame 6564: slot 966549: past the mirrored slots
2026-11-27T19:26:53.025718Z  INFO victory_gpu::draw: watched record, material buffer of frame 6565: slot 1245089: past the mirrored slots
2026-11-27T19:26:53.025728Z  INFO victory_gpu::draw: watched record, material buffer of frame 6565: slot 1245077: past the mirrored slots
2026-11-27T19:26:53.076065Z  INFO victory_gpu::draw: watched record, material buffer of frame 6566: slot 1134497: past the mirrored slots
2026-11-27T19:26:53.076076Z  INFO victory_gpu::draw: watched record, material buffer of frame 6566: slot 1134485: past the mirrored slots

Run hc1: census of the title's view heap (VICTORY_HEAP_CENSUS=600; per 64K slots: views, constant buffers among them, records changed since the census before)

2026-11-28T00:35:25.290275Z  INFO victory_gpu::descriptor: heap census, frame 1200: 0K: 12009 views (52 constant), 382 changed, 0 pages unread;
  64K: 0 views (0 constant), 0 changed, 0 pages unread;
  128K: 0 views (0 constant), 0 changed, 0 pages unread;
  192K: 0 views (0 constant), 0 changed, 0 pages unread;
  256K: 0 views (0 constant), 0 changed, 0 pages unread;
  320K: 224 views (120 constant), 225 changed, 0 pages unread;
  384K: 336 views (240 constant), 240 changed, 0 pages unread;
  448K: 336 views (240 constant), 240 changed, 0 pages unread;
  512K: 296 views (200 constant), 200 changed, 0 pages unread;
  576K: 216 views (120 constant), 136 changed, 0 pages unread;
  640K: 312 views (198 constant), 128 changed, 0 pages unread;
  704K: 449 views (295 constant), 195 changed, 0 pages unread;
  768K: 627 views (385 constant), 387 changed, 0 pages unread;
  832K: 352 views (256 constant), 64 changed, 0 pages unread;
  896K: 350 views (254 constant), 64 changed, 0 pages unread;
  960K: 336 views (240 constant), 64 changed, 0 pages unread;
  1024K: 336 views (240 constant), 428 changed, 0 pages unread;
  1088K: 336 views (240 constant), 480 changed, 0 pages unread;
  1152K: 336 views (240 constant), 480 changed, 0 pages unread
2026-11-28T00:35:25.294708Z  INFO victory_gpu::descriptor: heap census, frame 1201: 0K: 12009 views (52 constant), 0 changed, 0 pages unread;
  64K: 0 views (0 constant), 0 changed, 0 pages unread;
  128K: 0 views (0 constant), 0 changed, 0 pages unread;
  192K: 0 views (0 constant), 0 changed, 0 pages unread;
  256K: 0 views (0 constant), 0 changed, 0 pages unread;
  320K: 224 views (120 constant), 0 changed, 0 pages unread;
  384K: 336 views (240 constant), 0 changed, 0 pages unread;
  448K: 336 views (240 constant), 0 changed, 0 pages unread;
  512K: 296 views (200 constant), 0 changed, 0 pages unread;
  576K: 216 views (120 constant), 0 changed, 0 pages unread;
  640K: 312 views (198 constant), 0 changed, 0 pages unread;
  704K: 449 views (295 constant), 0 changed, 0 pages unread;
  768K: 627 views (385 constant), 0 changed, 0 pages unread;
  832K: 369 views (264 constant), 20 changed, 0 pages unread;
  896K: 350 views (254 constant), 0 changed, 0 pages unread;
  960K: 336 views (240 constant), 0 changed, 0 pages unread;
  1024K: 336 views (240 constant), 0 changed, 0 pages unread;
  1088K: 336 views (240 constant), 0 changed, 0 pages unread;
  1152K: 336 views (240 constant), 0 changed, 0 pages unread
**@⁠chemist6913** on GitHub · 2026-11-28 00:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/545#issuecomment-7231194061) Not a crash: the game runs; the phone screen in the diner is black. RTX 5090, driver 621.40, Windows 11 Pro (build 26300), Series X profile, 1440p, diagnostics build. Key lines from three short diner runs below (full logs on request; they are 2.5 to 5 MB each). **Run vs1: which shader-visible view-heap sizes the driver takes** (`VICTORY_VIEW_SIZES=1`) ``` 2026-11-27T19:22:11.404834Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 1000000 views: made 2026-11-27T19:22:11.404962Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 1000001 views: refused 2026-11-27T19:22:11.404975Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 1048576 views: refused 2026-11-27T19:22:11.404983Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 1245184 views: refused 2026-11-27T19:22:11.404989Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 1310720 views: refused 2026-11-27T19:22:11.404997Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 1507328 views: refused 2026-11-27T19:22:11.405005Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 2097152 views: refused 2026-11-27T19:22:11.405012Z INFO victory_gpu::descriptor::host: a shader-visible view heap of 4194304 views: refused 2026-11-27T19:22:11.405031Z INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped to the null slot at the end from the first shader on views=1000000 raw_twins=false 2026-11-27T19:22:11.875872Z WARN victory_gpu::descriptor::host: host view heap capped at 1000000; views past it read a null slot count=1245184 ``` **Run mb1: the phone screen's material constant buffer slot (`u10 >> 5`), logged at its draw** (first 12 of the 28 such lines) ``` 2026-11-27T19:26:52.803050Z INFO victory_gpu::draw: watched record, material buffer of frame 6560: slot 868257: past the mirrored slots 2026-11-27T19:26:52.803055Z INFO victory_gpu::draw: watched record, material buffer of frame 6560: slot 868245: past the mirrored slots 2026-11-27T19:26:52.837273Z INFO victory_gpu::draw: watched record, material buffer of frame 6561: slot 1019809: past the mirrored slots 2026-11-27T19:26:52.837277Z INFO victory_gpu::draw: watched record, material buffer of frame 6561: slot 1019797: past the mirrored slots 2026-11-27T19:26:52.902031Z INFO victory_gpu::draw: watched record, material buffer of frame 6562: slot 667553: Shader(2469580153536, Some([26, 4, 5768, 0, 2, 1, 0, 0, 0, 0])) 2026-11-27T19:26:52.902044Z INFO victory_gpu::draw: watched record, material buffer of frame 6562: slot 667541: Shader(2457027609248, Some([26, 4, 5768, 0, 4, 1, 0, 0, 0, 0])) 2026-11-27T19:26:52.976050Z INFO victory_gpu::draw: watched record, material buffer of frame 6564: slot 966561: past the mirrored slots 2026-11-27T19:26:52.976055Z INFO victory_gpu::draw: watched record, material buffer of frame 6564: slot 966549: past the mirrored slots 2026-11-27T19:26:53.025718Z INFO victory_gpu::draw: watched record, material buffer of frame 6565: slot 1245089: past the mirrored slots 2026-11-27T19:26:53.025728Z INFO victory_gpu::draw: watched record, material buffer of frame 6565: slot 1245077: past the mirrored slots 2026-11-27T19:26:53.076065Z INFO victory_gpu::draw: watched record, material buffer of frame 6566: slot 1134497: past the mirrored slots 2026-11-27T19:26:53.076076Z INFO victory_gpu::draw: watched record, material buffer of frame 6566: slot 1134485: past the mirrored slots ``` **Run hc1: census of the title's view heap** (`VICTORY_HEAP_CENSUS=600`; per 64K slots: views, constant buffers among them, records changed since the census before) ``` 2026-11-28T00:35:25.290275Z INFO victory_gpu::descriptor: heap census, frame 1200: 0K: 12009 views (52 constant), 382 changed, 0 pages unread; 64K: 0 views (0 constant), 0 changed, 0 pages unread; 128K: 0 views (0 constant), 0 changed, 0 pages unread; 192K: 0 views (0 constant), 0 changed, 0 pages unread; 256K: 0 views (0 constant), 0 changed, 0 pages unread; 320K: 224 views (120 constant), 225 changed, 0 pages unread; 384K: 336 views (240 constant), 240 changed, 0 pages unread; 448K: 336 views (240 constant), 240 changed, 0 pages unread; 512K: 296 views (200 constant), 200 changed, 0 pages unread; 576K: 216 views (120 constant), 136 changed, 0 pages unread; 640K: 312 views (198 constant), 128 changed, 0 pages unread; 704K: 449 views (295 constant), 195 changed, 0 pages unread; 768K: 627 views (385 constant), 387 changed, 0 pages unread; 832K: 352 views (256 constant), 64 changed, 0 pages unread; 896K: 350 views (254 constant), 64 changed, 0 pages unread; 960K: 336 views (240 constant), 64 changed, 0 pages unread; 1024K: 336 views (240 constant), 428 changed, 0 pages unread; 1088K: 336 views (240 constant), 480 changed, 0 pages unread; 1152K: 336 views (240 constant), 480 changed, 0 pages unread 2026-11-28T00:35:25.294708Z INFO victory_gpu::descriptor: heap census, frame 1201: 0K: 12009 views (52 constant), 0 changed, 0 pages unread; 64K: 0 views (0 constant), 0 changed, 0 pages unread; 128K: 0 views (0 constant), 0 changed, 0 pages unread; 192K: 0 views (0 constant), 0 changed, 0 pages unread; 256K: 0 views (0 constant), 0 changed, 0 pages unread; 320K: 224 views (120 constant), 0 changed, 0 pages unread; 384K: 336 views (240 constant), 0 changed, 0 pages unread; 448K: 336 views (240 constant), 0 changed, 0 pages unread; 512K: 296 views (200 constant), 0 changed, 0 pages unread; 576K: 216 views (120 constant), 0 changed, 0 pages unread; 640K: 312 views (198 constant), 0 changed, 0 pages unread; 704K: 449 views (295 constant), 0 changed, 0 pages unread; 768K: 627 views (385 constant), 0 changed, 0 pages unread; 832K: 369 views (264 constant), 20 changed, 0 pages unread; 896K: 350 views (254 constant), 0 changed, 0 pages unread; 960K: 336 views (240 constant), 0 changed, 0 pages unread; 1024K: 336 views (240 constant), 0 changed, 0 pages unread; 1088K: 336 views (240 constant), 0 changed, 0 pages unread; 1152K: 336 views (240 constant), 0 changed, 0 pages unread ```
github-bot changed title from NVIDIA: view-heap slots past 737,855 are never mirrored (driver caps heaps at 1,000,000); black phone screen in the diner to NVIDIA: view-heap slots past 737,855 are never mirrored (driver caps heaps at 1,000,000); phone screen black (separate cause: exposure texel stuck at -10) 2026-11-28 01:29:55 +00:00
Author
Owner

@⁠chemist6913 on GitHub · 2026-11-28 01:24 UTC · original

Correction: the heap cap is real, but it is not why the phone is black.

I built the remap described above. Title view slots from 65,536 on now get a host slot from a pool of 672,318, through a table the translated shaders read. Slots are given back when they are made null.

  • The remap works. The picture is unchanged and the pool never runs out.
  • The census above was wrong for the world. It came from menu frames. In the world, the title keeps 400,000 to 570,000 views past slot 65,536 at once, and turns over about 130,000 a second. A pool of 65,536 ran out 33 s in.
  • The phone stays black with the remap. I made the material's constant buffer at the screen's draw. It holds the title's own values (cb[2] = 1,1,1,0, cb[6] = 0,0,-0.3,1), and the screen is still black. So that buffer was never the cause.

What actually decides the screen

In the pixel shader, the G-buffer alpha gets its emissive bit (+32) only when

texel (0,0) of a 1×1 R32G32B32A32 texture (entry 138 of the table at u8) × the emissive colour's luminance ≥ 0.25.

On the card, that texel is [0.0009765625, -10, -10, 0], i.e. 2^-10 with a log value of -10. Both of the textures that take turns per frame hold exactly that. With it, the screen would need a luminance of 256.

It looks like an exposure value stuck at the floor of a log-luminance clamp. The title's own memory for the texture is zeros. No recorded op in the captured frame writes the texture.

Not the writer:

  • the one indirect rectangle draw the host drops each frame (drawn anyway with VICTORY_RECT_HALF=1: no change);
  • the two VICTORY_LEAVE_OUT passes.

Next: find which pass writes that texture on the console, and why its input is dark.

Whether the remap is worth a pull request on its own (every bindless read past slot 737,855 is null on NVIDIA without it) is a separate question. I'll test its frame-rate cost first.

**@⁠chemist6913** on GitHub · 2026-11-28 01:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/545#issuecomment-7231645431) **Correction: the heap cap is real, but it is not why the phone is black.** I built the remap described above. Title view slots from 65,536 on now get a host slot from a pool of 672,318, through a table the translated shaders read. Slots are given back when they are made null. - **The remap works.** The picture is unchanged and the pool never runs out. - **The census above was wrong for the world.** It came from menu frames. In the world, the title keeps 400,000 to 570,000 views past slot 65,536 at once, and turns over about 130,000 a second. A pool of 65,536 ran out 33 s in. - **The phone stays black with the remap.** I made the material's constant buffer at the screen's draw. It holds the title's own values (`cb[2] = 1,1,1,0`, `cb[6] = 0,0,-0.3,1`), and the screen is still black. So that buffer was never the cause. **What actually decides the screen** In the pixel shader, the G-buffer alpha gets its emissive bit (+32) only when > texel (0,0) of a 1×1 R32G32B32A32 texture (entry 138 of the table at `u8`) × the emissive colour's luminance ≥ 0.25. On the card, that texel is `[0.0009765625, -10, -10, 0]`, i.e. 2^-10 with a log value of -10. Both of the textures that take turns per frame hold exactly that. With it, the screen would need a luminance of 256. It looks like an exposure value stuck at the floor of a log-luminance clamp. The title's own memory for the texture is zeros. No recorded op in the captured frame writes the texture. **Not the writer:** - the one indirect rectangle draw the host drops each frame (drawn anyway with `VICTORY_RECT_HALF=1`: no change); - the two `VICTORY_LEAVE_OUT` passes. Next: find which pass writes that texture on the console, and why its input is dark. Whether the remap is worth a pull request on its own (every bindless read past slot 737,855 is null on NVIDIA without it) is a separate question. I'll test its frame-rate cost first.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

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