Game: #366
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/upscaling
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#366
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?
Longshot version
nightly-127-cf605c85 (source 8672daee)
Channel
Nightly
What kind of problem
Graphics (missing, black or wrong-coloured things, lighting, flicker)
What happened
Weird black flicker on some characters, specially during cutscenes.
Where in the game
SacredForestMeadow_Adult (adult)
How often
Sometimes
Graphics card and driver version
NVIDIA GeForce RTX 4060, NVIDIA 617.14
CPU, RAM and operating system
AMD Ryzen 5 5600 6-Core Processor (12 threads), 16 GB, Windows 11 (build 26100)
Changes from the defaults
Frame generation: 2x (default: Off)
Fullscreen: On (default: Off)
V-Sync: Off (default: Auto)
Anisotropic filtering: 4x (default: 16x)
FPS counter: FPS (default: Off)
Menu size: Small (default: Medium)
Layout preset: Swap Face (default: Nintendo (Def))
Button prompts: Xbox (default: Auto)
Depends on this PC (the values now, not counted as changes):
Quality preset: Custom (default depends on this PC)
Output resolution: 2560x1440 (native) (default depends on this PC)
Profile: Docked (default depends on this PC)
Upscaler: NVIDIA DLSS (default depends on this PC)
Render resolution: Quality 67% (1707x960) (default depends on this PC)
Sharpness: 30% (default depends on this PC)
Frame pacing: Off (default depends on this PC)
Window scaling filter: Not needed (window = output) (default depends on this PC)
VRAM budget: 3.6 GB (default depends on this PC)
Game speed: Real time (default depends on this PC)
Switches set (their values are in the attached report.txt): LONGSHOT_NO_UPDATE_CHECK.
longshot_log.txt
attached
Screenshots or video
No response
Before you send it
Additional NVIDIA/Windows reproduction on Longshot nightly-127-cf605c85 (source 8672daee). This looks similar to the black character flicker in this issue, though my location is Zora's Fountain rather than Sacred Forest Meadow.
System: RTX 4050 Laptop GPU (6 GB), NVIDIA 621.14; Intel Core i5-13420H; 32 GB RAM; Windows 11 Home build 26200.
Observation: In
ZoraFountain_Child, Link briefly becomes a much darker, near-black silhouette. The attached three-frame crop shows a single-frame event in the middle image, around 0:08 of a local 20-second recording; another event appears around 0:14. The full picture did not go black in those captured frames. The issue also occurred with frame generation Off, so generated frames are not required to trigger it. HDR was Off and the game's own upscaler was selected. I have not retested this on a newer nightly yet.Same-scene A–B–A, Nightly 127, frame generation Off:
RX_VK_LATE_FIXon): the player saw the flicker.RX_VK_LATE_FIX=0: no flicker observed for 1–2 minutes in the same location.This implicates the GPU late-pages path but does not identify the faulty line. The observation windows were short and no FPS cost of the workaround was measured.
RX_VK_MIRROR_SPARSEremained on in both arms, so an interaction with sparse mirrors is still possible. Relevant lines from the original default-run log:Source lead: PR #248 changed
late_fix_build/late_fix_emitingpu/vk/vk_memory.cppand addedshaders/late_fix.comp, which patches captured pages from the pool shadow using per-word write-back stamps. The PR description documents black character flashes in an earlier version due to stale per-character animation words and notes that a wrong capture word would appear as a one-frame artifact. The focusedlate_fix_buildand shadow-sync source tests pass locally, but they do not reproduce this gameplay scene; the SPIR-V regeneration check was unavailable becauseglslangValidatoris not installed here. A capture-word comparison in Zora or a same-scene run with sparse mirrors off while the late fix stays on could narrow the exact cause.Workaround on this PC:
RX_VK_LATE_FIX=0inlongshot_env.txtfor future launches. The screenshot is a crop from the local recording; no game files, saves, executables or caches are attached.Follow-up in the same
ZoraFountain_Childsave on Nightly 127, with frame generation Off: I launched one session withRX_VK_LATE_FIX=1andRX_VK_MIRROR_SPARSE=0(process environment, overriding the localRX_VK_LATE_FIX=0file). The black flicker on Link still occurred. The run's log confirmslate pages' fix onand the Zora map load. Thus sparse mirrors are not required to reproduce this symptom on this PC; the late-pages fix remains the narrower trigger. This does not yet identify the incorrect word or ordering.One source-test gap worth checking: PR #248's temporary capture-word verification reports 0 pages written back again since the capture in that test. I cannot establish that such a repeated write-back occurs in this Zora scene, but it would be useful to include that case in an instrumented comparison before attributing the flash to it.
Another observation from the same running Nightly 127 session (
RX_VK_LATE_FIX=1,RX_VK_MIRROR_SPARSE=0, frame generation Off): the player sees the black flicker inZoraFountain_Childbut has not noticed it inInsideJabuJabuBelly.The log shows eight
late pages' fix (600 recordings with one)summaries during the Zora portion, typically about 75–87 pages per fixed capture. After the Jabu-Jabu map load, there have been zero such summaries so far, alongside 160write-back diff (600 submits)summaries. The late-fix counter logs only after 600 nonempty emits, so this does not prove there were zero fixes inside Jabu-Jabu. It does show that this path is much less active there while ordinary write-backs continue. That makes a workload/timing-dependent capture problem a useful lead; it does not identify a particular bad word, shader or scene asset. The next decisive diagnostic remains comparing captured words against the old wait path at the Zora flicker.Further same-save testing on Nightly 127, Windows 11 / RTX 4050 Laptop (NVIDIA 621.14), in
ZoraFountain_Childwith frame generation Off:RX_VK_LATE_FIX=1andRX_VK_MIRROR_SPARSE=0, the near-black Link flicker still occurs after setting all three PR #324 old-behaviour switches together (HOS_MEMINFO_OLD=1,HOS_HEAP_COMMIT=1,RX_VK_IMPORT_HIGH=0). Thus those three new behaviours are not required for this reproduction on my PC.late_fixon, one 1–2 minute run withRX_VK_SHADOW_FOLLOWS_SYNC=0showed no flicker to the player. Restoring shadow-follows-sync to its default made the flicker reappear, particularly when the camera moved. In the longer observation it was intermittent rather than continuous. The movement was not scripted or matched frame for frame, and the shadow-off run was short, so this does not yet prove the shadow copy is the defective operation or that the switch is a safe workaround. The knownRX_VK_LATE_FIX=0workaround remains the one saved for normal launches.late pages' fix onandmap: ZoraFountain_Child (child). It recorded multiplelate pages' fix (600 recordings with one)summaries, typically ~58–73 pages per fixed capture after loading Zora. The complete log is preserved locally for inspection; I am not attaching raw local paths or game data.This narrows the next source check to the timing/content relationship between
shadow_sync_copyandlate_fix_emit/the per-word stamps ingpu/vk/vk_memory.cpp. It is a lead, not an identified faulty line. A capture-word comparison in the same scene would distinguish a bad copied word from a timing-only change.Sanitized full
longshot_log.txtfrom my Nightly 127ZoraFountain_Childrun that visibly flickered, withRX_VK_LATE_FIX=1, frame generation off, sparse mirrors off, and the three PR #324 old-behaviour flags. Local user paths and the save identifier were redacted. This is the longer shadow-follows-sync-on run described in my prior comment; the video and game files remain local.Sanitized log (1,138,520 bytes).