RX 7700 XT / 5600X: frame-rate drops in cinematic streaming bursts — what a slow frame is made of, what helped, what did not; and SATA vs NVMe #636
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#636
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?
@Raptorbk45 on GitHub · 2026-12-05 22:35 UTC · original
Findings from our fork (Raptorbk45/victory-linux, branch
sync-upstream, a base ofmainfrom early December plus our changes), 2–5 December 2026. Posted as findings, not as a request; numbers are ours, on one machine, and were not re-measured on currentmain.Machine and settings for everything below: RX 7700 XT 12 GB, Ryzen 5 5600X (6C/12T), 32 GB, CachyOS, RADV from
setup.sh's Mesa,CONSOLE=series-s, 1920x1080, no ray tracing (VICTORY_BVH_BUILDER=0 VICTORY_BVH_HARDWARE=0),VICTORY_FRAME_INTERVAL_MS=0,VICTORY_RECORD_PLACES=1 VICTORY_RECORD_RANGES=1. Game on NVMe unless said.1. The drive: SATA SSD held the streaming back
Same route twice, nothing changed but the drive the game sat on (Kingston A400 SATA, btrfs+zstd → Kingston NV1 NVMe, ext4):
Frame rate at the same draws a frame: +8 % to +16 % on NVMe (e.g. 3,500–4,000 draws: 28.8 → 33.1 fps). The card was 99 % busy in both, so why the drive moves the frame time is not known (guess, not checked: work redone over half-arrived textures). Pop-in (characters first, then the floor; low-detail people in the cut to Vice City) mostly stopped. On SATA, bursts took the drive to 150–224 MB/s and 100 % busy for seconds, and requests waited 100 ms–2.2 s with workers blocked on reads; the drive read ~1.75× what the streaming asked for (readahead or btrfs compressed extents). Caveat: files were copied to the NVMe just before its run, so part was in the page cache.
Takeaway for the README/troubleshooting, if you agree: put the game on NVMe. Related: #159, #143.
2. Drops in cinematics (arrest at the start, the cut into Vice City)
The frame rate falls from 35–45 to 7–15 at the same instants of the script every run. At those instants DirectStorage delivers 400–700 MB/s against ~65 in quiet seconds, and we re-read/re-upload 15–40 MB of textures a frame (1–2 otherwise).
Submitting thread (the lane), ms a frame, from
stats: lane_stood(ourVICTORY_QUEUE_STATSdiagnostic, which we are offering as a PR):worked_send_ms)worked_map_ms)The card's real work there (amdgpu
fdinfo,drm-engine-gfx) is 32–39 ms a frame, idle the rest: lane and card take turns.heap_textures, in the firstbindof the frame): 38.6 ms a frame in slow seconds vs 3.7. There are only ~0.8 ms between the title's frame start and that first bind, so starting it earlier gains nothing.CopyPageMappingsdrains the host queue first, and eachvkQueueSubmit2in RADV applies the pending unified-memory mappings, one address-mapping call per 64 KiB page (~40 µs): 8,000–17,000 a second in the drops. Halving those calls (VICTORY_PAGES=0plus ourVICTORY_LAZY_HIDDEN=1, which hides from the card the pages it has not asked for and only acts withVICTORY_BVH_HARDWARE=0; also offered as a PR) took the seconds with a frame over 100 ms from 14.6 % to 8.0 % and the frame in the bursts from 56 to 46 ms over the first 150 s (4 vs 6 unattended runs; median fps unchanged, 39.6 vs 39.7).RADV_UM_DELAY_VA-styleAMDGPU_VM_DELAY_UPDATEhalved the cost per call in a local driver experiment but added nothing on top of those two.SW_64KB_DBC and ~48 %SW_4KB_SBC.levels.rpfstreams in).Tried and set aside (all measured, none moved the frame): skipping the zeroing of read buffers; sealing watched slots after upload (unsafe: ~10 changes a frame went untold); asynchronous mappings without the drain (the wait moved, as in #365); capping or deferring the texture pass (the next frame takes the work); deferring first uploads of new views until sampled (the card sampled not-yet-uploaded textures 1,634 times); staging uploads ahead on our threads; a larger in-flight list limit; reading mode-10 BC textures in place on the card (works, no gain); permuting mode-5 textures on the card (device losses, then slower);
amdgpu.vm_update_mode=3(139 µs per mapping call instead of 36, median 33.7 → 26.8 fps); sparse binding instead of the mappings (same kernel call per page in RADV/vkd3d).What is left on our side is the card's own time in those frames (32–39 ms); the translated shaders run 3–4× the console's instruction count, which is where we are looking next.
Full notes (English) and the scripts that line up the runs:
docs/drops-2026-12-04.md,docs/drops-2026-12-05.md,docs/drops-2026-12-05-night.md,docs/storage-2026-12-04.mdon https://github.com/Raptorbk45/victory-linux/tree/sync-upstream (no game files or captures there).