WIP: [pr-fix][rendering] Indirect: Bound::Unread programs run in parts, and parts are not charged to the list budget (partial, refs #666) #704

Draft
untried844 wants to merge 1 commit from untried844/Darner:indirect-unread-in-parts into post-merge
First-time contributor

Refs #666

Partial. It removed the black blocks at 2560x1440 DLAA in the place of the issue's screenshot, but I saw black blocks again elsewhere on a build with only this change, and MasterWolf's capture on an RTX 5070 Ti (issue #666) found the budget never ran out there. Opened as a draft so the change can be read and tried next to #694.

Update, 2026-12-06: on builds holding this change together with #701 (the tiled shadow programs as lane pairs) I have not seen black blocks again, in the place of the issue or under the building where they showed before. So #701 may be what removes the rest, and this change may not be needed for it. A long session is planned to confirm, and a build with #701 and without this change has not been run yet. It stays WIP until then.

Update 2, 2026-12-06: a tester on an RTX 5070 ran a build holding this change together with #701 and reports the dark blocks remain (store interior, DLSS Quality at 1712x960, hardware ray tracing; their overlay shows video memory at 9.6 of 10.4 GB). So this change with #701 does not remove them on that card. Their scene is indoors under local lights, where mine was sun shadow outdoors, so it may be a second fault with the same look; that is not established.

What it changes

  • The problem on post-merge: issue #666, shadowed areas black in 16x16 tiles at a render size of 2560x1440.
  1. draw.rs: a based program whose record's bound nothing read (Bound::Unread) is executed in parts like the other based programs. If its record cannot be clamped it still runs as the title made it.
  2. indirect.rs: a dispatch in parts is not charged to the list's indirect budget (cost = split ? 0u : ...).

How it was tested

  • Tested revision: this commit on post-merge 28a9b42.

  • Commands and results: cargo build --release --locked -p darner on this branch alone: builds.

  • Changes a default: yes, for every card (which records are split, and what the budget counts).

  • A/B result, 2560x1440 DLAA, the issue's save and view:

    A (28a9b42) B (this change)
    Black 16x16 blocks in shadow, first place present gone
    Black blocks under a building, another place not compared present on a build with this change and without the tiled shadow change
  • Checks run on that revision: cargo build. cargo clippy and cargo test not run.

  • Gameplay: 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, DLSS Quality (1712x960 render) and DLAA, HDR on, frame generation 2x, hardware ray tracing.

  • Hardware dependence: untested elsewhere; two testers on other cards (RTX 4070 S, RTX 5070) report the black boxes stayed with a build holding this change.

  • Coverage gaps: I did not separate part 1 from part 2 in the place where it helped. Frame time not measured.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on post-merge (28a9b42).
  • The diff contains no game files, code or assets.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #694 (lists the two trail-map programs that asked 65,536 groups; same file, merges cleanly with this)
  • Replaces or overlaps: overlaps #694 in purpose; that one is the measured fix

The change was written with a coding agent (AI-assisted) and run by me in the game.

Refs #666 **Partial.** It removed the black blocks at 2560x1440 DLAA in the place of the issue's screenshot, but I saw black blocks again elsewhere on a build with only this change, and MasterWolf's capture on an RTX 5070 Ti (issue #666) found the budget never ran out there. Opened as a draft so the change can be read and tried next to #694. **Update, 2026-12-06:** on builds holding this change together with #701 (the tiled shadow programs as lane pairs) I have not seen black blocks again, in the place of the issue or under the building where they showed before. So #701 may be what removes the rest, and this change may not be needed for it. A long session is planned to confirm, and a build with #701 and without this change has not been run yet. It stays WIP until then. **Update 2, 2026-12-06:** a tester on an RTX 5070 ran a build holding this change together with #701 and reports the dark blocks remain (store interior, DLSS Quality at 1712x960, hardware ray tracing; their overlay shows video memory at 9.6 of 10.4 GB). So this change with #701 does not remove them on that card. Their scene is indoors under local lights, where mine was sun shadow outdoors, so it may be a second fault with the same look; that is not established. ## What it changes - The problem on `post-merge`: issue #666, shadowed areas black in 16x16 tiles at a render size of 2560x1440. 1. `draw.rs`: a based program whose record's bound nothing read (`Bound::Unread`) is executed in parts like the other based programs. If its record cannot be clamped it still runs as the title made it. 2. `indirect.rs`: a dispatch in parts is not charged to the list's indirect budget (`cost = split ? 0u : ...`). ## How it was tested - Tested revision: this commit on `post-merge` `28a9b42`. - Commands and results: `cargo build --release --locked -p darner` on this branch alone: builds. - Changes a default: yes, for every card (which records are split, and what the budget counts). - A/B result, 2560x1440 DLAA, the issue's save and view: | | A (`28a9b42`) | B (this change) | |---|---|---| | Black 16x16 blocks in shadow, first place | present | gone | | Black blocks under a building, another place | not compared | present on a build with this change and without the tiled shadow change | - Checks run on that revision: `cargo build`. `cargo clippy` and `cargo test` not run. - Gameplay: 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, DLSS Quality (1712x960 render) and DLAA, HDR on, frame generation 2x, hardware ray tracing. - Hardware dependence: untested elsewhere; two testers on other cards (RTX 4070 S, RTX 5070) report the black boxes stayed with a build holding this change. - Coverage gaps: I did not separate part 1 from part 2 in the place where it helped. Frame time not measured. ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `post-merge` (`28a9b42`). - [x] The diff contains no game files, code or assets. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #694 (lists the two trail-map programs that asked 65,536 groups; same file, merges cleanly with this) - Replaces or overlaps: overlaps #694 in purpose; that one is the measured fix The change was written with a coding agent (AI-assisted) and run by me in the game.
Refs #666. At a render size of 2560x1440 some records of programs listed as Bound::Unread ask more than the host runs in one dimension and their 16x16 tiles stay black. They are split like the other based programs; a record that cannot be clamped still runs as the title made it. A dispatch in parts no longer spends the list's indirect budget.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'indirect-unread-in-parts:untried844-indirect-unread-in-parts'
git switch 'untried844-indirect-unread-in-parts'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'post-merge'
git merge --no-ff 'untried844-indirect-unread-in-parts'
git switch 'untried844-indirect-unread-in-parts'
git rebase 'post-merge'
git switch 'post-merge'
git merge --ff-only 'untried844-indirect-unread-in-parts'
git switch 'untried844-indirect-unread-in-parts'
git rebase 'post-merge'
git switch 'post-merge'
git merge --no-ff 'untried844-indirect-unread-in-parts'
git switch 'post-merge'
git merge --squash 'untried844-indirect-unread-in-parts'
git switch 'post-merge'
git merge --ff-only 'untried844-indirect-unread-in-parts'
git switch 'post-merge'
git merge 'untried844-indirect-unread-in-parts'
git push origin 'post-merge'
Sign in to join this conversation.
No reviewers
No milestone
No project
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
TrustNo1/Darner!704
No description provided.