v2026.12.05.01-test (post-merge): shadowed areas go black in 16x16 screen tiles at a 1440p render size; gone at 1080p or DLSS Quality (RTX 4090) #666

Open
opened 2026-12-05 23:50:49 +00:00 by untried844 · 5 comments

What looks wrong

Build line: post-merge (the branch that was Merge), v2026.12.05.01-test. Not the old v2026.12.04.01 line.

At a render size of 2560x1440 the shadowed parts of the picture are black in square blocks that step along the shadow edges. Sunlit surfaces and characters are fine. It should be ordinary shadow, lit by indirect light. Screenshot below, taken 23:14:32 UTC on 5 Dec, in the run the log lines are from (outdoors, daylight, a wooden deck).

Two changes each make it go away:

  • RESOLUTION 1920x1080, still DLAA.
  • RESOLUTION 2560x1440 with the upscaler mode at Quality in place of DLAA (render size about 1712x960).

So it follows the render size, not the output size. Frame generation makes no difference: I saw the blocks at 1440p DLAA with it off (an earlier run, no log of it) and at 2x (this run).

Where I would look

crates/darner-gpu/src/indirect.rs executes some indirect dispatches in two parts when their record passes 65,535 groups in x (bound_split, the OVER list). By its own comments the final gather of indirect light (2dc364df5d3278b8, 940c2635dc1312f4) runs 115,200 groups at 1440p. At 1080p it is 120 x 68 tiles x 8 = 65,280, just under the limit, so it is not split there. At Quality in 1440p it is 107 x 60 x 8 = 51,360, also under. That fits what I see, but I have not confirmed it: the shadow programs on the same list (559d9f0184e15fe3, 0ea6fac38d096770) are candidates too.

With Quality at 1440p I once saw a dark band move across the side of a distant parked van over a few seconds. It may be something else; I mention it only in case it helps.

Source reading and write-up were AI-assisted.

Before you post

  • I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this.
  • This issue is about one problem.
  • I verified the game files and run no mods.

CONSOLE in F1

Series X

GPU and driver

NVIDIA GeForce RTX 4090 24 GB, driver 621.40

CPU, RAM and Windows version

Intel Core i9-13900K, 32 GB DDR5-6400 (2 sticks), Windows 11 Pro build 26300

Darner release or commit

v2026.12.05.01-test

Settings

Series X, RESOLUTION default (2560x1440 picture), DLSS, mode DLAA, preset M, frame generation 2x (DLSS), HDR, borderless full screen, 60 fps cap, RAY TRACING at its default (hardware). Display: 2560x1440 at 200% scaling.

darner-settings.txt: DARNER_ASPECT=16:9, DARNER_HDR=1, DARNER_FULLSCREEN=1. Nothing on the start line.

Logs

No zip: the run ended by closing the window, with no crash. Console text of the run with the fault (started 23:12:45 UTC, 2560x1440 DLAA, frame generation 2x), the lines on the build and the picture and every warning; the user folder in the one path is replaced. The run has 6 warnings (the other two are a 20 s stall while pipelines were made) and no errors.

2026-12-05T23:12:45.499590Z  INFO darner::run: darner build build=v2026.12.05.01-test (TEST BUILD)
2026-12-05T23:12:46.497401Z  INFO darner_gpu::shader_replace: shader replacements: folder read folder=%LOCALAPPDATA%\darner\shader-replace\v2026.12.05.01-test usable=85 with_structure_views=64 with_interface=5 refused=0
2026-12-05T23:12:49.428925Z  WARN darner_hle::modules::kernel: host DLL: outside the host policy, refused dll="rpcrt4.dll"
2026-12-05T23:12:50.276815Z  WARN darner_gpu::descriptor::host: host view heap: title slots past 606782 read a null slot count=1245184 end=606782
2026-12-05T23:12:52.386823Z  INFO darner_gpu::rt: host ray tracing: the device's ray-tracing tier tier=1.2
2026-12-05T23:12:53.950151Z  INFO darner_gpu::rt: host ray tracing: on, the triangles' positions are copied into a pool mb=512
2026-12-05T23:13:43.696161Z  WARN darner_gpu::descriptor::host: unordered buffer view: the host would refuse it, left null format=39 first=10811168 count=0 stride=0 raw=true width=182452224
2026-12-05T23:13:45.921201Z  INFO darner_gpu::dlss: DLSS: feature made render=2560x1440 output=2560x1440 perf_quality=5 preset="M" flags=0x4b
2026-12-05T23:14:05.231142Z  INFO darner_gpu::dlssfg: DLSS frame generation: feature made picture=2560x1440 format 24 render=2560x1440 generated_each=1
2026-12-05T23:14:32.256723Z  WARN darner_gpu::descriptor::host: buffer view: not on an element of its host copy, left null offset=12896 element=12

