perf(vk): cut zone-entry ASTC upload spikes 25-53% (astc_flush_ms -99.5%) on non-ASTC GPUs via async chunk submits #2330

Open
Jer9 wants to merge 2 commits from Jer9/Longshot:perf/vk-async-astc-upload-chunks into main
Contributor

Summary

On desktop and laptop GPUs without native ASTC hardware (AMD, NVIDIA, Intel), Longshot decodes large ASTC texture bursts on the GPU in 16M-texel chunks (RX_VK_ASTC_CHUNK_MPX) to avoid Windows WDDM TDR timeouts. Previously, each chunk boundary blocked Presentation_Thread on vkWaitForFences just so it could reset and reuse a single upload command buffer. During zone transitions (such as entering Hyrule Field or Kokiri Forest, where 1365x1365x90 terrain arrays split into ~14 chunks), that synchronous wait stalled the presentation thread behind in-flight GPU work for 172–332 ms per zone entry, causing large loading hitches and 295 ms vk: slow upload spikes.

This PR gives each frame recording a small reusable pool of upload command buffers (up to 64) so replay_flush_upload() submits each 16M-texel chunk asynchronously and moves immediately to the next command buffer without waiting on the GPU mid-frame. Separate submissions still protect against Windows TDR, and all chunks retire together when the frame slot is reused.

