Black sand/shore ground traced in a replayed frame: the ground's depth is there, its G-buffer draw is not (related to #1593) #1986

Closed
opened 2026-11-29 05:46:27 +00:00 by github-bot · 4 comments
Owner

@⁠Praisser on GitHub · 2026-11-29 05:45 UTC · original

What it is

A band of solid black ground where the beach sand meets the water, steady over consecutive
frames, on an RTX 3070 Laptop (Wave32). It looks like #1593 ("black ground almost everywhere
there is sand"). I recorded five frames of it with the frame recorder and replayed them offline;
the replay reproduces it (PSNR 50.1 dB against the presented frames), so it comes from the
recorded data, not from live timing.

Disclosure: this was found on CGBJ-main, a 16 GB / 8 GB-card tuning of cool_fox (e94d277),
not on a VIctory-NVIDIA release. The code involved (G-buffer pass, tiled lighting, indirect
argument clamp, depth twins/planes) has the same lineage, and #1593 shows the same symptom
here, so I'm posting the trace in case it helps.

Trace (replay tools: --pixel, --slots, --listing, --images --until)

  1. No draw writes the band into the G-buffer, in any list of the frame. At a black pixel,
    every G-buffer target keeps its clear value: albedo, normal, material, and the RG target that
    is cleared to -10000 and that every drawn surface overwrites. So this is not a surface drawn
    with a missing or black texture: nothing is drawn there. The sand just above the band is drawn
    by an indirect mesh draw (MSNC_VS_TransformSkinD fc17c8df70b6e03b) in the G-buffer list.
  2. The tiled lighting then lights an empty pixel. VS_TiledLighting +
    TL_PS_PBR_MATERIAL_STANDARD (1cd9bc634417a981) writes 0, 0, 0 into the HDR target there;
    the neighbouring sand is lit by the _SHEEN variant from real G-buffer values.
  3. The indirect argument clamp is not the cause. After the last clamp of the G-buffer list,
    29 of 241 indirect executions got zero groups; for all 29 the title's own arguments were
    already zero
    (read from the source buffer before the clamp ran). 18 of them are vehicles
    (normal culling). The ground draw above the band got a real count (20 groups).
  4. The ground's depth is there. The previous frame's depth pyramid that
    meshlet_culling:CS_BatchCullMeshlets_Prev reads (512x256 R32F, 9 levels) holds, reversed Z:
    sand above the band 0.0001, band 0.0036, water below 0.0048. The depth twin of the frame
    agrees (about 0.0035). That is a ground plane receding between the far sand and the nearer
    water, so the reading I'd give is: the ground's depth is drawn, its G-buffer draw is not.
  5. The three meshlet-culling programs in that list (CS_BatchCullInitArgs 9146291b38ea9ce1,
    CS_BatchCullMeshlets_Prev fc5e66f8f873d3bb, CS_BatchCullPreSkinnedMeshlets
    9f017d9011377efa) translate directly here (no wave64 retries, no approximate forms).

Where I stopped: --pixel --depth shows no depth writes at all on this capture (it does not
seem to follow the depth twins), so I could not name the draw that writes that depth, nor tell
whether it is a depth pre-pass of the same ground or something else. --split and
--skip-clamps lost the device on this capture.

Things that may be worth a look on your side:

  • which pass writes depth for that ground, and whether the matching colour draw was left out
    (culled, not made, or dropped);
  • the depth twin / depth plane path; the frame line in these runs said "depth planes: 1.8 drawn
    from their twins per frame, 3749 times not given back to a twin, 3750 times used before the
    pass".