exe sha256 477C08B051CE899B076973B45A1979699FAD3C32850862DE4F9FEF1D8588B5C7. The whole console text on request.

Are you working on a fix?

No

### What looks wrong Build line: `post-merge` (the branch that was `Merge`), `v2026.12.05.01-test`. Not the old `v2026.12.04.01` line. At a render size of 2560x1440 the shadowed parts of the picture are black in square blocks that step along the shadow edges. Sunlit surfaces and characters are fine. It should be ordinary shadow, lit by indirect light. Screenshot below, taken 23:14:32 UTC on 5 Dec, in the run the log lines are from (outdoors, daylight, a wooden deck). Two changes each make it go away: - RESOLUTION 1920x1080, still DLAA. - RESOLUTION 2560x1440 with the upscaler mode at Quality in place of DLAA (render size about 1712x960). So it follows the render size, not the output size. Frame generation makes no difference: I saw the blocks at 1440p DLAA with it off (an earlier run, no log of it) and at 2x (this run). ### Where I would look `crates/darner-gpu/src/indirect.rs` executes some indirect dispatches in two parts when their record passes 65,535 groups in x (`bound_split`, the `OVER` list). By its own comments the final gather of indirect light (`2dc364df5d3278b8`, `940c2635dc1312f4`) runs 115,200 groups at 1440p. At 1080p it is 120 x 68 tiles x 8 = 65,280, just under the limit, so it is not split there. At Quality in 1440p it is 107 x 60 x 8 = 51,360, also under. That fits what I see, but I have not confirmed it: the shadow programs on the same list (`559d9f0184e15fe3`, `0ea6fac38d096770`) are candidates too. With Quality at 1440p I once saw a dark band move across the side of a distant parked van over a few seconds. It may be something else; I mention it only in case it helps. Source reading and write-up were AI-assisted. ### Before you post - [x] I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this. - [x] This issue is about one problem. - [x] I verified the game files and run no mods. ### CONSOLE in F1 Series X ### GPU and driver NVIDIA GeForce RTX 4090 24 GB, driver 621.40 ### CPU, RAM and Windows version Intel Core i9-13900K, 32 GB DDR5-6400 (2 sticks), Windows 11 Pro build 26300 ### Darner release or commit v2026.12.05.01-test ### Settings Series X, RESOLUTION default (2560x1440 picture), DLSS, mode DLAA, preset M, frame generation 2x (DLSS), HDR, borderless full screen, 60 fps cap, RAY TRACING at its default (hardware). Display: 2560x1440 at 200% scaling. `darner-settings.txt`: `DARNER_ASPECT=16:9`, `DARNER_HDR=1`, `DARNER_FULLSCREEN=1`. Nothing on the start line. ### Logs No zip: the run ended by closing the window, with no crash. Console text of the run with the fault (started 23:12:45 UTC, 2560x1440 DLAA, frame generation 2x), the lines on the build and the picture and every warning; the user folder in the one path is replaced. The run has 6 warnings (the other two are a 20 s stall while pipelines were made) and no errors. ~~~~text 2026-12-05T23:12:45.499590Z INFO darner::run: darner build build=v2026.12.05.01-test (TEST BUILD) 2026-12-05T23:12:46.497401Z INFO darner_gpu::shader_replace: shader replacements: folder read folder=%LOCALAPPDATA%\darner\shader-replace\v2026.12.05.01-test usable=85 with_structure_views=64 with_interface=5 refused=0 2026-12-05T23:12:49.428925Z WARN darner_hle::modules::kernel: host DLL: outside the host policy, refused dll="rpcrt4.dll" 2026-12-05T23:12:50.276815Z WARN darner_gpu::descriptor::host: host view heap: title slots past 606782 read a null slot count=1245184 end=606782 2026-12-05T23:12:52.386823Z INFO darner_gpu::rt: host ray tracing: the device's ray-tracing tier tier=1.2 2026-12-05T23:12:53.950151Z INFO darner_gpu::rt: host ray tracing: on, the triangles' positions are copied into a pool mb=512 2026-12-05T23:13:43.696161Z WARN darner_gpu::descriptor::host: unordered buffer view: the host would refuse it, left null format=39 first=10811168 count=0 stride=0 raw=true width=182452224 2026-12-05T23:13:45.921201Z INFO darner_gpu::dlss: DLSS: feature made render=2560x1440 output=2560x1440 perf_quality=5 preset="M" flags=0x4b 2026-12-05T23:14:05.231142Z INFO darner_gpu::dlssfg: DLSS frame generation: feature made picture=2560x1440 format 24 render=2560x1440 generated_each=1 2026-12-05T23:14:32.256723Z WARN darner_gpu::descriptor::host: buffer view: not on an element of its host copy, left null offset=12896 element=12 ~~~~ exe sha256 `477C08B051CE899B076973B45A1979699FAD3C32850862DE4F9FEF1D8588B5C7`. The whole console text on request. ### Are you working on a fix? No
Author

