Game: entering a heavy view still stalls 200-420 ms on nightly-951 (Kakariko, 1080p, RDNA2) #2905

Open
opened 2026-11-30 15:53:28 +00:00 by ctgl1987 · 4 comments

Longshot version / channel

nightly-951-28cb22b9 (source 05f5e48f), compared against nightly-895-22d0d200 (source d3f8676e), both built and played with the release's longshot-builder on the same PC.

What happened

A single frame of 200-420 ms every time a texture-heavy view is entered (Kakariko Village, Hyrule Market), on both the first visit after a build and on re-entry. Everything else holds the 30 fps cap. In play, away from the entry, the worst frame of a 600-frame block is 40-63 ms.

The texture budget is exactly at its cap when this happens (2442 MB of 2443 MB), VRAM is 85-88% (5.8-6.1 of 6.8-7.2 GB allowed), and the reaper destroys 150-205 images (217-417 MB) per 10 s while the new view's textures decode.

This looks like the remaining part of #2860 and #2789: those cut the spike roughly in half on this card but did not remove it.

nightly first entry to Kakariko re-entry in play
895 582 / 789 / 556 ms 582 ms 42-110 ms
951 296 / 216 ms 416 / 235 ms 40-63 ms

Measured from the game's own log (status: 600 frames, the slowest X ms).

Where in the game / steps / frequency

Adult timeline, Kakariko Village, walking in from the south entrance; and Hyrule Market (child) entering from Castle Town. Reproducible on every entry that brings a heavy view (2.800-3.300 draws), not only the first one after a build.

Graphics card and driver version

AMD Radeon RX 6650 XT 8 GB (Navi 23, RDNA2), Vulkan 1.4, AMD proprietary driver 26.10.1 (0x800161, "AMD proprietary shader compiler"). The renderer's own policy on this device: task_mesh_fallback=1, mesh_no_optimizer=1, warp64=1, resizable BAR on, allowed 7378 MB.

CPU, RAM and operating system

AMD Ryzen 7 5700X (8 cores / 16 threads), 32 GB DDR4-2133 (4 mixed DIMMs, JEDEC — 2666 was unstable on this board), Windows 10 Enterprise LTSC 2021 (10.0.19044).

Graphics settings

Output 1920x1080 (native), Upscaler Off, Render resolution 100%, Threaded rendering Auto (render + recorder threads), Game frame rate cap 30, Frame generation Off, V-Sync Off. longshot_env.txt in the profile: RX_VK_TEX_MAX_DIM=1024 (this took the in-play worst frame from 182-260 ms to 40-110 ms and VRAM from 87-91% to 85-88%).

Logs

Excerpts from builds\default\diagnostics\logs\longshot_log.txt on 951:

vk: GPU time 19.7 ms a frame (the longest submission 7.0 ms)
vk: status: 600 frames, the slowest 296.6 ms; VRAM 6.0 of 6.8 GB
vk: status: 600 frames, the slowest 416.0 ms; VRAM 5.8 of 6.8 GB
vk: status: 600 frames, the slowest 42.0 ms; VRAM 6.0 of 6.8 GB
vk: VRAM: 6110 MB used of 6920 MB allowed (259 MB of it free in the blocks); textures 2442 MB (budget 2443 MB), 3012 textures
vk: reaper: 205 images (217 MB) destroyed in 10 s, 0 of them where they were handed over

The full log is available if wanted; it is ~70 MB, so I have not attached it.

Missing information

Nothing missing from the reporter's side; a log excerpt can be extended with any specific counter you want (decode timing per chunk, eviction counts per second, or a RX_VK_DRAW_STATS dump of the offending frame).

