WIP: [pr-fix][rendering] Indirect: Bound::Unread programs run in parts, and parts are not charged to the list budget (partial, refs #666) #704
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!704
Loading…
Reference in a new issue
No description provided.
Delete branch "untried844/Darner:indirect-unread-in-parts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
post-merge: issue #666, shadowed areas black in 16x16 tiles at a render size of 2560x1440.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.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-merge28a9b42.Commands and results:
cargo build --release --locked -p darneron 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:
28a9b42)Checks run on that revision:
cargo build.cargo clippyandcargo testnot 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
post-merge(28a9b42).Checked for overlap
The change was written with a coding agent (AI-assisted) and run by me in the game.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.