Game: Stuttering and foliage pop-in in Hyrule Field on RX 7900 XTX (Linux) #2285

Open
opened 2026-11-22 18:30:25 +00:00 by BeanBot · 6 comments
Member

Reported on Discord

Longshot version and channel

Longshot v3.1.1 (source 63363428), release. The log shows the game content path under rc/v3.0.0 but 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

  • OS: EndeavourOS x86_64, Linux kernel 7.3.5-arch1-1, KDE Plasma 6.8.3, Wayland
  • CPU: AMD Ryzen 7 9800X3D
  • RAM: 64 GB (log reports 63,870 MB system memory)
  • GPU: AMD Radeon RX 7900 XTX
  • Vulkan driver: RADV, Mesa 26.3.1-arch1.2; Vulkan 1.4.363
  • Output resolution: 2560×1440

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

  • Clarify which foliage pops in/out (trees/grass versus small ground details), and whether mods affect it; an unmodded comparison if available

Attachments

  • longshot_log.txt — second log supplied by the reporter with profiling enabled
Reported on [Discord](https://discord.com/channels/1569849200047427645/1573960867429490738/1573964407195828264) ### Longshot version and channel Longshot v3.1.1 (source `63363428`), release. The log shows the game content path under `rc/v3.0.0` but 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 - OS: EndeavourOS x86_64, Linux kernel 7.3.5-arch1-1, KDE Plasma 6.8.3, Wayland - CPU: AMD Ryzen 7 9800X3D - RAM: 64 GB (log reports 63,870 MB system memory) - GPU: AMD Radeon RX 7900 XTX - Vulkan driver: RADV, Mesa 26.3.1-arch1.2; Vulkan 1.4.363 - Output resolution: 2560×1440 ### 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 - Clarify which foliage pops in/out (trees/grass versus small ground details), and whether mods affect it; an unmodded comparison if available ### Attachments - `longshot_log.txt` — second log supplied by the reporter with profiling enabled
Author
Member

Files from the Discord report:

Files from the Discord report: - [longshot_log.txt](https://git.magicbean.dev/attachments/10cb270b-125b-458e-bc09-8d5c33292d6f)
Author
Member

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.

Updated with more from [Discord](https://discord.com/channels/1569849200047427645/1573960867429490738/1574262089147621457): Added the reproducible Hyrule Field location and approach/departure actions, and noted that the recordings show settings and foliage pop-in.
Contributor

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-start save, 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).

Run Grass distance Median p99 Frames > 40 ms Frames > 100 ms (time into the walk)
1 4x 16.7 ms 21.8 ms 5 289 ms (47 s)
2 Game's 16.7 ms 20.5 ms 8 159 ms (47 s), 145 + 135 ms (106 s)
3 4x 16.7 ms 20.6 ms 6 132 ms (47 s), 134 + 115 ms (106 s)
  • Same two places every time: about 47 s and 106 s into the walk, whatever the grass setting, so the grass distance doesn't cause them.
  • The game's main thread, not the renderer: each long frame's trace shows its main thread blocked for 40 to 264 ms, with no pipeline or shader waits, no texture uploads and the GPU not behind. The reporter's log looks the same: no shader waits and 4 to 7 ms of GPU time a frame, but 1 to 8 frames over 40 ms in most 5 s windows.
  • Not yet known: what the main thread waits on there. My guess, untested, is the field's streaming (the reporter's stutter on approaching and leaving one spot fits that).

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.

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-start` save, 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). | Run | Grass distance | Median | p99 | Frames > 40 ms | Frames > 100 ms (time into the walk) | |---|---|---|---|---|---| | 1 | 4x | 16.7 ms | 21.8 ms | 5 | 289 ms (47 s) | | 2 | Game's | 16.7 ms | 20.5 ms | 8 | 159 ms (47 s), 145 + 135 ms (106 s) | | 3 | 4x | 16.7 ms | 20.6 ms | 6 | 132 ms (47 s), 134 + 115 ms (106 s) | - **Same two places every time:** about 47 s and 106 s into the walk, whatever the grass setting, so the grass distance doesn't cause them. - **The game's main thread, not the renderer:** each long frame's trace shows its main thread blocked for 40 to 264 ms, with no pipeline or shader waits, no texture uploads and the GPU not behind. The reporter's log looks the same: no shader waits and 4 to 7 ms of GPU time a frame, but 1 to 8 frames over 40 ms in most 5 s windows. - **Not yet known:** what the main thread waits on there. My guess, untested, is the field's streaming (the reporter's stutter on approaching and leaving one spot fits that). 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.
Contributor

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.

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.
Contributor

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 and HOS_SLOW_FRAMES sampling every thread around each frame of 50 ms or more:

  • A fixed line in the field, crossed either way. The walk goes straight out from the Castle Town gate (z 32) to about z 348 and back. Its two stalls during the walk came at z 243 going out (63 ms) and z 233 coming back (121 ms), the same two points (47 s and 106 s into the walk) as all three runs above. That matches the report's stutter "on approach and departure" of one spot. The other eight slow frames came while the field loaded on arrival.
  • The main thread waits for the game's own work, not for the renderer. In both stalls the main thread is blocked in the job loop where it waits for its worker threads (61 % and 77 % of its blocked samples; the rest in a wait on a game event). In the stall coming back, the neighbour-map preloader (thread OptimizeChangeBanc) and the decompression thread run during it.
  • Not the flicker #1814 fixed: the hold for a new neighbour to preload is on (2000 ms) in my runs and in the reporter's log, and this walk crosses the line once each way.

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.

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 and `HOS_SLOW_FRAMES` sampling every thread around each frame of 50 ms or more: - **A fixed line in the field, crossed either way.** The walk goes straight out from the Castle Town gate (z 32) to about z 348 and back. Its two stalls during the walk came at z 243 going out (63 ms) and z 233 coming back (121 ms), the same two points (47 s and 106 s into the walk) as all three runs above. That matches the report's stutter "on approach and departure" of one spot. The other eight slow frames came while the field loaded on arrival. - **The main thread waits for the game's own work, not for the renderer.** In both stalls the main thread is blocked in the job loop where it waits for its worker threads (61 % and 77 % of its blocked samples; the rest in a wait on a game event). In the stall coming back, the neighbour-map preloader (thread `OptimizeChangeBanc`) and the decompression thread run during it. - **Not the flicker #1814 fixed:** the hold for a new neighbour to preload is on (2000 ms) in my runs and in the reporter's log, and this walk crosses the line once each way. 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.
Contributor

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:

Run Crossings Frames > 100 ms Worst
Default 12 9 286 ms
RX_VK_CAPTURE=0 (the submit-time capture off) 3 0 42 ms
RX_VK_CAPTURE=0, again 5 0 41 ms
RX_VK_CAPTURE_POOL_MB=0 (new pools kept out of the capture) 9 8 793 ms
  • Not cores: in the default run the main thread waits under 0.1 ms for a core in each stall (2 ms once), and the two worst stalls had almost no core waits by any thread.
  • The capture's copy at the submit: in a sampled stall, 43 % of the main thread's samples are in 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.
  • New pools are not the trigger: keeping them out of the capture still stalls at every crossing (that run overlapped a build, so its count of long frames is inflated).

#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), its RX_VK_CAPTURE_ASYNC=0 11 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_wait into 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=0 is 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.

**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: | Run | Crossings | Frames > 100 ms | Worst | |---|---|---|---| | Default | 12 | 9 | 286 ms | | `RX_VK_CAPTURE=0` (the submit-time capture off) | 3 | 0 | 42 ms | | `RX_VK_CAPTURE=0`, again | 5 | 0 | 41 ms | | `RX_VK_CAPTURE_POOL_MB=0` (new pools kept out of the capture) | 9 | 8 | 793 ms | - **Not cores:** in the default run the main thread waits under 0.1 ms for a core in each stall (2 ms once), and the two worst stalls had almost no core waits by any thread. - **The capture's copy at the submit:** in a sampled stall, 43 % of the main thread's samples are in `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. - **New pools are not the trigger:** keeping them out of the capture still stalls at every crossing (that run overlapped a build, so its count of long frames is inflated). **#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), its `RX_VK_CAPTURE_ASYNC=0` 11 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_wait` into 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=0` is 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.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#2285
No description provided.