### Longshot version / channel nightly-951-28cb22b9 (source 05f5e48f), compared against nightly-895-22d0d200 (source d3f8676e), both built and played with the release's `longshot-builder` on the same PC. ### What happened A single frame of **200-420 ms** every time a texture-heavy view is entered (Kakariko Village, Hyrule Market), on both the first visit after a build and on re-entry. Everything else holds the 30 fps cap. In play, away from the entry, the worst frame of a 600-frame block is 40-63 ms. The texture budget is exactly at its cap when this happens (2442 MB of 2443 MB), VRAM is 85-88% (5.8-6.1 of 6.8-7.2 GB allowed), and the reaper destroys 150-205 images (217-417 MB) per 10 s while the new view's textures decode. This looks like the remaining part of #2860 and #2789: those cut the spike roughly in half on this card but did not remove it. | nightly | first entry to Kakariko | re-entry | in play | |---|---|---|---| | 895 | 582 / 789 / 556 ms | 582 ms | 42-110 ms | | 951 | 296 / 216 ms | 416 / 235 ms | 40-63 ms | Measured from the game's own log (`status: 600 frames, the slowest X ms`). ### Where in the game / steps / frequency Adult timeline, Kakariko Village, walking in from the south entrance; and Hyrule Market (child) entering from Castle Town. Reproducible on every entry that brings a heavy view (2.800-3.300 draws), not only the first one after a build. ### Graphics card and driver version AMD Radeon RX 6650 XT 8 GB (Navi 23, RDNA2), Vulkan 1.4, AMD proprietary driver 26.10.1 (0x800161, "AMD proprietary shader compiler"). The renderer's own policy on this device: `task_mesh_fallback=1`, `mesh_no_optimizer=1`, `warp64=1`, resizable BAR on, `allowed 7378 MB`. ### CPU, RAM and operating system AMD Ryzen 7 5700X (8 cores / 16 threads), 32 GB DDR4-2133 (4 mixed DIMMs, JEDEC — 2666 was unstable on this board), Windows 10 Enterprise LTSC 2021 (10.0.19044). ### Graphics settings Output 1920x1080 (native), Upscaler Off, Render resolution 100%, Threaded rendering Auto (render + recorder threads), Game frame rate cap 30, Frame generation Off, V-Sync Off. `longshot_env.txt` in the profile: `RX_VK_TEX_MAX_DIM=1024` (this took the in-play worst frame from 182-260 ms to 40-110 ms and VRAM from 87-91% to 85-88%). ### Logs Excerpts from `builds\default\diagnostics\logs\longshot_log.txt` on 951: ``` vk: GPU time 19.7 ms a frame (the longest submission 7.0 ms) vk: status: 600 frames, the slowest 296.6 ms; VRAM 6.0 of 6.8 GB vk: status: 600 frames, the slowest 416.0 ms; VRAM 5.8 of 6.8 GB vk: status: 600 frames, the slowest 42.0 ms; VRAM 6.0 of 6.8 GB vk: VRAM: 6110 MB used of 6920 MB allowed (259 MB of it free in the blocks); textures 2442 MB (budget 2443 MB), 3012 textures vk: reaper: 205 images (217 MB) destroyed in 10 s, 0 of them where they were handed over ``` The full log is available if wanted; it is ~70 MB, so I have not attached it. ### Missing information Nothing missing from the reporter's side; a log excerpt can be extended with any specific counter you want (decode timing per chunk, eviction counts per second, or a `RX_VK_DRAW_STATS` dump of the offending frame).
Member

Possibly related, for context:

  • issue #1069 Memory issue: Every area load decodes ~1 GB of ASTC again, revisits included: textures come back at new addresses and the address-keyed cache misses them — Same persistent area-entry texture decode/eviction hitch; older report identified repeated ASTC decode as a cause.
  • issue #1268 Game: 200-470 ms stutters when many new textures arrive: the main thread waits ~0.3 s on a GPU fence after a frame of uploads (RTX 3090, Linux) — Texture arrival causing several-hundred-ms stalls, but NVIDIA fence-wait mechanism differs.
  • PR #2789 perf(vk): an evicted GPU-drawn texture's write-back waits for nothing, so an area change no longer stalls the frame for it — Merged change addresses one eviction write-back stall mechanism; this report says substantial stalls remain.
  • PR #2810 perf(vk): branchless cmov wb_learn, SIEVE texture eviction, and size-class VRAM pools — Merged texture eviction and VRAM pool performance work; possibly relevant to pressure-related remaining hitch.
Possibly related, for context: - issue #1069 Memory issue: Every area load decodes ~1 GB of ASTC again, revisits included: textures come back at new addresses and the address-keyed cache misses them — Same persistent area-entry texture decode/eviction hitch; older report identified repeated ASTC decode as a cause. - issue #1268 Game: 200-470 ms stutters when many new textures arrive: the main thread waits ~0.3 s on a GPU fence after a frame of uploads (RTX 3090, Linux) — Texture arrival causing several-hundred-ms stalls, but NVIDIA fence-wait mechanism differs. - PR #2789 perf(vk): an evicted GPU-drawn texture's write-back waits for nothing, so an area change no longer stalls the frame for it — Merged change addresses one eviction write-back stall mechanism; this report says substantial stalls remain. - PR #2810 perf(vk): branchless cmov wb_learn, SIEVE texture eviction, and size-class VRAM pools — Merged texture eviction and VRAM pool performance work; possibly relevant to pressure-related remaining hitch.
Author

