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

Open
opened 2026-12-05 22:39:09 +00:00 by github-bot · 0 comments
Owner

@⁠Raptorbk45 on GitHub · 2026-12-05 22:35 UTC · original

Findings from our fork (Raptorbk45/victory-linux, branch sync-upstream, a base of main from 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 current main.

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):

SATA NVMe
Streaming request time in the queue, p90 292 ms 8.5 ms
Longest time in the queue 2.2 s 0.45 s
Drive busy, median 40 % 8 %
Streaming workers busy, p90 10.7 of 12 1.6
Frames ≥ 100 ms a minute 11.9 8.8

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 (our VICTORY_QUEUE_STATS diagnostic, which we are offering as a PR):

Fluid (38 fps) Slow (15 fps)
Preparing and sending (worked_send_ms) 15.3 24.8
Applying the title's page mappings (worked_map_ms) 3.3 21.1
Standing while the frame's texture pass runs 1.5 15.2
Frame 26 65

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.

  • The stands are the texture pass, not the card. The lane stands because the list that writes a value the title waits on is not translated yet, and its translation is held by the frame's pass over textures picked by index (heap_textures, in the first bind of 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.
  • Page mappings. Each CopyPageMappings drains the host queue first, and each vkQueueSubmit2 in 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=0 plus our VICTORY_LAZY_HIDDEN=1, which hides from the card the pages it has not asked for and only acts with VICTORY_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-style AMDGPU_VM_DELAY_UPDATE halved the cost per call in a local driver experiment but added nothing on top of those two.
  • The texture work is not redundant. In the bursts ~34 MB a frame of texture content changes (30.5 by pages the title remaps inside tiled textures, 437–586 pages a frame), we process ~48: about 1.4×. By tiling mode, the detiled bytes are ~47 % SW_64KB_D BC and ~48 % SW_4KB_S BC.
  • What the card samples. Of what the pass uploads in the bursts, 20 % is sampled within 10 frames, 37 % is uploaded again before being sampled, 19 % is not sampled within 1,000 frames (at the arrest, 93 % of new textures were declared and filled ahead by the title while levels.rpf streams 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.md on https://github.com/Raptorbk45/victory-linux/tree/sync-upstream (no game files or captures there).

**@⁠Raptorbk45** on GitHub · 2026-12-05 22:35 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/636) Findings from our fork (Raptorbk45/victory-linux, branch `sync-upstream`, a base of `main` from 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 current `main`. **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): | | SATA | NVMe | |---|---|---| | Streaming request time in the queue, p90 | 292 ms | 8.5 ms | | Longest time in the queue | 2.2 s | 0.45 s | | Drive busy, median | 40 % | 8 % | | Streaming workers busy, p90 | 10.7 of 12 | 1.6 | | Frames ≥ 100 ms a minute | 11.9 | 8.8 | 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` (our `VICTORY_QUEUE_STATS` diagnostic, which we are offering as a PR): | | Fluid (38 fps) | Slow (15 fps) | |---|---:|---:| | Preparing and sending (`worked_send_ms`) | 15.3 | 24.8 | | Applying the title's page mappings (`worked_map_ms`) | 3.3 | 21.1 | | Standing while the frame's texture pass runs | 1.5 | 15.2 | | Frame | 26 | 65 | 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. - **The stands are the texture pass, not the card.** The lane stands because the list that writes a value the title waits on is not translated yet, and its translation is held by the frame's pass over textures picked by index (`heap_textures`, in the first `bind` of 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. - **Page mappings.** Each `CopyPageMappings` drains the host queue first, and each `vkQueueSubmit2` in 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=0` plus our `VICTORY_LAZY_HIDDEN=1`, which hides from the card the pages it has not asked for and only acts with `VICTORY_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`-style `AMDGPU_VM_DELAY_UPDATE` halved the cost per call in a local driver experiment but added nothing on top of those two. - **The texture work is not redundant.** In the bursts ~34 MB a frame of texture content changes (30.5 by pages the title remaps inside tiled textures, 437–586 pages a frame), we process ~48: about 1.4×. By tiling mode, the detiled bytes are ~47 % `SW_64KB_D` BC and ~48 % `SW_4KB_S` BC. - **What the card samples.** Of what the pass uploads in the bursts, 20 % is sampled within 10 frames, 37 % is uploaded again before being sampled, 19 % is not sampled within 1,000 frames (at the arrest, 93 % of new textures were declared and filled ahead by the title while `levels.rpf` streams 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.md` on https://github.com/Raptorbk45/victory-linux/tree/sync-upstream (no game files or captures there).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:39:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
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
github/lobomfz--VIctory-xmem#636
No description provided.