Where this helps vs. where it doesn't:

  • What a player notices: Noticeably shorter area-entry freezes when walking through gates, entering new zones, or warping into large outdoor areas (Hyrule Field, Kokiri Forest, etc.) on any non-ASTC desktop/laptop GPU — replacing jarring ~0.7–0.8 s entry hitches with ~0.34–0.46 s transitions (-25% to -53% shorter spikes). Once already exploring a loaded area, gameplay feels unchanged.
  • Helps: Non-ASTC GPUs (AMD, NVIDIA, Intel — AMD RDNA 3.5 tested; NVIDIA/Intel/RADV pending) during zone transitions, teleports, and large ASTC texture streaming bursts. Slashes 3-zone tour worst astc_flush_ms -99.5% (332.07 -> 1.64 ms), total astc_flush_ms -99.2% (1580.42 -> 12.43 ms), vk: slow upload count -88.0% (25 -> 3), 1365x1365x90 CPU upload() wall time -90.1% (295.1 -> 29.2 ms), and zone-entry peak frame spikes by -25% to -53% (Hyrule teleport -44.5%, Kokiri teleport -25.4%, Market->Kokiri transition -53.1%).
  • No measurable impact: Warm steady-state gameplay with no large ASTC bursts (e.g., walking around already-loaded Market at 67% render scale (1024x576) or 100% render scale (1536x864), where 0 warm chunk flushes happen, so steady-state FPS / 1% low are within run-to-run variance), non-ASTC uploads (like #490 12288x12288 NVN 0x32), and native-ASTC GPUs / RX_VK_ASTC_CPU=1 / RX_VK_ASTC_CHUNK_MPX=0. On initial Market save-load, non-ASTC load work still dominates the peak frame (791.8 -> 809.7 ms, within single-run variance, even though its astc_flush_ms dropped 201.37 -> 1.64 ms).

Technical details:

  • Store a reusable vector of primary command buffers (Recording::upload_bufs, capped at kMaxAsyncUploadChunks = 64 with a bounded-sync fallback) in r->upload_pool (gpu/vk/vk_replay.cpp).
  • Update replay_flush_upload(VkCommandBuffer& cur) (gpu/vk/vk_internal.h, vk_replay.cpp, vk_texture.cpp) to submit each finished 16M-texel chunk asynchronously (VK_NULL_HANDLE fence on FIFO dev.queue), advance r->upload, cur, and vk_texture's up_cmd to the next command buffer, and return immediately without mid-frame vkWaitForFences.
  • Rebind RX_VK_PASS_TIMING (gprof_rebind_upload() in gpu/vk/vk_gprof.h / vk_gprof.cpp, plus gprof_submitted(r.slot, uploads || r.upload_idx > 0)) whenever replay_flush_upload() switches command buffers so GPU pass timing captures all ASTC upload chunks 0..N.
  • full_barrier() serializes GPU access to bc_scratch/bc_out across chunks, staging remains alive until slot reuse, and recording_wait(r) + vkResetCommandPool(r.upload_pool) retire all chunks in O(1).

Read first: replay_flush_upload() in gpu/vk/vk_replay.cpp and upload_astc_gpu() in gpu/vk/vk_texture.cpp.

Testing

How to test:

  1. Hardware / config requirement: Needs a non-ASTC GPU (AMD/NVIDIA/Intel) with GPU ASTC decode enabled (RX_VK_ASTC_CPU=0, default RX_VK_ASTC_CHUNK_MPX=16).
  2. Game-free tests: Run python -I -B tests/test_async_astc_upload_chunks.py (fails on main, passes here) plus tests/test_astc_upload_chunking.py, tests/test_astc_pass_timing.py, tests/test_draw_stream_visibility.py, tests/test_fsr_image_retirement.py, and tests/test_fsr_uniform_ownership.py.
  3. Trigger real ASTC bursts (zone transitions): Do not test only a warm Market loop (which triggers 0 chunk flushes). Instead, load Market and transition/teleport into Hyrule Field and Kokiri Forest (streaming 1365x1365x90 11-mip ASTC terrain arrays).
  4. Verify the drop in logs and frame times:
    • In longshot_log.txt: count vk: slow upload lines and check 1365x1365x1 x90 upload durations (should drop from ~158–295 ms to ~18–29 ms, with slow upload count dropping sharply).
    • In frames.csv: compare astc_flush_ms (should drop from ~170–330 ms spikes to < 2 ms) and zone-entry peak frame times.
  5. Stability & pass-timing check: Confirm 0 VK_ERROR_DEVICE_LOST and clean terrain/prop textures across all zones; optionally run with RX_VK_PASS_TIMING=2 to verify u astc spans still report cleanly across multi-chunk uploads.

Tested: Windows 11 (build 26200), AMD Ryzen AI 7 350 + AMD Radeon 860M (8 CUs, RDNA 3.5 iGPU, Adrenalin 26.10.1), 1600x1000, handheld_profile=1, sharpness=80, vsync=0, amd_anti-lag_2=1, RX_VK_PRECOMPILE=1, >= 12.5 s post-load settle:

  • 3-zone tour (Market -> Hyrule Field -> Kokiri Forest, 67% render scale, 1024x576): 0 VK_ERROR_DEVICE_LOST, vk: slow upload count dropped 25 -> 3, worst astc_flush_ms dropped 332.07 -> 1.64 ms, total astc_flush_ms dropped 1580.42 -> 12.43 ms.
  • Market_Child fountain-first route (67% render scale 1024x576 3 interleaved rounds, 100% render scale 1536x864 3 interleaved rounds) + RX_VK_PASS_TIMING=2 (67% render scale, 1024x576): astc_flush_ms = 0.000 [0.000, 0.000] at both 67% render scale (1024x576) and 100% render scale (1536x864), 0 >= 50 ms frames, gprof_rebind_upload logged u astc cleanly with 0 VK_ERROR_DEVICE_LOST.
  • Stationary RX_VK_SHOT_FX=1 (sharpness=80) visual inspection: scene textures and ASTC terrain/props match main cleanly with zero corruption.
  • Game-free tests (on current main @ 0e32bc10 with dev.py env llvm-mingw + RX_CPM):
    • tests/test_async_astc_upload_chunks.py (new; exercises async chunk submits, slot reuse, kMaxAsyncUploadChunks fallback, error-path vkQueueWaitIdle ordering, and gprof_rebind_upload): FAIL on main (753fb5af), PASS on this branch (37687772).
    • Targeted --strict suite (test_async_astc_upload_chunks, test_astc_upload_chunking, test_astc_pass_timing, test_draw_stream_visibility, test_fsr_image_retirement, test_fsr_uniform_ownership, test_vk_braces, test_utf8_paths, test_doc_anchors): 9 passed, 0 failed, 0 skipped.
    • python -I -B tests/run_all.py --changed forge/main: 211 passed, 2 failed, 5 skipped — both failures are pre-existing Windows-only main failures documented in #2304 (test_perf_report, test_dev_packs).

Still to test:

  • NVIDIA and Intel GPUs: 3-zone tour (Market -> Hyrule Field -> Kokiri Forest), expecting reduced zone-entry hitching and 0 VK_ERROR_DEVICE_LOST (@Beanstalk Windows NVIDIA, Linux RADV).

Measurements

Verdict: Large, unmistakable win during zone transitions and ASTC texture bursts: slashes worst astc_flush_ms -99.5% (332.07 -> 1.64 ms), total astc_flush_ms -99.2% (1580.42 -> 12.43 ms), vk: slow upload count -88.0% (25 -> 3), 1365x1365x90 CPU upload() wall time -90.1% (295.1 -> 29.2 ms), and zone-entry peak frame spikes -25.4% to -53.1%. Warm steady-state Market (67% render scale 1024x576 and 100% render scale 1536x864) has 0 chunk flushes and shows no measurable difference (within run-to-run variance), as expected.

Setup: Windows 11, AMD Ryzen AI 7 350 + Radeon 860M (Adrenalin 26.10.1), 1600x1000, handheld_profile=1, sharpness=80, vsync=0, amd_anti-lag_2=1, RX_VK_PRECOMPILE=1, symmetric pre-warmed shader/pipeline caches. Measured standalone directly against main @ 753fb5af; rebased cleanly onto main @ 0e32bc10 (37687772 — none of the 8 intervening commits touch ASTC upload chunking, replay_flush_upload, or vk_texture.cpp, so the numbers hold unchanged). 3-zone tour and Market->Kokiri transition run are single runs; steady-state Market values are median [min, max] across 3 interleaved rounds.

Where it makes a difference (zone transitions & ASTC upload bursts):

Metric Before: main @ 753fb5af After: this PR @ 37687772 Change
3-Zone Tour worst astc_flush_ms (67% render scale, 1024x576) 332.07 ms 1.64 ms -330.43 ms (-99.5%)
3-Zone Tour total astc_flush_ms (67% render scale, 1024x576) 1580.42 ms (41 frames) 12.43 ms (22 frames) -1567.99 ms (-99.2%)
3-Zone Tour vk: slow upload count (67% render scale, 1024x576) 25 3 -22 (-88.0%)
3-Zone Tour vk: slow upload overall max (67% render scale, 1024x576) 295.1 ms (ASTC 1365x1365x90) 65.4 ms (non-ASTC #490 NVN 0x32) -229.7 ms (-77.8%)
3-Zone Tour 1365x1365x90 CPU upload() wall time (67% render scale, 1024x576) 295.1 ms 29.2 ms (GPU decode async on dev.queue) -265.9 ms (-90.1%)
3-Zone Tour Hyrule teleport peak frame (67% render scale, 1024x576) 831.3 ms 461.4 ms -369.9 ms (-44.5%)
3-Zone Tour Kokiri teleport peak frame (67% render scale, 1024x576) 540.2 ms 402.8 ms -137.4 ms (-25.4%)
Market->Kokiri transition run peak frame (67% render scale, 1024x576) 717.3 ms 336.2 ms -381.1 ms (-53.1%)

Where it does NOT make a difference (within run-to-run variance):

Metric Before: main @ 753fb5af After: this PR @ 37687772 Change
3-Zone Tour initial Market save-load frame (67% render scale, 1024x576) 791.8 ms (astc_flush_ms 201.37 ms) 809.7 ms (astc_flush_ms 1.64 ms) No measurable difference (within run-to-run variance; non-ASTC load dominates, astc_flush_ms -99.2%)
Market 67% render scale (1024x576) Median FPS (3 rounds, 0 warm flushes) 54.38 [53.59, 54.50] 53.63 [53.36, 54.56] No measurable difference (within run-to-run variance; path inactive)
Market 67% render scale (1024x576) Mean FPS (3 rounds, 0 warm flushes) 53.68 [52.66, 54.00] 53.04 [52.56, 53.98] No measurable difference (within run-to-run variance; path inactive)
Market 67% render scale (1024x576) 1% Low FPS (3 rounds, 0 warm flushes) 38.95 [36.86, 39.10] 38.42 [36.52, 39.16] No measurable difference (within run-to-run variance; path inactive)
Market 67% render scale (1024x576) astc_flush_ms (3 rounds) 0.005 [0.005, 0.013] ms 0.000 [0.000, 0.000] ms ~0 ms flush on both (path inactive in warm Market)
Market 100% render scale (1536x864) Median FPS (3 rounds, 0 warm flushes) 45.11 [44.92, 45.29] 45.21 [45.21, 45.21] No measurable difference (within run-to-run variance; path inactive)
Market 100% render scale (1536x864) Mean FPS (3 rounds, 0 warm flushes) 44.79 [44.25, 44.98] 44.56 [44.38, 44.71] No measurable difference (within run-to-run variance; path inactive)
Market 100% render scale (1536x864) 1% Low FPS (3 rounds, 0 warm flushes) 32.89 [31.36, 33.52] 30.95 [30.89, 32.26] No measurable difference (within run-to-run variance; path inactive)
Market 100% render scale (1536x864) astc_flush_ms (3 rounds) 0.011 [0.004, 0.014] ms 0.000 [0.000, 0.000] ms ~0 ms flush on both (path inactive in warm Market)
Market 100% render scale (1536x864) >= 50 ms frames (3 rounds) 0 [0, 0] 0 [0, 0] 0 frames on both (path inactive in warm Market)
# Before (3-zone tour, main @ 753fb5af):
[hos Presentation Thread] vk: slow upload 158.5 ms: #130 0x10a22aa600 1365x1365x1 x90 levels 11 NVN 0x8e ASTC (BC3), 57825 of 57825 KB
[hos Presentation Thread] vk: slow upload 41.2 ms: #490 0x1147c16000 12288x12288x1 x1 levels 1 NVN 0x32, 294912 of 294912 KB
[hos Presentation Thread] vk: slow upload 295.1 ms: #4178 0x10a5b22c00 1365x1365x1 x90 levels 11 NVN 0x80 ASTC (BC3), 57825 of 57825 KB
[hos host] vk: slow submit: 32.5 ms: draw 31.2 descriptors 29.9 texture lookups 29.3 uploads 20.3

# After (3-zone tour, this PR @ 37687772):
[hos Presentation Thread] vk: slow upload 18.1 ms: #130 0x10a22aa600 1365x1365x1 x90 levels 11 NVN 0x8e ASTC (BC3), 57825 of 57825 KB
[hos Presentation Thread] vk: slow upload 65.4 ms: #490 0x1147c16000 12288x12288x1 x1 levels 1 NVN 0x32, 294912 of 294912 KB
[hos Presentation Thread] vk: slow upload 29.2 ms: #4110 0x10a5b22c00 1365x1365x1 x90 levels 11 NVN 0x80 ASTC (BC3), 57825 of 57825 KB
[hos Presentation Thread] vi: present intervals: <15.5 ms 71, 15.5-17.8 77, 17.8-22 88, 22-30 25, 30-40 7, over 40 2

Risks

  • Command-buffer count bound: Each Recording slot caches at most kMaxAsyncUploadChunks = 64 primary command buffers (> 1,024M texels in one recording) before falling back to the bounded-sync r->fence + vkResetCommandPool path, preventing unbounded pool growth.
  • GPU ordering & WDDM TDR: All chunks submit to the same FIFO dev.queue with full_barrier() at chunk boundaries (protecting bc_scratch/bc_out) and separate vkQueueSubmit2 packets (preserving Windows WDDM TDR protection). Staging buffers remain live until recording_wait(r) on slot reuse.
  • Turn off / rollback: RX_VK_ASTC_CHUNK_MPX=0 disables chunk splitting entirely (leaving a single upload submission); reverting the commit restores synchronous per-chunk fence waits while keeping WDDM TDR chunk splitting. No save, options, or cache changes.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (tests/run_all.py --changed forge/main on Windows: 211 passed, 2 pre-existing Windows-only main failures named in #2304: test_perf_report, test_dev_packs; targeted --strict suite 9/9 passed).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened (tests/test_astc_upload_chunking.py, tests/draw_stream_visibility_test.cpp, tests/fsr_image_retirement_test.cpp, and tests/fsr_uniform_ownership_test.cpp updated; all pass).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary On desktop and laptop GPUs without native ASTC hardware (AMD, NVIDIA, Intel), Longshot decodes large ASTC texture bursts on the GPU in `16M`-texel chunks (`RX_VK_ASTC_CHUNK_MPX`) to avoid Windows WDDM TDR timeouts. Previously, each chunk boundary blocked `Presentation_Thread` on `vkWaitForFences` just so it could reset and reuse a single upload command buffer. During zone transitions (such as entering Hyrule Field or Kokiri Forest, where `1365x1365x90` terrain arrays split into ~14 chunks), that synchronous wait stalled the presentation thread behind in-flight GPU work for **`172–332 ms` per zone entry**, causing large loading hitches and `295 ms` `vk: slow upload` spikes. This PR gives each frame recording a small reusable pool of upload command buffers (up to 64) so `replay_flush_upload()` submits each `16M`-texel chunk asynchronously and moves immediately to the next command buffer without waiting on the GPU mid-frame. Separate submissions still protect against Windows TDR, and all chunks retire together when the frame slot is reused. **Where this helps vs. where it doesn't:** - **What a player notices:** Noticeably shorter area-entry freezes when walking through gates, entering new zones, or warping into large outdoor areas (Hyrule Field, Kokiri Forest, etc.) on any non-ASTC desktop/laptop GPU — replacing jarring `~0.7–0.8 s` entry hitches with `~0.34–0.46 s` transitions (`-25%` to `-53%` shorter spikes). Once already exploring a loaded area, gameplay feels unchanged. - **Helps:** **Non-ASTC GPUs** (AMD, NVIDIA, Intel — AMD RDNA 3.5 tested; NVIDIA/Intel/RADV pending) **during zone transitions, teleports, and large ASTC texture streaming bursts**. Slashes 3-zone tour worst `astc_flush_ms` **`-99.5%`** (`332.07 -> 1.64 ms`), total `astc_flush_ms` **`-99.2%`** (`1580.42 -> 12.43 ms`), `vk: slow upload` count **`-88.0%`** (`25 -> 3`), `1365x1365x90` CPU `upload()` wall time **`-90.1%`** (`295.1 -> 29.2 ms`), and zone-entry peak frame spikes by **`-25%` to `-53%`** (Hyrule teleport `-44.5%`, Kokiri teleport `-25.4%`, Market->Kokiri transition `-53.1%`). - **No measurable impact:** **Warm steady-state gameplay** with no large ASTC bursts (e.g., walking around already-loaded Market at `67% render scale` (`1024x576`) or `100% render scale` (`1536x864`), where `0` warm chunk flushes happen, so steady-state FPS / 1% low are within run-to-run variance), **non-ASTC uploads** (like `#490 12288x12288 NVN 0x32`), and **native-ASTC GPUs / `RX_VK_ASTC_CPU=1` / `RX_VK_ASTC_CHUNK_MPX=0`**. On initial Market save-load, non-ASTC load work still dominates the peak frame (`791.8 -> 809.7 ms`, within single-run variance, even though its `astc_flush_ms` dropped `201.37 -> 1.64 ms`). **Technical details:** - Store a reusable vector of primary command buffers (`Recording::upload_bufs`, capped at `kMaxAsyncUploadChunks = 64` with a bounded-sync fallback) in `r->upload_pool` (`gpu/vk/vk_replay.cpp`). - Update `replay_flush_upload(VkCommandBuffer& cur)` (`gpu/vk/vk_internal.h`, `vk_replay.cpp`, `vk_texture.cpp`) to submit each finished `16M`-texel chunk asynchronously (`VK_NULL_HANDLE` fence on FIFO `dev.queue`), advance `r->upload`, `cur`, and `vk_texture`'s `up_cmd` to the next command buffer, and return immediately without mid-frame `vkWaitForFences`. - Rebind `RX_VK_PASS_TIMING` (`gprof_rebind_upload()` in `gpu/vk/vk_gprof.h` / `vk_gprof.cpp`, plus `gprof_submitted(r.slot, uploads || r.upload_idx > 0)`) whenever `replay_flush_upload()` switches command buffers so GPU pass timing captures all ASTC upload chunks `0..N`. - `full_barrier()` serializes GPU access to `bc_scratch`/`bc_out` across chunks, staging remains alive until slot reuse, and `recording_wait(r)` + `vkResetCommandPool(r.upload_pool)` retire all chunks in O(1). Read first: `replay_flush_upload()` in `gpu/vk/vk_replay.cpp` and `upload_astc_gpu()` in `gpu/vk/vk_texture.cpp`. ## Testing **How to test:** 1. **Hardware / config requirement:** Needs a **non-ASTC GPU** (AMD/NVIDIA/Intel) with GPU ASTC decode enabled (`RX_VK_ASTC_CPU=0`, default `RX_VK_ASTC_CHUNK_MPX=16`). 2. **Game-free tests:** Run `python -I -B tests/test_async_astc_upload_chunks.py` (fails on `main`, passes here) plus `tests/test_astc_upload_chunking.py`, `tests/test_astc_pass_timing.py`, `tests/test_draw_stream_visibility.py`, `tests/test_fsr_image_retirement.py`, and `tests/test_fsr_uniform_ownership.py`. 3. **Trigger real ASTC bursts (zone transitions):** Do **not** test only a warm Market loop (which triggers `0` chunk flushes). Instead, load Market and transition/teleport into **Hyrule Field** and **Kokiri Forest** (streaming `1365x1365x90` 11-mip ASTC terrain arrays). 4. **Verify the drop in logs and frame times:** - In `longshot_log.txt`: count `vk: slow upload` lines and check `1365x1365x1 x90` upload durations (should drop from `~158–295 ms` to `~18–29 ms`, with `slow upload` count dropping sharply). - In `frames.csv`: compare `astc_flush_ms` (should drop from `~170–330 ms` spikes to `< 2 ms`) and zone-entry peak frame times. 5. **Stability & pass-timing check:** Confirm `0` `VK_ERROR_DEVICE_LOST` and clean terrain/prop textures across all zones; optionally run with `RX_VK_PASS_TIMING=2` to verify `u astc` spans still report cleanly across multi-chunk uploads. **Tested:** Windows 11 (build 26200), AMD Ryzen AI 7 350 + AMD Radeon 860M (8 CUs, RDNA 3.5 iGPU, Adrenalin 26.10.1), `1600x1000`, `handheld_profile=1`, `sharpness=80`, `vsync=0`, `amd_anti-lag_2=1`, `RX_VK_PRECOMPILE=1`, `>= 12.5 s` post-load settle: - 3-zone tour (`Market -> Hyrule Field -> Kokiri Forest`, `67% render scale`, `1024x576`): `0` `VK_ERROR_DEVICE_LOST`, `vk: slow upload` count dropped `25 -> 3`, worst `astc_flush_ms` dropped `332.07 -> 1.64 ms`, total `astc_flush_ms` dropped `1580.42 -> 12.43 ms`. - `Market_Child` fountain-first route (`67% render scale` `1024x576` 3 interleaved rounds, `100% render scale` `1536x864` 3 interleaved rounds) + `RX_VK_PASS_TIMING=2` (`67% render scale`, `1024x576`): `astc_flush_ms = 0.000 [0.000, 0.000]` at both `67% render scale` (`1024x576`) and `100% render scale` (`1536x864`), `0` `>= 50 ms` frames, `gprof_rebind_upload` logged `u astc` cleanly with `0` `VK_ERROR_DEVICE_LOST`. - Stationary `RX_VK_SHOT_FX=1` (`sharpness=80`) visual inspection: scene textures and ASTC terrain/props match `main` cleanly with zero corruption. - Game-free tests (on current `main @ 0e32bc10` with `dev.py env` `llvm-mingw` + `RX_CPM`): - `tests/test_async_astc_upload_chunks.py` (new; exercises async chunk submits, slot reuse, `kMaxAsyncUploadChunks` fallback, error-path `vkQueueWaitIdle` ordering, and `gprof_rebind_upload`): **FAIL** on `main` (`753fb5af`), **PASS** on this branch (`37687772`). - Targeted `--strict` suite (`test_async_astc_upload_chunks`, `test_astc_upload_chunking`, `test_astc_pass_timing`, `test_draw_stream_visibility`, `test_fsr_image_retirement`, `test_fsr_uniform_ownership`, `test_vk_braces`, `test_utf8_paths`, `test_doc_anchors`): **9 passed, 0 failed, 0 skipped**. - `python -I -B tests/run_all.py --changed forge/main`: **211 passed, 2 failed, 5 skipped** — both failures are pre-existing Windows-only `main` failures documented in `#2304` (`test_perf_report`, `test_dev_packs`). **Still to test:** - NVIDIA and Intel GPUs: 3-zone tour (`Market -> Hyrule Field -> Kokiri Forest`), expecting reduced zone-entry hitching and `0` `VK_ERROR_DEVICE_LOST` (@Beanstalk Windows NVIDIA, Linux RADV). ## Measurements **Verdict:** Large, unmistakable win during zone transitions and ASTC texture bursts: slashes worst `astc_flush_ms` **`-99.5%`** (`332.07 -> 1.64 ms`), total `astc_flush_ms` **`-99.2%`** (`1580.42 -> 12.43 ms`), `vk: slow upload` count **`-88.0%`** (`25 -> 3`), `1365x1365x90` CPU `upload()` wall time **`-90.1%`** (`295.1 -> 29.2 ms`), and zone-entry peak frame spikes **`-25.4%` to `-53.1%`**. Warm steady-state Market (`67% render scale` `1024x576` and `100% render scale` `1536x864`) has `0` chunk flushes and shows **no measurable difference (within run-to-run variance)**, as expected. Setup: Windows 11, AMD Ryzen AI 7 350 + Radeon 860M (Adrenalin 26.10.1), `1600x1000`, `handheld_profile=1`, `sharpness=80`, `vsync=0`, `amd_anti-lag_2=1`, `RX_VK_PRECOMPILE=1`, symmetric pre-warmed shader/pipeline caches. Measured standalone directly against `main @ 753fb5af`; rebased cleanly onto `main @ 0e32bc10` (`37687772` — none of the 8 intervening commits touch ASTC upload chunking, `replay_flush_upload`, or `vk_texture.cpp`, so the numbers hold unchanged). 3-zone tour and Market->Kokiri transition run are single runs; steady-state Market values are `median [min, max]` across 3 interleaved rounds. **Where it makes a difference (zone transitions & ASTC upload bursts):** | Metric | Before: `main @ 753fb5af` | After: this PR @ `37687772` | Change | |---|---|---|---| | **3-Zone Tour worst `astc_flush_ms` (`67% render scale`, `1024x576`)** | `332.07 ms` | **`1.64 ms`** | **`-330.43 ms` (`-99.5%`)** | | **3-Zone Tour total `astc_flush_ms` (`67% render scale`, `1024x576`)** | `1580.42 ms` (`41` frames) | **`12.43 ms` (`22` frames)** | **`-1567.99 ms` (`-99.2%`)** | | **3-Zone Tour `vk: slow upload` count (`67% render scale`, `1024x576`)** | `25` | **`3`** | **`-22` (`-88.0%`)** | | **3-Zone Tour `vk: slow upload` overall max (`67% render scale`, `1024x576`)** | `295.1 ms` (ASTC `1365x1365x90`) | **`65.4 ms`** (non-ASTC `#490 NVN 0x32`) | **`-229.7 ms` (`-77.8%`)** | | **3-Zone Tour `1365x1365x90` CPU `upload()` wall time (`67% render scale`, `1024x576`)** | `295.1 ms` | **`29.2 ms` (GPU decode async on `dev.queue`)** | **`-265.9 ms` (`-90.1%`)** | | **3-Zone Tour Hyrule teleport peak frame (`67% render scale`, `1024x576`)** | `831.3 ms` | **`461.4 ms`** | **`-369.9 ms` (`-44.5%`)** | | **3-Zone Tour Kokiri teleport peak frame (`67% render scale`, `1024x576`)** | `540.2 ms` | **`402.8 ms`** | **`-137.4 ms` (`-25.4%`)** | | **Market->Kokiri transition run peak frame (`67% render scale`, `1024x576`)** | `717.3 ms` | **`336.2 ms`** | **`-381.1 ms` (`-53.1%`)** | **Where it does NOT make a difference (within run-to-run variance):** | Metric | Before: `main @ 753fb5af` | After: this PR @ `37687772` | Change | |---|---|---|---| | 3-Zone Tour initial Market save-load frame (`67% render scale`, `1024x576`) | `791.8 ms` (`astc_flush_ms 201.37 ms`) | `809.7 ms` (`astc_flush_ms 1.64 ms`) | No measurable difference (within run-to-run variance; non-ASTC load dominates, `astc_flush_ms` `-99.2%`) | | Market `67% render scale` (`1024x576`) Median FPS (3 rounds, `0` warm flushes) | `54.38 [53.59, 54.50]` | `53.63 [53.36, 54.56]` | No measurable difference (within run-to-run variance; path inactive) | | Market `67% render scale` (`1024x576`) Mean FPS (3 rounds, `0` warm flushes) | `53.68 [52.66, 54.00]` | `53.04 [52.56, 53.98]` | No measurable difference (within run-to-run variance; path inactive) | | Market `67% render scale` (`1024x576`) 1% Low FPS (3 rounds, `0` warm flushes) | `38.95 [36.86, 39.10]` | `38.42 [36.52, 39.16]` | No measurable difference (within run-to-run variance; path inactive) | | Market `67% render scale` (`1024x576`) `astc_flush_ms` (3 rounds) | `0.005 [0.005, 0.013] ms` | `0.000 [0.000, 0.000] ms` | `~0 ms` flush on both (path inactive in warm Market) | | Market `100% render scale` (`1536x864`) Median FPS (3 rounds, `0` warm flushes) | `45.11 [44.92, 45.29]` | `45.21 [45.21, 45.21]` | No measurable difference (within run-to-run variance; path inactive) | | Market `100% render scale` (`1536x864`) Mean FPS (3 rounds, `0` warm flushes) | `44.79 [44.25, 44.98]` | `44.56 [44.38, 44.71]` | No measurable difference (within run-to-run variance; path inactive) | | Market `100% render scale` (`1536x864`) 1% Low FPS (3 rounds, `0` warm flushes) | `32.89 [31.36, 33.52]` | `30.95 [30.89, 32.26]` | No measurable difference (within run-to-run variance; path inactive) | | Market `100% render scale` (`1536x864`) `astc_flush_ms` (3 rounds) | `0.011 [0.004, 0.014] ms` | `0.000 [0.000, 0.000] ms` | `~0 ms` flush on both (path inactive in warm Market) | | Market `100% render scale` (`1536x864`) `>= 50 ms` frames (3 rounds) | `0 [0, 0]` | `0 [0, 0]` | `0` frames on both (path inactive in warm Market) | ```text # Before (3-zone tour, main @ 753fb5af): [hos Presentation Thread] vk: slow upload 158.5 ms: #130 0x10a22aa600 1365x1365x1 x90 levels 11 NVN 0x8e ASTC (BC3), 57825 of 57825 KB [hos Presentation Thread] vk: slow upload 41.2 ms: #490 0x1147c16000 12288x12288x1 x1 levels 1 NVN 0x32, 294912 of 294912 KB [hos Presentation Thread] vk: slow upload 295.1 ms: #4178 0x10a5b22c00 1365x1365x1 x90 levels 11 NVN 0x80 ASTC (BC3), 57825 of 57825 KB [hos host] vk: slow submit: 32.5 ms: draw 31.2 descriptors 29.9 texture lookups 29.3 uploads 20.3 # After (3-zone tour, this PR @ 37687772): [hos Presentation Thread] vk: slow upload 18.1 ms: #130 0x10a22aa600 1365x1365x1 x90 levels 11 NVN 0x8e ASTC (BC3), 57825 of 57825 KB [hos Presentation Thread] vk: slow upload 65.4 ms: #490 0x1147c16000 12288x12288x1 x1 levels 1 NVN 0x32, 294912 of 294912 KB [hos Presentation Thread] vk: slow upload 29.2 ms: #4110 0x10a5b22c00 1365x1365x1 x90 levels 11 NVN 0x80 ASTC (BC3), 57825 of 57825 KB [hos Presentation Thread] vi: present intervals: <15.5 ms 71, 15.5-17.8 77, 17.8-22 88, 22-30 25, 30-40 7, over 40 2 ``` ## Risks - **Command-buffer count bound:** Each `Recording` slot caches at most `kMaxAsyncUploadChunks = 64` primary command buffers (`> 1,024M` texels in one recording) before falling back to the bounded-sync `r->fence` + `vkResetCommandPool` path, preventing unbounded pool growth. - **GPU ordering & WDDM TDR:** All chunks submit to the same FIFO `dev.queue` with `full_barrier()` at chunk boundaries (protecting `bc_scratch`/`bc_out`) and separate `vkQueueSubmit2` packets (preserving Windows WDDM TDR protection). Staging buffers remain live until `recording_wait(r)` on slot reuse. - **Turn off / rollback:** `RX_VK_ASTC_CHUNK_MPX=0` disables chunk splitting entirely (leaving a single upload submission); reverting the commit restores synchronous per-chunk fence waits while keeping WDDM TDR chunk splitting. No save, options, or cache changes. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (`tests/run_all.py --changed forge/main` on Windows: 211 passed, 2 pre-existing Windows-only `main` failures named in `#2304`: `test_perf_report`, `test_dev_packs`; targeted `--strict` suite 9/9 passed). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened (`tests/test_astc_upload_chunking.py`, `tests/draw_stream_visibility_test.cpp`, `tests/fsr_image_retirement_test.cpp`, and `tests/fsr_uniform_ownership_test.cpp` updated; all pass). - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
perf(vk): cut zone-entry ASTC upload spikes 25-53% (astc_flush_ms -99.5%) on non-ASTC GPUs via async chunk submits
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 4s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
15cec0f473
replay_flush_upload() previously ended, submitted, and synchronously blocked Presentation_Thread on vkWaitForFences(r->fence) every time up_astc_texels crossed RX_VK_ASTC_CHUNK_MPX (16M texels), solely to reset r->upload_pool and reuse the single r->upload handle. During zone-entry ASTC texture bursts, each flush stalled Presentation_Thread behind in-flight GPU work on dev.queue (172-332 ms astc_flush_ms on 3-zone tour entries on main @ 753fb5af).  Keep a reusable vector of primary command buffers (r->upload_bufs) per Recording slot in r->upload_pool (capped at 64 with a bounded-sync fallback). replay_flush_upload(VkCommandBuffer& cur) now submits each finished chunk fire-and-forget (VK_NULL_HANDLE fence) on FIFO dev.queue, advances r->upload, cur, and vk_texture's up_cmd to the next command buffer, and returns immediately. Separate vkQueueSubmit2 calls still split WDDM DMA packets to prevent TDR, full_barrier() serializes GPU access to bc_scratch/bc_out across chunks, and recording_wait(r) + vkResetCommandPool(r->upload_pool) retire all chunks safely on slot reuse.  Assisted-by: Antigravity
Author
Contributor

Tested in game: Windows 11, AMD Radeon 860M (Adrenalin 26.10.1): 3-zone tour (Market -> Hyrule Field -> Kokiri Forest) and Market (1024x576 and 1536x864). Confirmed worst astc_flush_ms dropped 332.07 -> 1.64 ms (-99.5%), slow upload count dropped 25 -> 3 (1365x1365x90 CPU upload 295.1 -> 29.2 ms), Hyrule/Kokiri entry spikes cut 25-53%, 0 device_lost, clean texture parity.

Tested in game: Windows 11, AMD Radeon 860M (Adrenalin 26.10.1): 3-zone tour (Market -> Hyrule Field -> Kokiri Forest) and Market (1024x576 and 1536x864). Confirmed worst astc_flush_ms dropped 332.07 -> 1.64 ms (-99.5%), slow upload count dropped 25 -> 3 (1365x1365x90 CPU upload 295.1 -> 29.2 ms), Hyrule/Kokiri entry spikes cut 25-53%, 0 device_lost, clean texture parity.
Member

Possibly related, for context:

  • PR #1833 fix(vk): chunk GPU ASTC uploads to fix iGPU VK_ERROR_DEVICE_LOST (Windows 2s TDR) and drop per-chip CPU fallbacks (15.2 s to 2.2 s Kokiri load) — Introduced the ASTC chunk-flush path this PR makes asynchronous
  • PR #2292 WIP: feat(vk): a disk cache of decoded ASTC textures, on by default for integrated GPUs (RX_VK_TEX_CACHE) — Open ASTC texture caching work also targets zone-load upload costs; distinct mechanism
  • issue #1988 Game: Periodic ~4.6 s stalls of 100-200 ms (wall-clock cadence, camera-movement dependent) in Castle Town market and Kokiri Forest: host blocked in present or texture lookups — Open renderer-stall report includes Kokiri texture/upload stalls on NVIDIA Linux
Possibly related, for context: - PR #1833 fix(vk): chunk GPU ASTC uploads to fix iGPU VK_ERROR_DEVICE_LOST (Windows 2s TDR) and drop per-chip CPU fallbacks (15.2 s to 2.2 s Kokiri load) — Introduced the ASTC chunk-flush path this PR makes asynchronous - PR #2292 WIP: feat(vk): a disk cache of decoded ASTC textures, on by default for integrated GPUs (RX_VK_TEX_CACHE) — Open ASTC texture caching work also targets zone-load upload costs; distinct mechanism - issue #1988 Game: Periodic ~4.6 s stalls of 100-200 ms (wall-clock cadence, camera-movement dependent) in Castle Town market and Kokiri Forest: host blocked in present or texture lookups — Open renderer-stall report includes Kokiri texture/upload stalls on NVIDIA Linux
Jer9 changed title from WIP: perf(vk): cut zone-entry ASTC upload spikes 25-53% (astc_flush_ms -99.5%) on non-ASTC GPUs via async chunk submits to perf(vk): cut zone-entry ASTC upload spikes 25-53% (astc_flush_ms -99.5%) on non-ASTC GPUs via async chunk submits 2026-11-23 04:23:56 +00:00
Member

@Jer9 only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for 15cec0f, and the PR has changed since (3768777), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@Jer9 only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `15cec0f`, and the PR has changed since (`3768777`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Jer9 force-pushed perf/vk-async-astc-upload-chunks from 15cec0f473
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 4s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 376877725f
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 6s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-23 04:35:16 +00:00
Compare
Member

@Jer9 only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@Jer9 only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
Author
Contributor

@Beanstalk Please test on Windows NVIDIA and Linux RADV with GPU ASTC decode enabled (RX_VK_ASTC_CPU=0, default RX_VK_ASTC_CHUNK_MPX=16, head 37687772): run a 3-zone tour / zone transitions (Market -> Hyrule Field -> Kokiri Forest) to trigger large 1365x1365x90 ASTC bursts. Compare vk: slow upload count/duration in longshot_log.txt and astc_flush_ms + zone-entry peak frame times in frames.csv vs main, and verify clean terrain/prop textures with 0 VK_ERROR_DEVICE_LOST.

@Beanstalk Please test on Windows NVIDIA and Linux RADV with GPU ASTC decode enabled (`RX_VK_ASTC_CPU=0`, default `RX_VK_ASTC_CHUNK_MPX=16`, head `37687772`): run a 3-zone tour / zone transitions (`Market -> Hyrule Field -> Kokiri Forest`) to trigger large `1365x1365x90` ASTC bursts. Compare `vk: slow upload` count/duration in `longshot_log.txt` and `astc_flush_ms` + zone-entry peak frame times in `frames.csv` vs `main`, and verify clean terrain/prop textures with 0 `VK_ERROR_DEVICE_LOST`.
Member

@Jer9 only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for 3768777, and the PR has changed since (f4de7b2), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@Jer9 only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `3768777`, and the PR has changed since (`f4de7b2`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
@ -1173,6 +1178,7 @@ void part_submit(const PartSubmit& s) {
static std::atomic<int> failures{0};
if (res != VK_SUCCESS && failures++ < 8) logf("vk: submit %llu failed (%d)", (unsigned long long)r.value, (int)res);
if (res == VK_ERROR_DEVICE_LOST) device_lost(); // (the recorder's too: the report, then the process ends)
if (res != VK_SUCCESS && r.upload_idx > 0) vkQueueWaitIdle(dev.queue);
Contributor

if the last submit fails after a few upload chunks already went threw, wat makes it safe for the next frame to reuse that slot? dumb question, did you test that whit the recorder on and off? I wonder if someone has tried the zone entry on a arc b580. i could see if the freeze is shorter

if the last submit fails after a few upload chunks already went threw, wat makes it safe for the next frame to reuse that slot? dumb question, did you test that whit the recorder on and off? I wonder if someone has tried the zone entry on a arc b580. i could see if the freeze is shorter
Author
Contributor

Not a dumb question at all — those are both good things to check.

  • Slot reuse if the final submit fails: That's what line 1181 (and the matching line 1125 in submit_recording()) is there for. If submit_or_retry(si, r.fence) returns a non-DEVICE_LOST error (VK_ERROR_DEVICE_LOST aborts via device_lost()), r.submitted becomes false, so the next recording_wait(r) skips vkWaitForFences. Because r.upload_idx > 0, vkQueueWaitIdle(dev.queue) runs right there under dev.present_mu to drain all earlier async upload chunks (0 .. r.upload_idx - 1) on the FIFO queue. In RX_VK_RECORDER_PARTS mode, recording_wait(r) also waits on rec::wait_part(rec_ticket[r.slot]) before reading r.submitted or resetting r.upload_pool, so the replay thread can't reuse the slot while part_submit() is still draining the queue. (The same drain-before-reset runs inside replay_flush_upload() if a mid-upload end/submit fails with r->upload_idx > 0, which tests/test_async_astc_upload_chunks.py checks.) In batched mode (RX_VK_BATCH=1), submit_recording() / part_submit() only append to pend.cbs and keep r.submitted = true; if the later queue_flush_locked() fails non-fatally, batch_tl never signals so recording_wait(r) never reaches vkResetCommandPool (same as main for r.pool).
  • Recorder on vs. off: On main, Threaded rendering: Auto stays off on my non-mirrored iGPU, so the standalone in-game runs were with the recorder off. The RX_VK_RECORDER=thread (part_submit) path was checked by code inspection (vkEndCommandBuffer(cur) in replay_flush_upload() hits rec::boundary(B_vkEndCommandBuffer) and drains the ring before each chunk submits, and part_submit() sits between post_part_submit() and rec::wait_part() on slot reuse), not in a live game run yet.
  • Arc B580: Nobody has tried it on Intel yet, so if you want to give it a spin on a B580 that'd be awesome! With default RX_VK_ASTC_CPU=0 and RX_VK_ASTC_CHUNK_MPX=16 (plus RX_VK_FRAME_TRACE=1), entering Hyrule Field or Kokiri Forest makes it easy to compare — the 1365x1365x90 vk: slow upload lines in longshot_log.txt and astc_flush_ms / zone-entry peak frame times in frames.csv are the clearest things to look at against main.
Not a dumb question at all — those are both good things to check. - **Slot reuse if the final submit fails:** That's what line 1181 (and the matching line 1125 in `submit_recording()`) is there for. If `submit_or_retry(si, r.fence)` returns a non-`DEVICE_LOST` error (`VK_ERROR_DEVICE_LOST` aborts via `device_lost()`), `r.submitted` becomes `false`, so the next `recording_wait(r)` skips `vkWaitForFences`. Because `r.upload_idx > 0`, `vkQueueWaitIdle(dev.queue)` runs right there under `dev.present_mu` to drain all earlier async upload chunks (`0 .. r.upload_idx - 1`) on the FIFO queue. In `RX_VK_RECORDER_PARTS` mode, `recording_wait(r)` also waits on `rec::wait_part(rec_ticket[r.slot])` before reading `r.submitted` or resetting `r.upload_pool`, so the replay thread can't reuse the slot while `part_submit()` is still draining the queue. (The same drain-before-reset runs inside `replay_flush_upload()` if a mid-upload end/submit fails with `r->upload_idx > 0`, which `tests/test_async_astc_upload_chunks.py` checks.) In batched mode (`RX_VK_BATCH=1`), `submit_recording()` / `part_submit()` only append to `pend.cbs` and keep `r.submitted = true`; if the later `queue_flush_locked()` fails non-fatally, `batch_tl` never signals so `recording_wait(r)` never reaches `vkResetCommandPool` (same as `main` for `r.pool`). - **Recorder on vs. off:** On `main`, `Threaded rendering: Auto` stays off on my non-mirrored iGPU, so the standalone in-game runs were with the recorder off. The `RX_VK_RECORDER=thread` (`part_submit`) path was checked by code inspection (`vkEndCommandBuffer(cur)` in `replay_flush_upload()` hits `rec::boundary(B_vkEndCommandBuffer)` and drains the ring before each chunk submits, and `part_submit()` sits between `post_part_submit()` and `rec::wait_part()` on slot reuse), not in a live game run yet. - **Arc B580:** Nobody has tried it on Intel yet, so if you want to give it a spin on a B580 that'd be awesome! With default `RX_VK_ASTC_CPU=0` and `RX_VK_ASTC_CHUNK_MPX=16` (plus `RX_VK_FRAME_TRACE=1`), entering Hyrule Field or Kokiri Forest makes it easy to compare — the `1365x1365x90` `vk: slow upload` lines in `longshot_log.txt` and `astc_flush_ms` / zone-entry peak frame times in `frames.csv` are the clearest things to look at against `main`.
Contributor

Tested on Linux RADV: a Steam Deck OLED (VANGOGH, SteamOS 3.9.5, GPU held at 1600 MHz). This PR's head 37687772 against its base, main @ 0e32bc10, both renderers built the same way (nx2/build.py --standalone, no play profile). GPU ASTC decode at its defaults (no RX_VK_ASTC_* switch set). Headless run: the Kokiri save's load, then three teleports to Market_Child with a walk and camera swings in each; RX_VK_FRAME_TRACE=1, HOS_FPS_MAX=1000, 3D scale 1.0. Order: main, PR, PR, main.

Works on RADV: the mid-frame chunk waits are gone, and frame times improve a little, both PR runs ahead of both main runs on p95 and p99. The worst frames right after an arrival (340 to 390 ms) are the same on both sides.

main a PR a PR b main b
astc_flush_ms, whole run 1,891 ms 82 ms 96 ms 1,209 ms
Longest astc_flush_ms in a frame 168.6 ms 4.8 ms 7.9 ms 76.3 ms
Slow ASTC uploads, total 15, 592 ms 3, 83 ms 6, 186 ms 11, 332 ms
Three Market visits: frames of 100 ms or more 29 (4.56 s) 19 (3.46 s) 24 (3.82 s) 25 (4.26 s)
of which in each visit's first 5 s 25 19 23 23
p95 frame time 77 ms 70 ms 69 ms 79 ms
p99 frame time 117 ms 100 ms 105 ms 118 ms
After each visit's first 5 s: frames of 100 ms or more 4 0 1 2
Mean fps 20.1 20.2 20.8 19.6

On the Deck the terrain arrays are 341x341 (the Deck's texture size cap), about 10.5M texels each, so the chunk boundaries fall between textures:

main: vk: slow upload 104.9 ms: #6596 0x10a5b22c00 341x341x1 x90 levels 9 NVN 0x80 ASTC (BC3), 57825 of 57825 KB
PR:   vk: slow upload 33.5 ms: #12043 0x10a5b22c00 341x341x1 x90 levels 9 NVN 0x80 ASTC (BC3), 57825 of 57825 KB

Loading screens were 2.5 % shorter (9.25 s to 9.02 s a teleport on average). Each run had 12 teleports, with no FATAL, device lost or ASTC error.

One thing I can't explain: in PR run b, outside the measured visits, one frame of 603 ms, with two non-ASTC uploads and small ASTC ones slow at the same moment. It looks like the whole Deck stalling (this route swaps out 2.0 to 2.4 GB on every run), and the other PR run had nothing like it, so I don't tie it to this change:

vk: slow upload 160.1 ms: #17348 0x112498ec00 4096x4096x1 x1 levels 1 NVN 0x4b, 16384 of 16384 KB
vk: slow upload 679.8 ms: #17377 0x111d973a00 4096x4096x1 x1 levels 1 NVN 0x4b, 16384 of 16384 KB
vk: slow upload 43.4 ms: #17368 0x10ec989800 512x512x1 x1 levels 10 NVN 0x8c ASTC (BC3), 145 of 145 KB

Not checked: pictures, and a session in Game Mode.

Tested on Linux RADV: a Steam Deck OLED (VANGOGH, SteamOS 3.9.5, GPU held at 1600 MHz). This PR's head `37687772` against its base, main @ `0e32bc10`, both renderers built the same way (`nx2/build.py --standalone`, no play profile). GPU ASTC decode at its defaults (no `RX_VK_ASTC_*` switch set). Headless run: the Kokiri save's load, then three teleports to Market_Child with a walk and camera swings in each; `RX_VK_FRAME_TRACE=1`, `HOS_FPS_MAX=1000`, 3D scale 1.0. Order: main, PR, PR, main. **Works on RADV: the mid-frame chunk waits are gone, and frame times improve a little, both PR runs ahead of both main runs on p95 and p99. The worst frames right after an arrival (340 to 390 ms) are the same on both sides.** | | main a | PR a | PR b | main b | |---|---|---|---|---| | `astc_flush_ms`, whole run | 1,891 ms | 82 ms | 96 ms | 1,209 ms | | Longest `astc_flush_ms` in a frame | 168.6 ms | 4.8 ms | 7.9 ms | 76.3 ms | | Slow ASTC uploads, total | 15, 592 ms | 3, 83 ms | 6, 186 ms | 11, 332 ms | | Three Market visits: frames of 100 ms or more | 29 (4.56 s) | 19 (3.46 s) | 24 (3.82 s) | 25 (4.26 s) | | of which in each visit's first 5 s | 25 | 19 | 23 | 23 | | p95 frame time | 77 ms | 70 ms | 69 ms | 79 ms | | p99 frame time | 117 ms | 100 ms | 105 ms | 118 ms | | After each visit's first 5 s: frames of 100 ms or more | 4 | 0 | 1 | 2 | | Mean fps | 20.1 | 20.2 | 20.8 | 19.6 | On the Deck the terrain arrays are 341x341 (the Deck's texture size cap), about 10.5M texels each, so the chunk boundaries fall between textures: ``` main: vk: slow upload 104.9 ms: #6596 0x10a5b22c00 341x341x1 x90 levels 9 NVN 0x80 ASTC (BC3), 57825 of 57825 KB PR: vk: slow upload 33.5 ms: #12043 0x10a5b22c00 341x341x1 x90 levels 9 NVN 0x80 ASTC (BC3), 57825 of 57825 KB ``` Loading screens were 2.5 % shorter (9.25 s to 9.02 s a teleport on average). Each run had 12 teleports, with no FATAL, device lost or ASTC error. One thing I can't explain: in PR run b, outside the measured visits, one frame of 603 ms, with two non-ASTC uploads and small ASTC ones slow at the same moment. It looks like the whole Deck stalling (this route swaps out 2.0 to 2.4 GB on every run), and the other PR run had nothing like it, so I don't tie it to this change: ``` vk: slow upload 160.1 ms: #17348 0x112498ec00 4096x4096x1 x1 levels 1 NVN 0x4b, 16384 of 16384 KB vk: slow upload 679.8 ms: #17377 0x111d973a00 4096x4096x1 x1 levels 1 NVN 0x4b, 16384 of 16384 KB vk: slow upload 43.4 ms: #17368 0x10ec989800 512x512x1 x1 levels 10 NVN 0x8c ASTC (BC3), 145 of 145 KB ``` Not checked: pictures, and a session in Game Mode.
Contributor

@Jer9 wrote in #2330 (comment):

  • Arc B580: Nobody has tried it on Intel yet, so if you want to give it a spin on a B580 that'd be awesome! With default RX_VK_ASTC_CPU=0 and RX_VK_ASTC_CHUNK_MPX=16 (plus RX_VK_FRAME_TRACE=1), entering Hyrule Field or Kokiri Forest makes it easy to compare — the 1365x1365x90 vk: slow upload lines in longshot_log.txt and astc_flush_ms / zone-entry peak frame times in frames.csv are the clearest things to look at against main.

sure i will give it a spin after work tonight, if someone else doesnt get to it before me.

@Jer9 wrote in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2330#issuecomment-75928: > * **Arc B580:** Nobody has tried it on Intel yet, so if you want to give it a spin on a B580 that'd be awesome! With default `RX_VK_ASTC_CPU=0` and `RX_VK_ASTC_CHUNK_MPX=16` (plus `RX_VK_FRAME_TRACE=1`), entering Hyrule Field or Kokiri Forest makes it easy to compare — the `1365x1365x90` `vk: slow upload` lines in `longshot_log.txt` and `astc_flush_ms` / zone-entry peak frame times in `frames.csv` are the clearest things to look at against `main`. sure i will give it a spin after work tonight, if someone else doesnt get to it before me.
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The new command-buffer path continues recording after a non-device-lost begin failure, which can produce invalid Vulkan commands. The Steam Deck runs show a repeatable reduction in high frame times, but the larger Windows zone-entry claims are based on single runs and key hardware and recorder paths remain untested.

The change submits bounded ASTC upload chunks without waiting after each one, trading cached command buffers and additional in-flight work for shorter upload stalls. On the reported Steam Deck route, p99 frame time fell from 117–118 ms to 100–105 ms, while the worst arrival frames remained similar.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_replay.cpp:8212: A non-device-lost failure from beginning the fresh upload command buffer is ignored, and the function reports success. (more on the line) Do: Check every begin result and propagate failure or terminate through the renderer's fatal error path; do not record or submit the failed command buffer. Add a failure-path test.

Should fix (1): not blocking, but worth doing before merging.

  • L2 tests/test_async_astc_upload_chunks.py:235: The documented standalone test defaults to clang++ even though Linux builds also support GCC. (more on the line) Do: Honor CXX and choose an available supported compiler when no --cxx argument is supplied, as the test runner does.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3: The Windows zone-entry peak reductions are each based on a single comparison against an older main commit. When: The reported 831.3 to 461.4 ms and 717.3 to 336.2 ms peaks do not show the run-to-run spread or establish the size of the player-visible gain at the current base. Do: Repeat the zone-entry routes on the current base and head with at least two interleaved runs per side, reporting individual peaks and loading times.
  • L4: The new submission and retirement path has not been exercised in game on NVIDIA or with the threaded recorder, and the Deck run did not check rendered pictures. When: The change submits multiple upload buffers and reuses their pool across driver and recorder configurations; the reported runs do not show that terrain remains correct and slots retire safely on those paths. Do: Run the zone-entry texture and device-loss checks on Windows and Linux NVIDIA, exercise the threaded recorder, and inspect Deck terrain in Game Mode; record the results.

@fix can do L1 and L2.

Checks: Still running: 9 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes on the tested Steam Deck route: two interleaved runs per side reported p95 of 77–79 ms versus 69–70 ms and p99 of 117–118 ms versus 100–105 ms. The claimed 25–53% Windows zone-entry peak reduction is unproven because those comparisons were single runs against an older base.

Other systems: The path affects GPU ASTC decoding, queue submission, recording-slot reuse and pass timing on both operating systems. Windows AMD was tested in game; Linux RADV was tested headlessly on Steam Deck without picture or Game Mode checks. NVIDIA, Intel and the threaded recorder path have no reported in-game runs.

Switches: No switches added, changed or removed. Existing RX_VK_ASTC_CHUNK_MPX defaults to 16; setting it to 0 disables chunk splitting rather than restoring the previous synchronous chunk behavior.

Reviewed: 376877725f against 0e32bc100d: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete diff, commit message, new test and profiling files, and relevant replay, texture, recorder and test code around the changes. Skimmed the remaining portions of the large changed replay, texture and existing test files; did not read those files in full. The requested review checklist and sibling Tooling AGENTS.md were absent. No recorded artifacts, translations or generated files were changed.; nothing run (a code review).

Checked and fine:

  • The commit has an Assisted-by trailer; no game-derived files, generated files or third-party files appear in the diff.
  • Successful async chunks and their final submission use the same queue; slot reuse waits for the final fence or batch timeline.
  • The bounded fallback waits for the fenced chunk before resetting the upload pool.
  • The new test runner declaration passes the selected C++ compiler when invoked through run_all.py.

Testing: Read-only review; no builds, tests or project scripts were run. Several CI checks remain in progress.

Overlaps and merge order: Unknown; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The new command-buffer path continues recording after a non-device-lost begin failure, which can produce invalid Vulkan commands. The Steam Deck runs show a repeatable reduction in high frame times, but the larger Windows zone-entry claims are based on single runs and key hardware and recorder paths remain untested. The change submits bounded ASTC upload chunks without waiting after each one, trading cached command buffers and additional in-flight work for shorter upload stalls. On the reported Steam Deck route, p99 frame time fell from 117–118 ms to 100–105 ms, while the worst arrival frames remained similar. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_replay.cpp:8212`: A non-device-lost failure from beginning the fresh upload command buffer is ignored, and the function reports success. (more on the line) **Do:** Check every begin result and propagate failure or terminate through the renderer's fatal error path; do not record or submit the failed command buffer. Add a failure-path test. **Should fix (1)**: not blocking, but worth doing before merging. - **L2** `tests/test_async_astc_upload_chunks.py:235`: The documented standalone test defaults to clang++ even though Linux builds also support GCC. (more on the line) **Do:** Honor CXX and choose an available supported compiler when no --cxx argument is supplied, as the test runner does. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The Windows zone-entry peak reductions are each based on a single comparison against an older main commit. *When:* The reported 831.3 to 461.4 ms and 717.3 to 336.2 ms peaks do not show the run-to-run spread or establish the size of the player-visible gain at the current base. **Do:** Repeat the zone-entry routes on the current base and head with at least two interleaved runs per side, reporting individual peaks and loading times. - **L4**: The new submission and retirement path has not been exercised in game on NVIDIA or with the threaded recorder, and the Deck run did not check rendered pictures. *When:* The change submits multiple upload buffers and reuses their pool across driver and recorder configurations; the reported runs do not show that terrain remains correct and slots retire safely on those paths. **Do:** Run the zone-entry texture and device-loss checks on Windows and Linux NVIDIA, exercise the threaded recorder, and inspect Deck terrain in Game Mode; record the results. `@fix` can do L1 and L2. **Checks:** Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes on the tested Steam Deck route: two interleaved runs per side reported p95 of 77–79 ms versus 69–70 ms and p99 of 117–118 ms versus 100–105 ms. The claimed 25–53% Windows zone-entry peak reduction is unproven because those comparisons were single runs against an older base. **Other systems:** The path affects GPU ASTC decoding, queue submission, recording-slot reuse and pass timing on both operating systems. Windows AMD was tested in game; Linux RADV was tested headlessly on Steam Deck without picture or Game Mode checks. NVIDIA, Intel and the threaded recorder path have no reported in-game runs. **Switches:** No switches added, changed or removed. Existing RX_VK_ASTC_CHUNK_MPX defaults to 16; setting it to 0 disables chunk splitting rather than restoring the previous synchronous chunk behavior. **Reviewed:** 376877725fd8 against 0e32bc100dbe: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete diff, commit message, new test and profiling files, and relevant replay, texture, recorder and test code around the changes. Skimmed the remaining portions of the large changed replay, texture and existing test files; did not read those files in full. The requested review checklist and sibling Tooling AGENTS.md were absent. No recorded artifacts, translations or generated files were changed.; nothing run (a code review). **Checked and fine:** - The commit has an Assisted-by trailer; no game-derived files, generated files or third-party files appear in the diff. - Successful async chunks and their final submission use the same queue; slot reuse waits for the final fence or batch timeline. - The bounded fallback waits for the fenced chunk before resetting the upload pool. - The new test runner declaration passes the selected C++ compiler when invoked through run_all.py. **Testing:** Read-only review; no builds, tests or project scripts were run. Several CI checks remain in progress. **Overlaps and merge order:** Unknown; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -8174,0 +8209,4 @@
gprof_rebind_upload(r->slot, r->upload);
VkCommandBufferBeginInfo bi{VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO};
bi.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT;
if (vkBeginCommandBuffer(r->upload, &bi) == VK_ERROR_DEVICE_LOST) device_lost();
Member

L1 (blocking): A non-device-lost failure from beginning the fresh upload command buffer is ignored, and the function reports success.

When: If vkBeginCommandBuffer returns an allocation error after a successful asynchronous chunk submit, upload_astc_gpu records barriers and dispatches into a command buffer that did not enter recording state, then submits it.

Do: Check every begin result and propagate failure or terminate through the renderer's fatal error path; do not record or submit the failed command buffer. Add a failure-path test.

**L1** (blocking): A non-device-lost failure from beginning the fresh upload command buffer is ignored, and the function reports success. *When:* If vkBeginCommandBuffer returns an allocation error after a successful asynchronous chunk submit, upload_astc_gpu records barriers and dispatches into a command buffer that did not enter recording state, then submits it. **Do:** Check every begin result and propagate failure or terminate through the renderer's fatal error path; do not record or submit the failed command buffer. Add a failure-path test.
@ -0,0 +232,4 @@
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--cxx", default="clang++")
parser.add_argument("--source", type=Path, default=ROOT)
args = parser.parse_args()
Member

L2 (should fix): The documented standalone test defaults to clang++ even though Linux builds also support GCC.

When: On a Linux development machine with g++ but no clang++, the documented test command fails to start the compiler, even when CXX names the available compiler.

Do: Honor CXX and choose an available supported compiler when no --cxx argument is supplied, as the test runner does.

**L2** (should fix): The documented standalone test defaults to clang++ even though Linux builds also support GCC. *When:* On a Linux development machine with g++ but no clang++, the documented test command fails to start the compiler, even when CXX names the available compiler. **Do:** Honor CXX and choose an available supported compiler when no --cxx argument is supplied, as the test runner does.
fix(vk): abort on upload chunk vkBeginCommandBuffer/pool-reset errors and auto-detect CXX in test
Some checks are pending
beanstalk/approval changed since the request: ask again
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 5s
f4de7b2c13
Check vkBeginCommandBuffer on both async next-CB and pool-reset fallback paths and vkResetCommandPool symmetrically, invoking device_lost() on VK_ERROR_DEVICE_LOST and replay_fatal() on any other failure so replay_flush_upload() never returns true with an unbegun command buffer. Honor CXX and auto-detect clang++/g++/c++ (plus LONGSHOT_MINGW on Windows) in test_async_astc_upload_chunks.py and add fault-injection tests for both paths.

Assisted-by: Antigravity
Author
Contributor

Addressed BeanBot review findings L1 and L2 in commit f4de7b2c133f21504abcc048e763dd116b096be9:

Changes

  1. L1 (gpu/vk/vk_replay.cpp:8212-8217, 8236-8253) — Check vkBeginCommandBuffer and vkResetCommandPool errors:

    • Checked vkBeginCommandBuffer(r->upload, &bi) on both the asynchronous next-command-buffer path and the pool-reset fallback path, plus vkResetCommandPool symmetrically.
    • Any non-VK_SUCCESS result logs the error, calls device_lost() on VK_ERROR_DEVICE_LOST, and aborts via replay_fatal(...) instead of returning true or allowing subsequent recording into an unbegun command buffer.
  2. L2 (tests/test_async_astc_upload_chunks.py:106-153, 233-420) — Compiler auto-detection and failure-path tests:

    • Added detect_cxx() honoring CXX (parsed with compiler_command.parse_compiler so multi-token wrappers like ccache g++ work), LONGSHOT_MINGW/bin/clang++.exe on Windows, and clang++ / g++ / c++ fallback when --cxx is omitted.
    • Added 6 fault-injection tests covering replay_fatal and device_lost across both vkBeginCommandBuffer paths and vkResetCommandPool (compiled with -Wall -Wextra -Werror).

Verification

  • Standalone python -I -B tests/test_async_astc_upload_chunks.py (with --cxx omitted, and also with multi-token CXX): PASS.
  • python -I -B tests/run_all.py --strict test_async_astc_upload_chunks byte_compile_tracked: 2 passed, 0 failed, 0 skipped.
  • python -I scripts/dev.py vk on Windows (llvm-mingw): builds cleanly (longshot_vk.dll).

Remaining Tier 1 Hardware Notes (L3 & L4)

  • L3: Follow-up interleaved Windows zone-entry repeats on the current base remain pending local re-measurement.
  • L4: NVIDIA, threaded recorder in-game runs, and Steam Deck Game Mode picture verification remain for Beanstalk Test Farm / follow-up runs.
Addressed BeanBot review findings **L1** and **L2** in commit `f4de7b2c133f21504abcc048e763dd116b096be9`: ### Changes 1. **L1 (`gpu/vk/vk_replay.cpp:8212-8217, 8236-8253`) — Check `vkBeginCommandBuffer` and `vkResetCommandPool` errors:** - Checked `vkBeginCommandBuffer(r->upload, &bi)` on both the asynchronous next-command-buffer path and the pool-reset fallback path, plus `vkResetCommandPool` symmetrically. - Any non-`VK_SUCCESS` result logs the error, calls `device_lost()` on `VK_ERROR_DEVICE_LOST`, and aborts via `replay_fatal(...)` instead of returning `true` or allowing subsequent recording into an unbegun command buffer. 2. **L2 (`tests/test_async_astc_upload_chunks.py:106-153, 233-420`) — Compiler auto-detection and failure-path tests:** - Added `detect_cxx()` honoring `CXX` (parsed with `compiler_command.parse_compiler` so multi-token wrappers like `ccache g++` work), `LONGSHOT_MINGW/bin/clang++.exe` on Windows, and `clang++` / `g++` / `c++` fallback when `--cxx` is omitted. - Added 6 fault-injection tests covering `replay_fatal` and `device_lost` across both `vkBeginCommandBuffer` paths and `vkResetCommandPool` (compiled with `-Wall -Wextra -Werror`). ### Verification - Standalone `python -I -B tests/test_async_astc_upload_chunks.py` (with `--cxx` omitted, and also with multi-token `CXX`): **PASS**. - `python -I -B tests/run_all.py --strict test_async_astc_upload_chunks byte_compile_tracked`: **2 passed, 0 failed, 0 skipped**. - `python -I scripts/dev.py vk` on Windows (`llvm-mingw`): builds cleanly (`longshot_vk.dll`). ### Remaining Tier 1 Hardware Notes (L3 & L4) - **L3:** Follow-up interleaved Windows zone-entry repeats on the current base remain pending local re-measurement. - **L4:** NVIDIA, threaded recorder in-game runs, and Steam Deck Game Mode picture verification remain for Beanstalk Test Farm / follow-up runs.
Some checks are pending
beanstalk/approval changed since the request: ask again
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 5s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/vk-async-astc-upload-chunks:Jer9-perf/vk-async-astc-upload-chunks'
git switch 'Jer9-perf/vk-async-astc-upload-chunks'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
6 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!2330
No description provided.