Thanks for the pointers. Following up with what this machine can and cannot confirm, so the next person does not chase a number that is not there.

What is measured on 951 (RX 6650 XT, RDNA2, Windows, 1080p, cap 30, no frame generation): the stall repeats on re-entry, not only on the first visit. Walking out of Kakariko and back in, minutes apart and with no rebuild in between:

first entry:        slowest 296.6 ms, then 216.0 ms
re-entry:           slowest 416.0 ms, then 234.9 ms
blocks in between:  42.0 - 62.7 ms

At those moments the texture budget is exactly at its cap and the reaper is busy:

vk: VRAM: 6110 MB used of 6920 MB allowed (259 MB of it free in the blocks); textures 2442 MB (budget 2443 MB), 3012 textures
vk: reaper: 205 images (217 MB) destroyed in 10 s, 0 of them where they were handed over

What I cannot confirm from my log: that each entry decodes ~1 GB of ASTC, as #1069 measured. The renderer's textures: decoded ASTC N MB lines look cumulative per window on this build (882 MB rising slowly across many blocks), so they do not settle the per-entry volume. I do not want to claim a figure the log does not show.

Offered experiment, if it is wanted: set RX_VK_LOG_UPLOADS to arm the upload log around a Kakariko re-entry and check whether the uploads are (new) cache entries — the address-keyed-miss question from #1069 — on Windows/RDNA2. I have not run it yet because the switch arms on a present number, which is hard to place by hand before a re-entry; if there is a way to arm it from the menu, or a present number you want me to aim at, I can produce that log.

Settings in play: 1920x1080 native, Upscaler Off, Render 100%, Threaded rendering Auto, cap 30, Frame generation Off; profile longshot_env.txt holds RX_VK_TEX_MAX_DIM=1024.

Thanks for the pointers. Following up with what this machine can and cannot confirm, so the next person does not chase a number that is not there. **What is measured on 951 (RX 6650 XT, RDNA2, Windows, 1080p, cap 30, no frame generation):** the stall repeats on **re-entry**, not only on the first visit. Walking out of Kakariko and back in, minutes apart and with no rebuild in between: ``` first entry: slowest 296.6 ms, then 216.0 ms re-entry: slowest 416.0 ms, then 234.9 ms blocks in between: 42.0 - 62.7 ms ``` At those moments the texture budget is exactly at its cap and the reaper is busy: ``` vk: VRAM: 6110 MB used of 6920 MB allowed (259 MB of it free in the blocks); textures 2442 MB (budget 2443 MB), 3012 textures vk: reaper: 205 images (217 MB) destroyed in 10 s, 0 of them where they were handed over ``` **What I cannot confirm from my log:** that each entry decodes ~1 GB of ASTC, as #1069 measured. The renderer's `textures: decoded ASTC N MB` lines look cumulative per window on this build (882 MB rising slowly across many blocks), so they do not settle the per-entry volume. I do not want to claim a figure the log does not show. **Offered experiment**, if it is wanted: set `RX_VK_LOG_UPLOADS` to arm the upload log around a Kakariko re-entry and check whether the uploads are `(new)` cache entries — the address-keyed-miss question from #1069 — on Windows/RDNA2. I have not run it yet because the switch arms on a present number, which is hard to place by hand before a re-entry; if there is a way to arm it from the menu, or a present number you want me to aim at, I can produce that log. Settings in play: 1920x1080 native, Upscaler Off, Render 100%, Threaded rendering Auto, cap 30, Frame generation Off; profile `longshot_env.txt` holds `RX_VK_TEX_MAX_DIM=1024`.
Author

Worst case so far on this card, and it is not shader compilation. nightly-1069-7c3c16f0, Temple of Time (adult), simply walking toward the Master Sword pedestal - no cutscene, no area change, nothing else on screen.

vk: status: 600 frames, the slowest 1770.5 ms; VRAM 6.3 of 6.5 GB
vk: status: 600 frames, the slowest  282.7 ms; VRAM 5.7 of 6.4 GB
vk: status: 600 frames, the slowest  123.7 ms; VRAM 5.6 of 6.4 GB
vk: GPU time 10.0 ms a frame (the longest submission 10.3 ms)