Fixed here by a local patch on post-merge at 28a9b42: the black blocks are gone at 2560x1440 DLAA in the same spot as the screenshot, checked by eye on the RTX 4090. No pull request from me; the patch is below for whoever wants it.

System: Intel Core i9-13900K · 32 GB DDR5-6400 (2 sticks) · NVIDIA GeForce RTX 4090 24 GB, driver 621.40 · Windows 11 Pro build 26300

Two changes, made together, so I can't say which one is needed (or whether both are):

  1. draw.rs: an indirect dispatch by a program with a group base whose bound is Bound::Unread is executed in parts as well, not only the programs in OVER. If its record can't be clamped it runs as the title made it, as before.
  2. indirect.rs, the clamp shader: a dispatch in parts is no longer charged to the list's budget.

Not measured: the cost of the extra clamp passes. Not tested: anything but 1440p DLAA on this card. cargo test -p darner-gpu --lib passes (13).

Patch (2 files)
diff --git a/crates/darner-gpu/src/draw.rs b/crates/darner-gpu/src/draw.rs
index 7c7db5d..beb6819 100644
--- a/crates/darner-gpu/src/draw.rs
+++ b/crates/darner-gpu/src/draw.rs
@@ -6321,7 +6321,13 @@ impl State {
         let exempt = based
             .and(p.stages.first())
             .and_then(|stage| crate::indirect::bounded(stage.shader.hash.as_str()));
-        let parts = based
+        // A program whose record's bound nothing read is executed in parts
+        // too: at a render size of 2560x1440 (DLAA) some record passes what
+        // the host runs in one dimension and its tiles stay black (issue
+        // 666). If its record cannot be clamped it runs as the title made it.
+        let unread = matches!(exempt, Some(crate::indirect::Bound::Unread));
+        let exempt = exempt.filter(|_| !unread);
+        let mut parts = based
             .filter(|_| exempt.is_none())
             .zip(host_signature(DISPATCH, crate::indirect::PART_BYTES as u32));
         let (bounded, at) = {
@@ -6341,11 +6347,16 @@ impl State {
             // apply to it. Records executed in parts are clamped: a clamp
             // binds a compute pipeline of its own and copies clamped active
             // records into a place of a scratch buffer.
+            let tried = parts.is_some();
+            let split = if tried { crate::indirect::bound_split(list, (&args.buffer, offset)) } else { None };
+            if split.is_none() && unread {
+                parts = None;
+            }
             let unclamped = parts.is_none();
-            let bounded = if parts.is_some() {
-                crate::indirect::bound_split(list, (&args.buffer, offset))
-            } else {
-                Some((args.buffer.clone(), offset))
+            let bounded = match split {
+                Some(split) => Some(split),
+                None if unclamped => Some((args.buffer.clone(), offset)),
+                None => None,
             };
             let Some((bounded, at)) = bounded else {
                 why("not bounded (no clamp, or arguments not 4-byte aligned)");
@@ -6363,7 +6374,7 @@ impl State {
             #[cfg(not(feature = "diagnostics"))]
             let checked = false;
             // (A clamp or a check bound its own compute pipeline and root.)
-            if !unclamped || checked {
+            if tried || checked {
                 self.host_pipeline = 0;
                 self.host_roots[1] = 0;
             }
diff --git a/crates/darner-gpu/src/indirect.rs b/crates/darner-gpu/src/indirect.rs
index a1a8eb3..27a8ec6 100644
--- a/crates/darner-gpu/src/indirect.rs
+++ b/crates/darner-gpu/src/indirect.rs
@@ -133,7 +133,10 @@ void main(uint3 id : SV_DispatchThreadID, uint gi : SV_GroupIndex) {
         if (g.z != 0 && g.x * g.y > GROUPS / g.z) {
             g = uint3(0, 0, 0);
         }
-        cost = g.x * g.y * g.z * 64u;
+        // A dispatch in parts is not charged to the list's budget: it is
+        // bounded above (GROUPS, and twice 65,535 in x), and a list with
+        // many of them at a large render size must not run the last empty.
+        cost = split ? 0u : g.x * g.y * g.z * 64u;
         groups = g;
     } else if (active) {
         // Mesh dispatches: the console's are one-dimensional.

Code change and write-up were AI-assisted.


Correction (6 Dec): two things in this thread need adjusting.

  • The patch removes the black shadow tiles, as said. A second fault is still there with it: square blocks on water next to the outline of objects in front of it. That one also shows without the patch, in DLSS Quality and with DARNER_RT=off, so it is a separate fault. Details are on #664.
  • DLSS Quality is not a reliable way around the black tiles on the unpatched build. In a later run of the release exe at Quality (1712x960 render) I saw black blocks on land again. That would fit the per-list budget in the clamp shader running out in a busy scene, but I have not confirmed it.
Fixed here by a local patch on `post-merge` at `28a9b42`: the black blocks are gone at 2560x1440 DLAA in the same spot as the screenshot, checked by eye on the RTX 4090. No pull request from me; the patch is below for whoever wants it. **System:** Intel Core i9-13900K · 32 GB DDR5-6400 (2 sticks) · NVIDIA GeForce RTX 4090 24 GB, driver 621.40 · Windows 11 Pro build 26300 Two changes, made together, so I can't say which one is needed (or whether both are): 1. `draw.rs`: an indirect dispatch by a program with a group base whose bound is `Bound::Unread` is executed in parts as well, not only the programs in `OVER`. If its record can't be clamped it runs as the title made it, as before. 2. `indirect.rs`, the clamp shader: a dispatch in parts is no longer charged to the list's budget. Not measured: the cost of the extra clamp passes. Not tested: anything but 1440p DLAA on this card. `cargo test -p darner-gpu --lib` passes (13). <details><summary>Patch (2 files)</summary> ~~~~diff diff --git a/crates/darner-gpu/src/draw.rs b/crates/darner-gpu/src/draw.rs index 7c7db5d..beb6819 100644 --- a/crates/darner-gpu/src/draw.rs +++ b/crates/darner-gpu/src/draw.rs @@ -6321,7 +6321,13 @@ impl State { let exempt = based .and(p.stages.first()) .and_then(|stage| crate::indirect::bounded(stage.shader.hash.as_str())); - let parts = based + // A program whose record's bound nothing read is executed in parts + // too: at a render size of 2560x1440 (DLAA) some record passes what + // the host runs in one dimension and its tiles stay black (issue + // 666). If its record cannot be clamped it runs as the title made it. + let unread = matches!(exempt, Some(crate::indirect::Bound::Unread)); + let exempt = exempt.filter(|_| !unread); + let mut parts = based .filter(|_| exempt.is_none()) .zip(host_signature(DISPATCH, crate::indirect::PART_BYTES as u32)); let (bounded, at) = { @@ -6341,11 +6347,16 @@ impl State { // apply to it. Records executed in parts are clamped: a clamp // binds a compute pipeline of its own and copies clamped active // records into a place of a scratch buffer. + let tried = parts.is_some(); + let split = if tried { crate::indirect::bound_split(list, (&args.buffer, offset)) } else { None }; + if split.is_none() && unread { + parts = None; + } let unclamped = parts.is_none(); - let bounded = if parts.is_some() { - crate::indirect::bound_split(list, (&args.buffer, offset)) - } else { - Some((args.buffer.clone(), offset)) + let bounded = match split { + Some(split) => Some(split), + None if unclamped => Some((args.buffer.clone(), offset)), + None => None, }; let Some((bounded, at)) = bounded else { why("not bounded (no clamp, or arguments not 4-byte aligned)"); @@ -6363,7 +6374,7 @@ impl State { #[cfg(not(feature = "diagnostics"))] let checked = false; // (A clamp or a check bound its own compute pipeline and root.) - if !unclamped || checked { + if tried || checked { self.host_pipeline = 0; self.host_roots[1] = 0; } diff --git a/crates/darner-gpu/src/indirect.rs b/crates/darner-gpu/src/indirect.rs index a1a8eb3..27a8ec6 100644 --- a/crates/darner-gpu/src/indirect.rs +++ b/crates/darner-gpu/src/indirect.rs @@ -133,7 +133,10 @@ void main(uint3 id : SV_DispatchThreadID, uint gi : SV_GroupIndex) { if (g.z != 0 && g.x * g.y > GROUPS / g.z) { g = uint3(0, 0, 0); } - cost = g.x * g.y * g.z * 64u; + // A dispatch in parts is not charged to the list's budget: it is + // bounded above (GROUPS, and twice 65,535 in x), and a list with + // many of them at a large render size must not run the last empty. + cost = split ? 0u : g.x * g.y * g.z * 64u; groups = g; } else if (active) { // Mesh dispatches: the console's are one-dimensional. ~~~~ </details> Code change and write-up were AI-assisted. --- **Correction (6 Dec):** two things in this thread need adjusting. - The patch removes the black shadow tiles, as said. A second fault is still there with it: square blocks on water next to the outline of objects in front of it. That one also shows without the patch, in DLSS Quality and with `DARNER_RT=off`, so it is a separate fault. Details are on #664. - DLSS Quality is not a reliable way around the black tiles on the unpatched build. In a later run of the release exe at Quality (1712x960 render) I saw black blocks on land again. That would fit the per-list budget in the clamp shader running out in a busy scene, but I have not confirmed it.

That matches what crates/darner-gpu/src/indirect.rs and shaders/replace/ show on 28a9b42:

  • Checking replacement compute shaders reading USER_GROUP_BASE, OVER (indirect.rs:441-453) currently only lists 11 hashes, while all 8 ScreenProbes_TraceRays_* replacements (0f9382de73901605, 306e8053bb5c7b83, 3adb6fc86da11a5b, 9ac4b1d124bf5473, ca91c1392fd098a4, d5f6125b52723fc9, f22a76fcb967ee59, f76abe011ea678b3), 6 other TraceShadowRays_* replacements (002e93a6cc2aa355, 07c93bfb77fecebb, 0e64f14fae060d04, 4e816e1ef600ddcf, 96ccb14ef981fd85, dbdbf36298727135), and any other FinalGather_* permutations fall into Bound::Unread (unsplit).
  • That directly explains why untried844's patch splitting Bound::Unread fixed the 1440p DLAA blocks. Running a --features diagnostics build at 2560x1440 DLAA and checking EXEMPT_ASKED / split_report (draw.rs:6503-6520) will name the exact offending shader hash(es) so OVER can target only the shaders that actually exceed 65,535 groups.
That matches what `crates/darner-gpu/src/indirect.rs` and `shaders/replace/` show on `28a9b42`: - Checking replacement compute shaders reading `USER_GROUP_BASE`, `OVER` (`indirect.rs:441-453`) currently only lists 11 hashes, while all 8 `ScreenProbes_TraceRays_*` replacements (`0f9382de73901605`, `306e8053bb5c7b83`, `3adb6fc86da11a5b`, `9ac4b1d124bf5473`, `ca91c1392fd098a4`, `d5f6125b52723fc9`, `f22a76fcb967ee59`, `f76abe011ea678b3`), 6 other `TraceShadowRays_*` replacements (`002e93a6cc2aa355`, `07c93bfb77fecebb`, `0e64f14fae060d04`, `4e816e1ef600ddcf`, `96ccb14ef981fd85`, `dbdbf36298727135`), and any other `FinalGather_*` permutations fall into `Bound::Unread` (unsplit). - That directly explains why `untried844`'s patch splitting `Bound::Unread` fixed the 1440p DLAA blocks. Running a `--features diagnostics` build at 2560x1440 DLAA and checking `EXEMPT_ASKED` / `split_report` (`draw.rs:6503-6520`) will name the exact offending shader hash(es) so `OVER` can target only the shaders that actually exceed 65,535 groups.
Author

For anyone who wants to try the fix without building it: attached is an unofficial build of 28a9b42 with my local changes, and the changes themselves as a patch.

  • darner.exe: post-merge at 28a9b42 plus local-fixes-on-28a9b42.diff. sha256 bd63eb1c9db3f3220208dfc7ac9d044e352bbaa95093b76355c6b53fb4d16282.
  • local-fixes-on-28a9b42.diff: the two indirect dispatch changes from the comment above, the console DSP convolution brought over from the old code line (phone, TV and headset voices play again), and a full screen placement change for DARNER_FULLSCREEN.
  • README.txt: the same in more words.

What is checked, on one RTX 4090 only: the black shadow blocks are gone at 2560x1440 DLAA, and phone call voices play. The full screen change is not confirmed yet. The square blocks on water (#664) are not fixed by it.

This is not an official release; keep your original darner.exe. The code changes were AI-assisted.

For anyone who wants to try the fix without building it: attached is an unofficial build of `28a9b42` with my local changes, and the changes themselves as a patch. - `darner.exe`: `post-merge` at `28a9b42` plus `local-fixes-on-28a9b42.diff`. sha256 `bd63eb1c9db3f3220208dfc7ac9d044e352bbaa95093b76355c6b53fb4d16282`. - `local-fixes-on-28a9b42.diff`: the two indirect dispatch changes from the comment above, the console DSP convolution brought over from the old code line (phone, TV and headset voices play again), and a full screen placement change for `DARNER_FULLSCREEN`. - `README.txt`: the same in more words. What is checked, on one RTX 4090 only: the black shadow blocks are gone at 2560x1440 DLAA, and phone call voices play. The full screen change is not confirmed yet. The square blocks on water (#664) are not fixed by it. This is not an official release; keep your original `darner.exe`. The code changes were AI-assisted.
TrustNo1 changed title from [rendering] v2026.12.05.01-test (post-merge): shadowed areas go black in 16x16 screen tiles at a 1440p render size; gone at 1080p or DLSS Quality (RTX 4090) to v2026.12.05.01-test (post-merge): shadowed areas go black in 16x16 screen tiles at a 1440p render size; gone at 1080p or DLSS Quality (RTX 4090) 2026-12-06 03:18:26 +00:00

Diagnostics capture on post-merge 28a9b42 (--features diagnostics), which names the programs split_report flags at 2560x1440 DLAA.

Setup: RTX 5070 Ti 16 GB, driver 621.40, 2560x1440, DLAA, hardware ray tracing, DLSS frame generation 2x. About 16 minutes of play, 190 split_report windows (~5 s each).

What was reported (indirect records executed as made that asked more than 65,535 groups in a dimension; the tag is the first 8 hex digits of the program hash):

Window (UTC) Per frame Most groups in x Tag Program
01:40:38 0.0 (> 0) 65,536 0f303afc 0f303afc7d91c03a CS_TrailMapBlitBlurCombineFade_indirect
01:40:44 0.0 (> 0) 65,536 0f303afc same
01:41:04 0.1 65,536 c214b314 c214b314ab910fcc CS_TrailMapDepthBlurMasked_Indirect

The other 187 windows report none, which is printed only when the raw count is exactly 0.

Only the largest tag is reported. The clamp's check keeps the tag with InterlockedMax (budget word 9) and the CPU folds lists with fetch_max, so a window names only the largest tag among the programs that exceeded. For the 7 sibling *TrailMap*Indirect* programs this gives:

  • d5cb9b9e4bae6429, f5eb079956ef961e: no record above 65,535 in any window (their tags are above both reported tags).
  • 296c09ed2b3beaea, 437ef729853d5c13, 46b4fe072bcf0529, 52cf34ed39cdfa55: none in the 01:40:38 and 01:40:44 windows; unknown at 01:41:04 (masked by c214b314).
  • 0c0df5f64623380b: unknown in all three windows (its tag is below both).

This covers only records the check reads (single-record dispatches, no count buffer, programs with a group base) and this session's content only. Once the two programs above are split they no longer go through the check, so a rerun of the same scene would name any sibling that also exceeds.

None of the ScreenProbes_TraceRays_* / TraceShadowRays_* / FinalGather_* hashes listed earlier in this thread showed up: on this card and scene, the only programs past the limit at 1440p DLAA were these two trail-map ones, in 3 windows out of 190.

Budget: all 942 clamp lines report 0.00 records per frame whose counts the clamp changed, the most of a list's indirect budget any run spent was 5.49%, and 0 runs spent all of it. A 65,536-group record charges 65,536 x 64 = 2^22 threads, 1/32 of the per-list budget. So in this run the budget never ran out, and cost = split ? 0u : ... was not needed here.

Proposed fix: add 0f303afc7d91c03a and c214b314ab910fcc to OVER in crates/darner-gpu/src/indirect.rs (kept sorted for binary_search); siblings stay out until something shows they exceed.

Diagnostics capture on `post-merge` 28a9b42 (`--features diagnostics`), which names the programs `split_report` flags at 2560x1440 DLAA. **Setup:** RTX 5070 Ti 16 GB, driver 621.40, 2560x1440, DLAA, hardware ray tracing, DLSS frame generation 2x. About 16 minutes of play, 190 `split_report` windows (~5 s each). **What was reported** (`indirect records executed as made that asked more than 65,535 groups in a dimension`; the tag is the first 8 hex digits of the program hash): | Window (UTC) | Per frame | Most groups in x | Tag | Program | |---|---|---|---|---| | 01:40:38 | 0.0 (> 0) | 65,536 | `0f303afc` | `0f303afc7d91c03a` CS_TrailMapBlitBlurCombineFade_indirect | | 01:40:44 | 0.0 (> 0) | 65,536 | `0f303afc` | same | | 01:41:04 | 0.1 | 65,536 | `c214b314` | `c214b314ab910fcc` CS_TrailMapDepthBlurMasked_Indirect | The other 187 windows report `none`, which is printed only when the raw count is exactly 0. **Only the largest tag is reported.** The clamp's check keeps the tag with `InterlockedMax` (budget word 9) and the CPU folds lists with `fetch_max`, so a window names only the largest tag among the programs that exceeded. For the 7 sibling `*TrailMap*Indirect*` programs this gives: - `d5cb9b9e4bae6429`, `f5eb079956ef961e`: no record above 65,535 in any window (their tags are above both reported tags). - `296c09ed2b3beaea`, `437ef729853d5c13`, `46b4fe072bcf0529`, `52cf34ed39cdfa55`: none in the 01:40:38 and 01:40:44 windows; unknown at 01:41:04 (masked by `c214b314`). - `0c0df5f64623380b`: unknown in all three windows (its tag is below both). This covers only records the check reads (single-record dispatches, no count buffer, programs with a group base) and this session's content only. Once the two programs above are split they no longer go through the check, so a rerun of the same scene would name any sibling that also exceeds. None of the `ScreenProbes_TraceRays_*` / `TraceShadowRays_*` / `FinalGather_*` hashes listed earlier in this thread showed up: on this card and scene, the only programs past the limit at 1440p DLAA were these two trail-map ones, in 3 windows out of 190. **Budget:** all 942 clamp lines report 0.00 records per frame whose counts the clamp changed, the most of a list's indirect budget any run spent was 5.49%, and 0 runs spent all of it. A 65,536-group record charges 65,536 x 64 = 2^22 threads, 1/32 of the per-list budget. So in this run the budget never ran out, and `cost = split ? 0u : ...` was not needed here. Proposed fix: add `0f303afc7d91c03a` and `c214b314ab910fcc` to `OVER` in `crates/darner-gpu/src/indirect.rs` (kept sorted for `binary_search`); siblings stay out until something shows they exceed.
Author

Updated unofficial build, replacing the zip in my comment above: post-merge 28a9b42 plus five local changes, with the changes as a patch (local-fixes-on-28a9b42.diff) and a readme. Tested on one PC only.

System: Intel Core i9-13900K · 32 GB DDR5-6400 (2 sticks) · NVIDIA GeForce RTX 4090 24 GB, driver 621.40 · Windows 11 Pro build 26300. Series X profile, 2560x1440 output, HDR on, frame generation 2x.

  • Water squares (#664): fixed here. TV_GenerateTiles 1aa247ed3653b616 as Rule::LanePairs in place of Rule::LocalWaves.
  • A ring of bright blocks around the character's head, where the sun shadow was missing: fixed here. The remaining translated CS_ShadowRenderTiled* programs take Rule::LanePairs like the six that already do.
  • Black shadow blocks (this issue): my earlier comment said they were gone. That holds at 2560x1440 DLAA in the first spot, but I saw black blocks again elsewhere on a build with only that change, so it is partial.
  • Phone and headset voices (the DSP convolution from Main), and full screen at the start with DARNER_FULLSCREEN.

darner.exe sha256 4297352aaaf85663e8151266adbc2446f2fbbe73e41226c988c6b1517bf31fbc. The first start translates the changed shaders again.

Each change is also going up as its own pull request against post-merge. The code changes were AI-assisted.

Updated unofficial build, replacing the zip in my comment above: `post-merge` `28a9b42` plus five local changes, with the changes as a patch (`local-fixes-on-28a9b42.diff`) and a readme. Tested on one PC only. **System:** Intel Core i9-13900K · 32 GB DDR5-6400 (2 sticks) · NVIDIA GeForce RTX 4090 24 GB, driver 621.40 · Windows 11 Pro build 26300. Series X profile, 2560x1440 output, HDR on, frame generation 2x. - **Water squares (#664):** fixed here. `TV_GenerateTiles` `1aa247ed3653b616` as `Rule::LanePairs` in place of `Rule::LocalWaves`. - **A ring of bright blocks around the character's head, where the sun shadow was missing:** fixed here. The remaining translated `CS_ShadowRenderTiled*` programs take `Rule::LanePairs` like the six that already do. - **Black shadow blocks (this issue):** my earlier comment said they were gone. That holds at 2560x1440 DLAA in the first spot, but I saw black blocks again elsewhere on a build with only that change, so it is partial. - **Phone and headset voices** (the DSP convolution from `Main`), and **full screen at the start** with `DARNER_FULLSCREEN`. `darner.exe` sha256 `4297352aaaf85663e8151266adbc2446f2fbbe73e41226c988c6b1517bf31fbc`. The first start translates the changed shaders again. Each change is also going up as its own pull request against `post-merge`. The code changes were AI-assisted.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner#666
No description provided.