Game: Stuttering and foliage pop-in in Hyrule Field on RX 7900 XTX (Linux) #2285
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
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/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2285
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?
Reported on Discord
Longshot version and channel
Longshot v3.1.1 (source
63363428), release. The log shows the game content path underrc/v3.0.0but identifies the running build as v3.1.1.What happened
The reporter describes minor stuttering that seems random, with some stutters predictable in certain areas and especially noticeable around Hyrule Field. Foliage pop-in/out is distracting. The game is otherwise running well and entirely playable.
A second log was provided with profiling enabled. It records 87 FPS samples (minimum 42, median 60, maximum 214); the run's final presentation rate was 59.4 fps over the last five seconds. The low sample's frame replay time was 12.61 ms submit, 7.82 ms draw, 3.61 ms descriptors, 2.64 ms texture lookups, and 2.35 ms uploads. This alone does not establish the cause of the reported stutters.
Where in the game / frequency / reproduction
Hyrule Field. The reporter identifies a spot near two short rocks that consistently causes a stutter on approach and departure; the recordings also demonstrate foliage popping in/out. Frequency is consistent when approaching/leaving that spot. The videos linked in the Discord report show the exact route/actions and settings: https://discord.com/channels/1569849200047427645/1570812576986824785/1573959004932280423
System
Mods and settings
The log lists seven enabled mods. Their relevance is unknown. The reporter says settings are shown in the recordings; exact values and whether mods are relevant are not transcribed in the report.
Still needed
Attachments
longshot_log.txt— second log supplied by the reporter with profiling enabledFiles from the Discord report:
Updated with more from Discord: Added the reproducible Hyrule Field location and approach/departure actions, and noted that the recordings show settings and foliage pop-in.
Reproduced on Linux, on
main@d02cac0f: Hyrule Field stalls for 115 to 289 ms at the same two points of a walk in all three runs, with Grass distance at 4x or at Game's.Setup: RX 9070 XT, RADV Mesa 26.3.1, Ryzen 5 5600X, Fedora 45. Headless, 2560x1440 output, AMD FSR 4 Native AA, capped at 60 fps, no mods, no ReShade. Child Link from the
kokiri-startsave, out of the Castle Town gate, then walked the same straight path across the field for 120 s (steered by his position, so every run takes the same path).Also seen in the reporter's log:
CPUs 16 (7 usable, 5 cores)on a 16-thread 9800X3D. Worth asking whether something limits the game's cores (MangoHud, GameMode or a CPU affinity setting).Still to come (us): what the main thread waits on at those two points, and whether they line up with the reporter's spot once I have their video. The foliage pop-in in a fullscreen window.
Not done here: the reporter's mods and their ReShade preset.
From the reporter's two recordings (field and Market):
Their settings, read off the menu in the Market recording: Output resolution 2560x1440, Upscaler AMD FSR 4 at Native (2560x1440), Sharpness 0%, Frame generation Off, Game frame rate cap 60 (the console's), AMD Anti-Lag 2 Off, Fullscreen Off (a window), V-Sync Auto, HDR Off, ReShade preset Serfrost (Recommended), Anisotropic filtering 8x, Grass distance 4x, Shadow resolution Highest, Debug tools Off.
Where the field recording freezes: 15 times for 83 to 184 ms in its 3:47 (frames repeated in the 60 fps video), every one in the stretch of field beside the Castle Town walls, two of them by the short rocks the report mentions (1:17 and 1:37). That is the same part of the field my runs above walk through after leaving the gate; whether my two stall points are their exact spots is not checked yet.
The Market recording repeats frames only from 0:05 to 0:28, while the menu is opened and scrolled; none after that.
Differences from my runs: they play in a window with Shadow resolution Highest and Anisotropic filtering 8x; my runs were headless at the Shadow resolution and Anisotropic filtering defaults of my options file. Neither should block the game's main thread (my stalls do), but that is untested.
Where and what the stall is, from one more walked run on
main@d02cac0f(same setup as above, Grass distance 4x), with Link's position logged andHOS_SLOW_FRAMESsampling every thread around each frame of 50 ms or more:OptimizeChangeBanc) and the decompression thread run during it.Not known yet: whether the game blocks the same way on a Switch (a stall the game always had) or only here, for instance its worker threads waiting for a core while the loaders hold them; the reporter's log shows game threads waiting 30 to 45 ms for a core in play.
Still to come (us): what the workers wait on during the stall (a core or the loaders), from a run that crosses that line several times; the foliage pop-in in a real window.
Tested on one PC only (RX 9070 XT, RADV Mesa 26.3.1, Ryzen 5 5600X, Fedora 45): other GPUs, drivers, CPUs and Windows are untested, so the numbers below may differ there.
The stall is the renderer's memory capture, not the game's loading or a lack of cores. Tested on
main@d02cac0f, same setup as above (RX 9070 XT, RADV Mesa 26.3.1, headless, 60 fps cap, Grass distance 4x), with Link walking back and forth across the line at z ~238 for 180 s:RX_VK_CAPTURE=0(the submit-time capture off)RX_VK_CAPTURE=0, againRX_VK_CAPTURE_POOL_MB=0(new pools kept out of the capture)nvnQueueSubmitCommands→ the capture's copy of the pages written since the last submit. Likely (not checked: the preloader's choices weren't logged): crossing the line starts or drops the neighbouring map's preload, which writes far more pages than a normal frame.#2244 (the capture's copy queued to the copy helpers) helps but doesn't remove it. On its commits put onto
main@79d192c6, interleaved, same laps: its async copy 4 and 8 frames over 100 ms in 9 and 13 crossings (worst 1100 ms, once), itsRX_VK_CAPTURE_ASYNC=011 and 9 in 10 and 12 crossings. Sampled with the async copy, the main thread's stall is then mostly waiting for its GPU work (nvn_waitinto the driver, 29 % of its samples), which can't run until the replay has the capture: the copy's time still reaches the game, later. So the fix is a cheaper capture for a burst of written pages, not only moving the copy.RX_VK_CAPTURE=0is a kill switch, not a workaround to suggest: it goes back to the replay collecting pages itself, which the capture replaced to stop wrong pictures.Still to come (us): the foliage pop-in in a real window.