No program census (play): created, no "its compute pipelines are still compiling": nothing was compiled. VRAM was at 96-97% of its allowance when the 1770 ms frame hit, which fits the decode/eviction picture rather than shaders.

Worth noting for scale: on 1069 the normal cost per frame here is 9.5-10.1 ms (it was 19-20 ms on 951 with the same scenes) and Hyrule Field, Market and the Ganon's Castle plaza now hold 60 fps with 2.0-2.3k draws, so the steady-state work is in good shape. What remains is this entry/lookup spike when the texture budget is full.

Worst case so far on this card, and it is not shader compilation. **nightly-1069-7c3c16f0**, Temple of Time (adult), simply walking toward the Master Sword pedestal - no cutscene, no area change, nothing else on screen. ``` vk: status: 600 frames, the slowest 1770.5 ms; VRAM 6.3 of 6.5 GB vk: status: 600 frames, the slowest 282.7 ms; VRAM 5.7 of 6.4 GB vk: status: 600 frames, the slowest 123.7 ms; VRAM 5.6 of 6.4 GB vk: GPU time 10.0 ms a frame (the longest submission 10.3 ms) ``` No `program census (play): created`, no "its compute pipelines are still compiling": nothing was compiled. VRAM was at 96-97% of its allowance when the 1770 ms frame hit, which fits the decode/eviction picture rather than shaders. Worth noting for scale: on 1069 the normal cost per frame here is **9.5-10.1 ms** (it was 19-20 ms on 951 with the same scenes) and Hyrule Field, Market and the Ganon's Castle plaza now hold 60 fps with 2.0-2.3k draws, so the steady-state work is in good shape. What remains is this entry/lookup spike when the texture budget is full.
Author

Looks fixed on nightly-1179-... Same machine, same scenes, same settings (1080p native, cap 60, no frame generation, RX_VK_TEX_MAX_DIM=1024 and the nine _FAST switches in the profile).

Temple of Time, adult, walking toward the Master Sword - the case that gave a 1770 ms frame on 1069: no stalls at all this time, the worst frame of the block is in the normal range.

Lake Hylia (the heaviest scene on this card, 3.1-3.6k draws):

1069 1179
fps 47.8 - 52.4 59.3 - 60.3 (occasional blocks at 54-58)
draws 3.100-3.626 3.412-3.443
slowest frame 40.4 ms 26.9 ms
textures 1.998 MB of 2.189 (91%) 1.852 MB of 2.127 (87%)
VRAM 5.6 of 6.5 GB 5.8 of 6.9 GB

The texture budget is no longer pinned at its cap, which is what the decode/eviction spikes were riding on. Reading the log, #3259 (2.7 GB less VRAM) and #875 (eviction waits) look like what did it.

If someone wants one more data point before closing: I can re-run the Kakariko entry/re-entry sequence that gave 296/216 and 416/235 ms on 951 and post the numbers here.

**Looks fixed on nightly-1179-...** Same machine, same scenes, same settings (1080p native, cap 60, no frame generation, `RX_VK_TEX_MAX_DIM=1024` and the nine `_FAST` switches in the profile). **Temple of Time, adult, walking toward the Master Sword** - the case that gave a 1770 ms frame on 1069: no stalls at all this time, the worst frame of the block is in the normal range. **Lake Hylia** (the heaviest scene on this card, 3.1-3.6k draws): | | 1069 | **1179** | |---|---|---| | fps | 47.8 - 52.4 | **59.3 - 60.3** (occasional blocks at 54-58) | | draws | 3.100-3.626 | 3.412-3.443 | | slowest frame | 40.4 ms | **26.9 ms** | | textures | 1.998 MB of 2.189 (91%) | **1.852 MB of 2.127 (87%)** | | VRAM | 5.6 of 6.5 GB | 5.8 of 6.9 GB | The texture budget is no longer pinned at its cap, which is what the decode/eviction spikes were riding on. Reading the log, #3259 (2.7 GB less VRAM) and #875 (eviction waits) look like what did it. If someone wants one more data point before closing: I can re-run the Kakariko entry/re-entry sequence that gave 296/216 and 416/235 ms on 951 and post the numbers here.
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#2905
No description provided.