[pr-fix][rendering][shaders] Water: TV_GenerateTiles as lane pairs on 32-lane hosts (squares on the water) #700
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!700
Loading…
Reference in a new issue
No description provided.
Delete branch "untried844/Darner:water-generate-tiles-pairs"
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 #664
What it changes
post-merge: square blocks of 16x16 render pixels on and above the water where the water light is missing (issue #664), on a 32-lane host.A frame capture (
--features diagnostics, F7) shows the blocks already in the half-size transmission target thatCS_TV_Tiled5dc3b25986622949andTV_Tiled_LocalLights6f225b641c5b0708write over the tile lists. The tiles nobody wrote lie on the 8x8 group grid of the program that builds those lists,TV_GenerateTiles1aa247ed3653b616: of 51 such tiles in the captured frame, 43 are at x mod 8 = 0 or 7 and nearly all at y mod 8 = 0, 4, 5 or 6, the first rows of a host wave. So tiles are lost when the lists are built, as local waves (Rule::LocalWaves).This gives the program
Rule::LanePairsinby_hash/whole.rs, two console lanes to a host thread, so one reservation covers the whole group. The source note is extended to say why.Ruled out on the way, each by a run: render size, ray tracing off, the replacement shaders, #674, a loop stopped at the iteration limit (
DARNER_LOOP_REPORT=1: none), andTV_Tiled_LocalLightsas lane pairs (no change).How it was tested
Tested revision: this commit on
post-merge28a9b42, in a build that also held my other local changes (#666 patch, tiled shadows, audio, full screen).Commands and results:
cargo build --release --locked -p darneron this branch alone: builds.darner translateof the title's shaders withDARNER_HOST_MAX_WAVE=32: the program is emitted in the paired form with 32-lane waves.Changes a default: yes, for 32-lane hosts (NVIDIA). This one program is translated again once.
A/B result, same save and view (dock, daylight), same settings:
Rule::LocalWaves)Rule::LanePairs)Checks run on that revision:
cargo build.cargo test -p darner-shaderhas no tests on this line.cargo clippynot 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: may depend on the host's wave size and driver; untested on other cards.
Coverage gaps: one card. Frame time not measured. A flicker in water reflections was seen a few times on builds with this change and could not be reproduced on demand, with or without it; not tied to it.
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.