Game: entering a heavy view still stalls 200-420 ms on nightly-951 (Kakariko, 1080p, RDNA2) #2905
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
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#2905
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 / channel
nightly-951-28cb22b9 (source 05f5e48f), compared against nightly-895-22d0d200 (source d3f8676e), both built and played with the release's
longshot-builderon 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.
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.txtin 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.txton 951: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_STATSdump of the offending frame).Possibly related, for context:
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:
At those moments the texture budget is exactly at its cap and the reaper is busy:
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 MBlines 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_UPLOADSto 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.txtholdsRX_VK_TEX_MAX_DIM=1024.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.
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.
Looks fixed on nightly-1179-... Same machine, same scenes, same settings (1080p native, cap 60, no frame generation,
RX_VK_TEX_MAX_DIM=1024and the nine_FASTswitches 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):
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.