A side note: in a build without the view-heap remap (#638), CS_BatchCullMeshlets_Prev reads
its depth pyramid through view slot 990047, past the 737,855 slots a 1,000,000-view heap mirrors,
so it read a null view there. With the remap that read is fine, and the black ground was still
seen, so this is not the whole answer.

On the same card, characters turn into large stretched triangles for one frame, all the
characters in view at once, more in crowds and after a character switch; black ground and black
patches on clothes sometimes appear in the same frame. Ruled out here by A/B runs with a
per-frame pop counter: the view-heap cap (port of #638), the defrag planner running (port of
cool_fox c36f9f4), root-view windows cut at 4 MiB (port of #1197), card writes still in flight
when a window is refreshed (counted: the same in shard frames and others), and every copy/timing
setting of that tree's launcher (relay stages, card steps, placed order, batching, joined
copies, uploads ahead, buffers in card memory from 64 KiB). I could not catch a shard frame with
the recorder (five frames, 16 GB of RAM).

Environment

  • RTX 3070 Laptop 8 GB, driver 621.01, Ryzen 7 6800H, 16 GB RAM, Windows 11.
  • Series S profile, title build 1.0.2.1.
  • Diagnostics build of CGBJ-main plus local ports (listed above).
**@⁠Praisser** on GitHub · 2026-11-29 05:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1986) ### What it is A band of solid black ground where the beach sand meets the water, steady over consecutive frames, on an RTX 3070 Laptop (Wave32). It looks like #1593 ("black ground almost everywhere there is sand"). I recorded five frames of it with the frame recorder and replayed them offline; the replay reproduces it (PSNR 50.1 dB against the presented frames), so it comes from the recorded data, not from live timing. **Disclosure:** this was found on CGBJ-main, a 16 GB / 8 GB-card tuning of cool_fox (e94d277), not on a VIctory-NVIDIA release. The code involved (G-buffer pass, tiled lighting, indirect argument clamp, depth twins/planes) has the same lineage, and #1593 shows the same symptom here, so I'm posting the trace in case it helps. ### Trace (replay tools: `--pixel`, `--slots`, `--listing`, `--images --until`) 1. **No draw writes the band into the G-buffer, in any list of the frame.** At a black pixel, every G-buffer target keeps its clear value: albedo, normal, material, and the RG target that is cleared to -10000 and that every drawn surface overwrites. So this is not a surface drawn with a missing or black texture: nothing is drawn there. The sand just above the band is drawn by an indirect mesh draw (`MSNC_VS_TransformSkinD` fc17c8df70b6e03b) in the G-buffer list. 2. **The tiled lighting then lights an empty pixel.** `VS_TiledLighting` + `TL_PS_PBR_MATERIAL_STANDARD` (1cd9bc634417a981) writes 0, 0, 0 into the HDR target there; the neighbouring sand is lit by the `_SHEEN` variant from real G-buffer values. 3. **The indirect argument clamp is not the cause.** After the last clamp of the G-buffer list, 29 of 241 indirect executions got zero groups; for **all 29 the title's own arguments were already zero** (read from the source buffer before the clamp ran). 18 of them are vehicles (normal culling). The ground draw above the band got a real count (20 groups). 4. **The ground's depth is there.** The previous frame's depth pyramid that `meshlet_culling:CS_BatchCullMeshlets_Prev` reads (512x256 R32F, 9 levels) holds, reversed Z: sand above the band 0.0001, **band 0.0036**, water below 0.0048. The depth twin of the frame agrees (about 0.0035). That is a ground plane receding between the far sand and the nearer water, so the reading I'd give is: **the ground's depth is drawn, its G-buffer draw is not.** 5. The three meshlet-culling programs in that list (`CS_BatchCullInitArgs` 9146291b38ea9ce1, `CS_BatchCullMeshlets_Prev` fc5e66f8f873d3bb, `CS_BatchCullPreSkinnedMeshlets` 9f017d9011377efa) translate directly here (no wave64 retries, no approximate forms). **Where I stopped:** `--pixel --depth` shows no depth writes at all on this capture (it does not seem to follow the depth twins), so I could not name the draw that writes that depth, nor tell whether it is a depth pre-pass of the same ground or something else. `--split` and `--skip-clamps` lost the device on this capture. Things that may be worth a look on your side: - which pass writes depth for that ground, and whether the matching colour draw was left out (culled, not made, or dropped); - the depth twin / depth plane path; the frame line in these runs said "depth planes: 1.8 drawn from their twins per frame, 3749 times not given back to a twin, 3750 times used before the pass". A side note: in a build without the view-heap remap (#638), `CS_BatchCullMeshlets_Prev` reads its depth pyramid through view slot 990047, past the 737,855 slots a 1,000,000-view heap mirrors, so it read a null view there. With the remap that read is fine, and the black ground was still seen, so this is not the whole answer. ### Related: one-frame character "shards" (maybe #813) On the same card, characters turn into large stretched triangles for one frame, all the characters in view at once, more in crowds and after a character switch; black ground and black patches on clothes sometimes appear in the same frame. Ruled out here by A/B runs with a per-frame pop counter: the view-heap cap (port of #638), the defrag planner running (port of cool_fox c36f9f4), root-view windows cut at 4 MiB (port of #1197), card writes still in flight when a window is refreshed (counted: the same in shard frames and others), and every copy/timing setting of that tree's launcher (relay stages, card steps, placed order, batching, joined copies, uploads ahead, buffers in card memory from 64 KiB). I could not catch a shard frame with the recorder (five frames, 16 GB of RAM). ### Environment - RTX 3070 Laptop 8 GB, driver 621.01, Ryzen 7 6800H, 16 GB RAM, Windows 11. - Series S profile, title build 1.0.2.1. - Diagnostics build of CGBJ-main plus local ports (listed above).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 05:46:27 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 05:45 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-29 05:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1986#issuecomment-7251443981) 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

@⁠Praisser on GitHub · 2026-11-29 05:48 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)

Logs attached (issue-1986-logs.zip, personal paths and names replaced with <user> / <name>):

  • cgbjmain-recorded-frame-run-20261129-0917.log: the run in which the replayed frame was recorded (the recorder starts at 03:47:20 UTC; the . key at 03:50:20, presents 2222).
  • cgbjmain-shards-run-20261129-0851.log: a run at the same beach with black ground and character shards together in one frame.

