DARNER_RELAY 1 and 2: models stretch and glitch; gone with the relay off; bisected to stage 3's present (no settle at the title's Present) #575
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner#575
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What looks wrong
With the relay on (
DARNER_RELAY=1or2, late stage 3, which frame generation needs), parts of characters and some other models are pulled out of shape (stretched). It flickers: from one frame to the next the model switches between its normal shape and the stretched one. It looks like the vertex positions are wrong in some frames (I can't tell whether it really is the vertices). The models do not flicker in general, only the stretching does. At the default settings it happens all the time. WithDARNER_RELAY=0it never happens (same settings, same places). It looks the same atDARNER_RELAY=1and2. No single spot triggers it.I bisected it with about 28 runs on my build. What I saw is in the tables. What I think it means is under "My guess" and is not confirmed.
Related, possibly the same problem: #488 (characters intermittently flicker black; the reporter says
DARNER_RELAY=0causes no issues). What I see is similar (parts of characters go wrong, flickering between normal and wrong), but I can't tell whether it is the same thing, so I'm not posting this there. #310 (DARNER_LAND_LEAVE) touches the same landing code. I found no issue or pull request about the relay glitch itself (searched open and closed issues and pull requests for relay, stretch, triangle, late wait).What I saw (each run: me playing a few minutes, same save, then saying whether the glitch is there)
Runs with the relay on, one switch changed from the default:
DARNER_RELAY_COPY=0(no copy queue)DARNER_CARD_STEPS=0DARNER_WC_NO_BACK=0DARNER_THIN=0(no line of submissions)DARNER_PICKED_WRITES=1/=2DARNER_PICKED_WRITES=1with a bigger limitDARNER_GPU_OWNED=1with relay 2Runs where the glitch is gone:
DARNER_LATE_WAIT=1or=2DARNER_LATE_WAIT_WRITES=0(every submission with a bottom-of-pipe write settles at once)And one that moves it:
What is going on at those writes (logs, local counters)
The bottom-of-pipe writes are 92 % plain
Valuewrites and 8 % GPU timestamps. The values are the title's ownWriteValueImmediatecalls. They are held and written into title memory by the CPU when the flight lands (list.rsdefer_write,host.rsLate::Write). Most go to three 64-bit slots near one address (0x998700000+0x08/0x0c, +0x50/0x54, +0x98/0x9c): the low word is a frame number that rotates over three slots, the high word is a tag written about 14 times as often, and the title clears them. About 300 more slots, around0x90417fe00to0x90417ff00, get frame stamps.My guess (not confirmed)
WC_NO_BACK, the line of submissions, shader-picked buffers, the timing of the value writes themselves, GPU timestamps, held cross-queue waits (one host queue, no forced-wait warnings in the logs).DARNER_UPCOPY_CHECKfinds undeclared overwrites, but they happen with the glitch gone too.LATE_WAIT=2) is a workaround that removes it at the price of frame generation.What would help: where do you think the relay misses a read (or a write) at stage 3 that stage 2's settle around
release_heldat the Present covers? The one difference in the Present path between the stages isqueue.rs(thelate()andlate_free_present()branches near the Present).Latest
main(fetched 2026-12-05, 351 commits ahead off3840d73): I compared the relay, the Present path inqueue.rsand the landing code inhost.rs. The only change inqueue.rsis the new frame argument ofrender_submit_begin(#283); nothing there or in the relay's code touches the logic this issue is about. I have not run the game on that newermain, so I can't say the glitch is still there on it. The tracking issue #541 does not cover this either.Before you post (form checkboxes)
I read the pinned thread (#499); the relay glitch is not among its known issues (the nearest is trees flickering for a single frame, which is a different thing).
RAY TRACING in F1
Off (my settings file also has hardware RT via
DARNER_RT_HARDWARE=0for this test).GPU and driver
RTX 3060 12 GB, NVIDIA driver 621.47
CPU, RAM and Windows version
Intel Core i5-12400F, 16 GB RAM, Windows 11 Home 10.0.26200
Darner release or commit
f3840d73(main) with local diagnostic switches on top (none of them is in this issue's fix; they only log or settle). The relay settings were forced by launch switches, as the settings file hadDARNER_RELAY=0.Settings
Series S 720p, DLSS Quality, frame generation 2x, texture quality half, ray tracing off, ambient 0.8, fullscreen. Relay set with
DARNER_RELAY=2(default stage 3) unless a row says otherwise.Log files attached
One log of a run with
DARNER_RELAY=2and the glitch (run 28, gzipped, paths and user name removed):darner-run-relay2-glitch.log.gz.Are you working on a fix?
No. I can run any build or switch you want and report.
I checked the Present paths on
c8258f9. With the submission line on, the title waits on its outstanding Present jobs. The relay separately publishes completed flights and their deferred writes. This gives us a smaller A/B while keeping late stage 3 and frame generation enabled. Present queueIf the stretching still reproduces on this main, could you try fresh launches with
DARNER_SUBMIT_FRAMES=1and0, keeping the same save, relay 2, FG 2x and an active submission line? At 0, the current Present job is sent before the title returns. The relay still lands flights in its usual order. This would tell us whether removing the Present lead is sufficient on that setup.If you have a diagnostics build, a few
frame chain:lines for both arms would help separate the wait to send Present from the card completion and the CPU publication. Frame-chain fields[bug][rendering][frame-generation][NVIDIA] DARNER_RELAY 1 and 2: models stretch and glitch; gone with the relay off; bisected to stage 3's present (no settle at the title's Present)to DARNER_RELAY 1 and 2: models stretch and glitch; gone with the relay off; bisected to stage 3's present (no settle at the title's Present)assigned to @Jesper-A