CPU chain on the reference card: no single dominant label in slow house frames #221

Closed
opened 2026-12-02 14:51:15 +00:00 by github-bot · 1 comment
Owner

@⁠TheRifai on GitHub · 2026-12-02 14:48 UTC · original

Finding (TASKS "Renderer CPU: list execution and draw recording", "The serial frame chain", "Texture refill loop", "Texture fills on the GPU")

Seen on: main 963df8e (same code as d59b4f8 apart from docs), RX 9070 XT / RADV 26.3.1, Ryzen 5 9600X, GE-Proton11-16, Series X 3840x2160, house save rt3, warm shader store, 100 s, scripted camera walk (W/I/K/J at 20/45/70/95 s), VKB_LAT=1. Validation was not used for timing.

Latency trace of the 176 frames ≥50 ms (cumulative ms and ms per slow frame):

Label total ms ms/slow frame slow frames
slot_reads at Execute (index slots) 1,289 7.33 176
remap in queue order: present waits for the remapper 1,002 5.69 32
rec: draw/dispatch recording 723 4.11 176
live: run_list (total) 647 3.68 176
slot_reads in lists 369 2.10 175
tex: fill prepare 348 1.98 170
detile runs 149 0.85 175

Mean fps 27.96 (A1 arm). So even in slow frames no one label dominates: the slot path is the largest but is ~7 ms, remap waits are concentrated in 32 frames, and fill prepare is under 2 ms. This supports the TASKS note that splitting work onto more threads alone has not helped — the chain has to shrink as a whole.

Related negative A/B for the fill lever: on the same build/save/walk, VKB_FILL_PARTIAL=0 removed ~1.2 ms of fill-prepare work per slow frame but made the run slightly slower (26.79/25.73 fps vs 27.62/26.53 with fills on) and produced more slow frames (206/245 vs 183/215); slot reads (6.9-7.2 ms) and remap waits (3.5-5.9 ms) stayed larger. Evidence: /home/shlong/Documents/VKtory-capture/partial-ab-{A1,B1,B2,A2}/ and /home/shlong/Documents/VKtory-capture/slotcache-ab-A1/.

No code change here; the question for the maintainer is whether to keep spending on the fill path (small) or on the slot/remap chain (large). I tried caching the remaining table-dependent slot resolutions (Stale/BeyondTable/BadShape) as the TASKS fix shape suggests: two interleaved A/B/B/A pairs disagreed (camera walk +0.8 fps, static −0.8 fps), so I did not open a PR; the already-merged #48 covers NotAView and the rest has no measured win.

**@⁠TheRifai** on GitHub · 2026-12-02 14:48 UTC · [original](https://github.com/vktory6/VKtory/issues/221) ## Finding (TASKS "Renderer CPU: list execution and draw recording", "The serial frame chain", "Texture refill loop", "Texture fills on the GPU") **Seen on:** main `963df8e` (same code as `d59b4f8` apart from docs), RX 9070 XT / RADV 26.3.1, Ryzen 5 9600X, GE-Proton11-16, Series X 3840x2160, house save `rt3`, warm shader store, 100 s, scripted camera walk (W/I/K/J at 20/45/70/95 s), `VKB_LAT=1`. Validation was not used for timing. Latency trace of the 176 frames ≥50 ms (cumulative ms and ms per slow frame): | Label | total ms | ms/slow frame | slow frames | |---|---:|---:|---:| | `slot_reads at Execute (index slots)` | 1,289 | 7.33 | 176 | | `remap in queue order: present waits for the remapper` | 1,002 | 5.69 | 32 | | `rec: draw/dispatch recording` | 723 | 4.11 | 176 | | `live: run_list (total)` | 647 | 3.68 | 176 | | `slot_reads in lists` | 369 | 2.10 | 175 | | `tex: fill prepare` | 348 | 1.98 | 170 | | `detile runs` | 149 | 0.85 | 175 | Mean fps 27.96 (A1 arm). So even in slow frames no one label dominates: the slot path is the largest but is ~7 ms, remap waits are concentrated in 32 frames, and fill prepare is under 2 ms. This supports the TASKS note that splitting work onto more threads alone has not helped — the chain has to shrink as a whole. Related negative A/B for the fill lever: on the same build/save/walk, `VKB_FILL_PARTIAL=0` removed ~1.2 ms of fill-prepare work per slow frame but made the run slightly *slower* (26.79/25.73 fps vs 27.62/26.53 with fills on) and produced more slow frames (206/245 vs 183/215); slot reads (6.9-7.2 ms) and remap waits (3.5-5.9 ms) stayed larger. Evidence: `/home/shlong/Documents/VKtory-capture/partial-ab-{A1,B1,B2,A2}/` and `/home/shlong/Documents/VKtory-capture/slotcache-ab-A1/`. No code change here; the question for the maintainer is whether to keep spending on the fill path (small) or on the slot/remap chain (large). I tried caching the remaining table-dependent slot resolutions (Stale/BeyondTable/BadShape) as the TASKS fix shape suggests: two interleaved A/B/B/A pairs disagreed (camera walk +0.8 fps, static −0.8 fps), so I did not open a PR; the already-merged #48 covers `NotAView` and the rest has no measured win.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 14:51:15 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 16:01 UTC · original

Thanks, these numbers are now in the matching TASKS item(s), so the next person starts from them: github.com/vktory6/VKtory@dcb33f3. Closing here, the tasks track the work.

**@⁠vktory6** on GitHub · 2026-12-02 16:01 UTC · [original](https://github.com/vktory6/VKtory/issues/221#issuecomment-7351332398) Thanks, these numbers are now in the matching TASKS item(s), so the next person starts from them: https://github.com/vktory6/VKtory/commit/dcb33f3. Closing here, the tasks track the work.
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/vktory6--VKtory#221
No description provided.