There was no crash in either run, so there is no crashes.log or .crash.log. These are from a diagnostics build of CGBJ-main (see the disclosure above), not from a VIctory-NVIDIA release, so the file names differ from the template.

GPU: NVIDIA GeForce RTX 3070 Laptop 8 GB, driver 621.01. Windows 11 (build 26300). 16 GB RAM, Series S profile.

issue-1986-logs.zip

**@⁠Praisser** on GitHub · 2026-11-29 05:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1986#issuecomment-7251475561) > 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) Logs attached (`issue-1986-logs.zip`, personal paths and names replaced with `<user>` / `<name>`): - `cgbjmain-recorded-frame-run-20261129-0917.log`: the run in which the replayed frame was recorded (the recorder starts at 03:47:20 UTC; the `.` key at 03:50:20, presents 2222). - `cgbjmain-shards-run-20261129-0851.log`: a run at the same beach with black ground and character shards together in one frame. There was **no crash** in either run, so there is no `crashes.log` or `.crash.log`. These are from a diagnostics build of CGBJ-main (see the disclosure above), not from a VIctory-NVIDIA release, so the file names differ from the template. GPU: NVIDIA GeForce RTX 3070 Laptop 8 GB, driver 621.01. Windows 11 (build 26300). 16 GB RAM, Series S profile. [issue-1986-logs.zip](https://github.com/user-attachments/files/35564456/issue-1986-logs.zip)
Author
Owner

@⁠Praisser on GitHub · 2026-11-29 12:17 UTC · original

Update: found the cause, and it is already fixed by #996. This can be closed as a duplicate of what #996 fixes.

Going back over the same recorded frame, I listed every indirect draw of every G-buffer pass that the title sent with zero work. One program stood out: in the pass that draws the tessellated terrain near the player, all 12 draws of MST_DS_TerrainTransform got zero groups. Every other program in the frame got work on at least some of its draws.

  • The terrain tessellation itself works: the counts meshlet_tessellation:CS_InitCounts resets are filled by the MSTS_VS_TerrainTransformPassthrough dispatches (for example 0 -> 621), and CS_CalcChunkOffsets turns them into dispatch records.
  • Reading the argument clamp's job table back to the title's own buffer, those records are (22, 0, 0), (25, 0, 0) ... (77, 0, 0): X only, as #996 describes. The clamp passed Y and Z through, so D3D12 ran 0 groups and the terrain near the player was never drawn. Its depth (from the depth-only pass) was there, its G-buffer was not, and the tiled lighting lit the empty pixels black.

I applied #996 unchanged to the same tree (it applied cleanly; its WARP test passes) and checked in game: the black sand around the player is gone.

That also matches what testers describe in #583 ("the sand right around the player turns into black squares as I walk"): only the terrain near the player is drawn through this tessellated path, in square patches, so it is the part that went missing.

Corrections to my first post, for anyone reading it later: the depth-twin / depth-plane suspicion and the occlusion-culling suspicion were wrong (both were ruled out by experiment), and the draws I checked first were in a different G-buffer pass than the terrain's.

The one-frame character "shards" mentioned at the end of my first post are a separate problem and are still there; I'll open a separate issue if I find something concrete.

**@⁠Praisser** on GitHub · 2026-11-29 12:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1986#issuecomment-7255701746) **Update: found the cause, and it is already fixed by #996.** This can be closed as a duplicate of what #996 fixes. Going back over the same recorded frame, I listed every indirect draw of every G-buffer pass that the title sent with zero work. One program stood out: in the pass that draws the tessellated terrain near the player, **all 12 draws of `MST_DS_TerrainTransform` got zero groups**. Every other program in the frame got work on at least some of its draws. - The terrain tessellation itself works: the counts `meshlet_tessellation:CS_InitCounts` resets are filled by the `MSTS_VS_TerrainTransformPassthrough` dispatches (for example 0 -> 621), and `CS_CalcChunkOffsets` turns them into dispatch records. - Reading the argument clamp's job table back to the title's own buffer, those records are **(22, 0, 0), (25, 0, 0) ... (77, 0, 0)**: X only, as #996 describes. The clamp passed Y and Z through, so D3D12 ran 0 groups and the terrain near the player was never drawn. Its depth (from the depth-only pass) was there, its G-buffer was not, and the tiled lighting lit the empty pixels black. I applied #996 unchanged to the same tree (it applied cleanly; its WARP test passes) and checked in game: **the black sand around the player is gone.** That also matches what testers describe in #583 ("the sand right around the player turns into black squares as I walk"): only the terrain near the player is drawn through this tessellated path, in square patches, so it is the part that went missing. Corrections to my first post, for anyone reading it later: the depth-twin / depth-plane suspicion and the occlusion-culling suspicion were wrong (both were ruled out by experiment), and the draws I checked first were in a different G-buffer pass than the terrain's. The one-frame character "shards" mentioned at the end of my first post are a separate problem and are still there; I'll open a separate issue if I find something concrete.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:38 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1986#issuecomment-7283320090) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
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#1986
No description provided.