[rendering] All tree leaves vanish for one frame, then come back (repeats while playing) #135
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
While playing (on foot and while driving), the leaves of every tree on screen disappear at once for about one game frame: trunks and branches stay, palms are bare, the red flowers are gone. Low bushes and grass stay. The next frame everything is back. It repeats every so often, anywhere with trees. It also happened on the older VIctory builds.
Seen at about 22:16:39 UTC in the attached log (frame generation was OFF in that run, so these are not generated frames). The log shows 0 dropped draws and 0 SLOT_EVICT evictions around that time. A 4090 player I watched did not see this, so it may depend on timing (8-thread CPU here).
Screenshot: before / during / after.
GPU and driver
RTX 5070 Ti 16 GB, driver 621.40
CPU, RAM and Windows version
Ryzen 7 9800X3D (SMT off, 8 threads), 32 GB, Windows 11 Pro 26200
Darner release or commit
v2026.12.03.01 (built from tag
bd0de0c)Settings
Series X, 2560x1440, DLSS Balanced, frame generation off, ray tracing off, TEXTURE QUALITY high, everything else play defaults.
Logs
darner-play-20261203-221349-8784
Are you working on a fix?
No
I get the same thing on an RTX 5080 (Ryzen 7 5800X3D, 8 cores, 32 GB, Windows 11), Series S profile, DLSS balanced at 1113x626, ray tracing off, a local build at main
57dea7f: for one frame every palm and island tree is gone, and at other times the main character gets a dark patch or stretched bits for one frame. Frame generation on shows the same.It follows
DARNER_CARD_STEPS. Counted with a capture of the window at about 25 frames a second (a frame that differs from both its neighbours in a block of the picture, while the neighbours agree, counts as one), standing still by day, 308 s a run:DARNER_CARD_STEPS=2): 13 and 16 glitch frames; 17 with the stockscripts\play-nvidia.ps1 -SeriesSsettingsDARNER_CARD_STEPS=0: 0, 1 and 1DARNER_CARD_STEPS=1: still there (3 in 72 s, against 9 and 12 with 2)DARNER_CARD_STEPS_LEARN=1: 2 (224 pages learned, 2.96 submissions waited a frame)DARNER_CARD_STEPS_LEARN=1withDARNER_LATE_FILLS=1: the picture goes black and blown-out white from frame to frame (733 glitch frames, 705 of them the whole frame; 29 pages learned)DARNER_INDIRECT_BATCH=1withDARNER_INDIRECT_WINDOW=0,DARNER_CARD_ALL=0,DARNER_UPLOAD_AHEAD=0withDARNER_PRELUDE_UPLOADS=0,DARNER_COPIES_IN_PLACE=0,DARNER_CARD_FORWARD=1.DARNER_WC_NO_BACK=0makes it much worse (76 in 72 s).Cost here, two alternated pairs of 150 s:
DARNER_CARD_STEPS=0is +4.97 ms a frame (+-0.34), 24.9 and 24.0 fps against 27.3 and 28.3.DARNER_CARD_STEPS_LEARN=1costs about the same on this PC.It matches the note in
host/card_steps.rs(mod late): the game writes some constant buffers again after sending the list that reads them. For anyone who wants it gone today:DARNER_CARD_STEPS=0(F1: ADVANCED > CARD STEPS), at about 13 % fps here. I am not working on a fix. I can attach the logs and the captured frames of any of these runs.Another PC, and a different result: here
DARNER_CARD_STEPS=0andDARNER_CARD_STEPS_LEARN=1both made one-frame character glitches about three times as frequent, not fewer, with the Series X profile. With Series S there were none to begin with, and=0cost about 4.8 ms a frame, close to the +4.97 ms above. The scene has no trees, so it may be a different glitch from the leaves.PC: RTX 4080 16 GB (driver 32.0.16.1742), Ryzen 9 7900 (12 cores, 24 threads), 32 GB, Windows 11 Home 26200. Build: v2026.12.03.02 (
f3840d7), a diagnostics build (cargo build --profile diag -p darner --features diagnostics), because the flicker detector is only in those. Settings: 4K output, DLSS Performance, frame generation 2x, ray tracing off; Series X, or Series S with its scene at 720.Method:
scripts/bench.ps1 -Flicker -RayTracing off -Dlss performance -FrameGen 2 -AllowMenuFile -Seconds 180 -Warmup 0, on the same copied save each run (the opening cinematic from its first frame, no input). The switch goes in with-Switches; the summary'seffectivelist and the log (placement switches set: ... DARNER_CARD_STEPS=N, andlearnedlines for_LEARN) confirm it.DARNER_FLICKER_DETECT=1counts a "flicker" when 3 or more of 16x9 tiles change and come back on the next present, and a "black" when 2 or more tiles go black for one or two presents.CARD_STEPS=2), A1 / A2DARNER_CARD_STEPS=0, B1 / B2DARNER_CARD_STEPS=1, two runsDARNER_CARD_STEPS_LEARN=1, two runsDARNER_CARD_STEPS=0, B1 / B2The Series X default and
=0runs were A B B A; then=1and_LEARN=1alternated; then Series S A B B A. Four earlier Series X runs of the same build and scene at the default (two of them withDARNER_THIN_HEAP_ORDER=0, for #193) had 24-42 flicker and 11-14 black.What the events are. The detector keeps the frames of each run's first 40 events. In the Series X runs I looked at (one default, one
=0, one_LEARN=1), most of them show one character's clothes going dark for one frame: a white shirt, a grey hoodie or a jacket turns black, then is back on the next present. That sounds like "the main character gets a dark patch" from the comment above. Counted from theflicker:lines, the default runs have most of their events in one dialogue scene (24 and 30 between 55 and 100 s into the window, 5 and 8 elsewhere). The=0runs have about twice as many in that scene (50 and 48) and many more outside it (50 and 77), for example on the jacket of a character standing at a window.Cost of turning it off: with Series X about 1.5 ms a frame (38.1 against 39.6 ms, two runs each), and with Series S about 4.8 ms (27.5 against 32.3 ms).
_LEARN=1with Series X cost about the same as=0.So on this PC,
DARNER_CARD_STEPS=0doesn't work around the character flashes. With Series X it makes them more frequent, and with Series S it costs fps without anything to fix in this scene.=1behaved like the default. That doesn't contradict the trees: the cinematic has no foliage in view, and I haven't tested standing among trees. Series S showing nothing here also differs from the comment above, where Series S showed them on an 8-core CPU. That could be the CPU (8 threads against 24), the scene, or both. I haven't tested which.Not checked: outdoors with trees, frame generation off, the release build (it has no flicker detector), other Series S scene sizes. Two runs per setting.
Logs attached:
darner-issue-135-logs.zip, the twelve runs' logs andbench.ps1summaries, and the summaries of the four earlier default runs. The event frames the detector kept aren't included: they're the game's pixels. User and PC names are replaced.We're working on the leaves case here (every tree's leaves gone for one frame, trunks stay). This only tells others; it doesn't reserve the issue. If you're on it too, or want to work together, say so and we'll share what we find.
What we take from the thread so far
DARNER_CARD_STEPS=0the glitch frames went from 13 and 16 (default) to 0, 1 and 1 per 308 s, at +4.97 ms a frame (+-0.34), 24.9 and 24.0 fps against 27.3 and 28.3.DARNER_CARD_STEPS_LEARN=1gave 2, at about the same cost.DARNER_CARD_STEPS=1still showed it (3 in 72 s, against 9 and 12 with the default 2).DARNER_CARD_STEPS=0made the one-frame character flashes more frequent (flicker 27 / 35 at default, 94 / 119 with=0), in a scene with no trees. So the character flashes are probably a separate bug, and we are not treating them as part of this one.Working idea (a hypothesis, not tested by us yet)
iridiumlotus pointed to the note in
crates/darner-gpu/src/host/card_steps.rs(mod late, on mainf3840d73d): the title writes some constant buffers again after sending the list that reads them, so the card can draw with the bytes from before that rewrite. The note describes characters and the boat, not foliage, so it is only a fit that the leaves read such a page. The reports come from an 8-thread CPU (Tymon3kk) and an 8-core one (iridiumlotus), and Tymon3kk mentions a 4090 player they watched who did not see it; a race between the title's late write and our copy would fit that.A stale occlusion seed (#263) would also cull the trunks, and the trunks stay in the reports here. That is one reason we rank it lower for this case.
A second idea, from Daytz in #263: the tables holding the cull's written views are read late. As far as we read main, Darner copies a table at record only when it holds a constant-buffer view or lies past the heap's size, not for written views. Zelbrad's VIda (471c423) has a switch that copies those tables when the list is recorded,
VICTORY_SNAPSHOT_UAV_TABLES; it is off by default there and we have no A/B numbers for it. We don't claim it works.What we're doing
f3840d73dwith the flicker detector on. Arms: the default,DARNER_CARD_STEPS=0, andDARNER_LATE_WAIT=2(the default is 3; 2 waits for the card in more cases), an idea relayed to us from Fluxer. We expectLATE_WAIT=2to cost some fps.Questions
DARNER_FLICKER_DETECT=1, diagnostics build) while standing among trees? Counts and the log would help.This post was written with AI assistance (Claude Code).
Results of our A/B for the one-frame leaf flicker. Short version: on our PC the default flickered in 2 of 3 runs, and both
DARNER_CARD_STEPS=0andDARNER_LATE_WAIT=2showed none.CARD_STEPS=0cost about 1.9 fps.LATE_WAIT=2showed no cost we can see, but the runs are too few to say it is free.Credit.
DARNER_LATE_WAIT=2is cafe's idea. In our earlier comment (issuecomment-870094) we wrote that it was "relayed to us from Fluxer"; it was cafe's, and we should have named them. TheDARNER_CARD_STEPS=0numbers we compare with are iridiumlotus's above.Setup
f3840d73d, normal diagnostics build,DARNER_FLICKER_DETECT=1in every run.Results (A = default, B =
DARNER_CARD_STEPS=0, C =DARNER_LATE_WAIT=2)A2 also logged 1 frozen frame (t=313.4); no other run had any. The settle run is unscored for fps (it also ran the shader preload for the new exe; the scored runs did not); its flicker count is shown because it happened.
Reading
CARD_STEPS=0: 13 and 16 down to 0, 1 and 1); it says nothing about the character flashes Trillazill saw get worse withCARD_STEPS=0. It addsLATE_WAIT=2as a second setting that removed it here.CARD_STEPS=0: pair means 10.94 fps against 12.87 for the default, about -1.9 fps, roughly +14 ms a frame. Both B runs are below every A and C run. The direction matches iridiumlotus's +4.97 ms; ours is larger because our frame rate is lower.LATE_WAIT=2: pair mean 13.36 fps. We can't see a cost, but the two default runs differ by 2.1 fps among themselves, so this is inside the noise: unresolved, not "free".Limits
DARNER_LATE_WAIT=3is the default, as far as we read main; we did not test other values.Next
Ask: if you see the leaves vanish, please try
DARNER_LATE_WAIT=2and report the count per run, with several runs on each side (default and=2), in the same scene. Say your CPU threads and profile. The counter isDARNER_FLICKER_DETECT=1in a diagnostics build (cargo build --profile diag -p darner --features diagnostics).We haven't pasted any log, because logs hold user paths and game file names. We can attach the
flicker:counter lines of these runs with the names cleaned out, if that helps.This post was written with AI assistance (Claude Code).