[Performance / AMD] Single-thread ASYNC_SUBMIT bottleneck, bindless texture slot thrashing on camera rotation, and FSR 3 FG format mismatch on Foxhound 0.8.3.5 #609

Open
opened 2026-12-04 20:37:42 +00:00 by github-bot · 1 comment
Owner

@⁠Evcalist on GitHub · 2026-12-04 20:35 UTC · original

[Performance / AMD] Single-thread ASYNC_SUBMIT bottleneck, bindless texture slot thrashing on camera rotation, and FSR 3 FG format mismatch on Foxhound 0.8.3.5

Environment & Hardware

  • Foxhound Build: Launcher 0.8.3.5 / Runtime foxhound 0.8.3 (0145c0d8671c), Release build
  • Title & Profile: 7952987A (game_scarlett_master.exe), console=series-s, profile_blake3=7776a2ec5662b543 (bcpack=ok, 93,617 pipelines pre-warmed)
  • CPU: AMD Ryzen 5 5600G (6C/12T, Zen 3, 16 MB L3 cache, PCIe 3.0, iGPU disabled in BIOS)
  • GPU: PowerColor AMD Radeon RX 6700 XT 12 GB (RDNA 2, 11474 MB DXGI budget)
  • Upscaling / FG: FidelityFX SDK 2.4.0 (3.1.6 provider), 1920x1080 Fullscreen, FSR 3.1 Quality (0.6667, 1280x720 internal), AMD FSR 3 Frame Generation (2x), rt=off, ambient=0.8, water=light, priority=high
  • RAM / OS: 32 GB DDR4 (32661 MB visible, XMP enabled) + 16–32 GB SSD pagefile (49045 MB commit limit, +16384 MB growth headroom), Windows

Summary

On a 6C/12T Ryzen 5 5600G + RX 6700 XT 12 GB running the Series S profile at 1080p (FSR 3.1 Quality), gameplay is heavily CPU-bound at ~15–16 base FPS (~62–65 ms median frame time) while the GPU sits ~27% idle, and camera rotation triggers persistent micro-stutters and frame-pacing hitches even after pre-compiling 93k pipelines and freeing all 32 GB of system RAM.


Key Findings & Metrics from Logs

1. Single-Thread ASYNC_SUBMIT CPU Bottleneck (~57–75 ms/frame)

In log=full runs (foxhound-20261204-205038.log, foxhound-20261204-200454.log):

  • VICTORY_ASYNC_SUBMIT: The single submitting thread spends 57–59.1 ms/frame (and up to 75.8 ms/frame in denser scenes), capping base frame rate at ~13–16 FPS (median_of_medians=63.2–65.5 ms).
    • Breakdown of preparing per frame, the submitting thread:
      • 13.1–15.1 ms asking the write-watch (~235 calls/frame, ~306k–340k pages walked, ~1,918–2,041 pages reset)
      • 26.7–29.0 ms in lists' steps (~18–22 ms in refreshes, 7,153–10,459 refreshes across 41–54 flushes where 6,086–9,377 are known to copy nothing; 735–1,039 buffer copy refreshes inspecting 3.2–3.7 GB/frame for ~59–93 MB copied)
  • VICTORY_THIN: Translating ~40,486–43,227 list calls/frame across 8 threads takes 215–379 ms total CPU time (~27–47 ms per thread).
  • GPU Utilization (the card's clock per frame): RX 6700 XT is only ~67–75% busy (nothing of ours queued 16.9–25.8 ms, of which 16.5–21.5 ms is spent idle while the submitting thread is working). Lowering internal render scale below Quality does not improve base FPS because the GPU is waiting on CPU submission.

2. Bindless Texture Slot Contention & Camera-Pan Stutters

During camera rotation, new textures entering view trigger heavy slot/pool contention:

  • victory_gpu::draw: textures picked by index: the card has no room for more; they wait
  • a texture already on the card is brought up to date although the card has no room for new ones reached so_far=65000 in a ~2-minute run (205038) and so_far=376500 in a ~14-minute run (200454), with 154 textures spilled to PC RAM (textures in the PC).
  • victory_gpu::draw: a texture picked by index changed after its upload with nothing to tell of it: uploaded again logged 803 times (changed=803) in a ~23-minute log=warn session (222937).
  • victory_gpu::pool: 66–71 blocks of 64 MB (~4.2–4.5 GB) hold 2.68–3.53 GB of textures with 889–1,442 MB free inside fragmented blocks, yet VICTORY_ROOM_REAL hits in_use_mb=10319 vs budget_mb=10534 and refuses new allocations.
  • Visual regression note: Lowering FSR scale below Quality (0.6667, e.g., Balanced 0.58 / Performance 0.50) causes frequent black/missing textures on character clothes, faces, and world surfaces.

3. Host Commit / Memory Pressure (victory_gpu::residency)

Even with 32661 MB physical RAM and 49045 MB commit limit (+16384 MB pagefile growth headroom):

  • buffer_mirror_span_mib grows to 1905–1944 MiB alongside game_filled_gpu_texture_mib=3032–3276 MiB.
  • victory_gpu::residency: host memory pressure: limiting texture prefetch and idle upload storage still triggers once physical_free_mib dips near ~2953–3058 MiB (available_commit_mib=20136, under_commit_limit_mib=3752), throttling texture prefetch right when camera movement demands it.

4. FSR 3.1 Frame Generation Format Mismatch (victory_gpu::streamline::fg_rect)

  • On FG initialization: WARN victory_gpu::streamline::fg_rect: FSR 3 frame generation: the generation rectangle cannot be looked for in these formats depth_format=19 motion_format=34 (falls back to full 1920x1080 rect).
  • Additionally, when base frame time sits at ~62–75 ms (< 20 FPS) during movement, keeping FSR 3 FG active produces noticeable frame-pacing judder.

5. Unimplemented / Fallback Warnings Observed

  • victory_gpu::device: unimplemented pipeline creation methods (slot=0x218, slot=0x1c8)
  • victory_gpu::queue: unimplemented queue suspend (slot=0xb8)
  • victory_gpu::host: VICTORY_GPU_RO_GUARD tripped mid-run (piece=0x2f2b0000..0x2f2c0000 declared=0x2f2b0000..0x3a0b0000), disabling RO-skip for the remainder of the session.
  • victory_gpu::pipeline::make::frame_total: occasional secs=5 pipeline wait spikes even with 93,617 pipelines pre-warmed.

Workarounds Tested (VICTORY_* Switches)

Helpful (measurable improvements):

  • WAIT_RESIDENT=0: Eliminated 28,000 synchronous MakeResident stalls (21,308.7 ms total, single spikes up to 734.5 ms in baseline 171440 -> 0 after) and cut world-entry freeze from 6,096.9 ms to 2,439–3,213 ms.
  • CARD_BUFFERS_MIN_MB=1: Raised card_buffers_max_mb from 1 to 1973, eliminating CPU-side shader writes looked for on ≥ 1 MiB buffer copies (2.7 MB/frame -> 0 MB in 202316).
  • POOL_PACK=1: Reduced under-utilized (<25%) texture blocks from 11 to 7–8.
  • WINDOW_KB=1024, WINDOW_TAILS=1, LOOSE_READ=1, STREAM_BOUND=1 (pc_memory=save) + COMMIT_GROWTH=1: Relieved host memory pressure and reduced window-table write-lock contention.
  • TEXTURE_STAGE_MS=6, TEXSPK_PASS_MS=4, FRAMEGEN_RESERVE_MB=256: Slightly smoothed texture-staging spikes during camera turns (~1–2% smoother feel).

Regressions (reverted):

  • HEAP_TEXTURES_ASIDE=1: Caused severe lock contention (81–96 ms queue lock waits and 26–72 ms views lock waits per 5s on other threads) and regressed THIN from 215 ms to 292–379 ms.
  • THIN_THREADS=6 (on 6C/12T): Regressed THIN from 215 ms (at default 8) to 280 ms.

Suggestions / Questions for Maintainers

  1. Parallelizing or Reducing ASYNC_SUBMIT Overhead: Since ASYNC_SUBMIT spends ~13–15 ms on write-watch queries and ~18–22 ms flushing 7k–10k refreshes (where ~85–90% copy nothing) on a single thread, could write-watch polling / no-op refresh filtering be sharded or skipped earlier before ASYNC_SUBMIT?
  2. Indexed Texture Residency & Pool Compaction on 12 GB RDNA 2: Even with POOL_PACK=1 and ~1.4 GB free inside texture blocks, ROOM_REAL hits budget and triggers 65,000+ "card has no room" checks and PC-RAM spills on camera rotation. Smarter eviction/compaction of unused 64 MB pool blocks or keeping ROOM_REAL aware of fragmented free space could significantly reduce camera-pan stutters.
  3. FSR 3 FG fg_rect Formats: Supporting depth_format=19 and motion_format=34 in victory_gpu::streamline::fg_rect (if applicable to this title) would avoid the fallback warning.

foxhound-20261204-205038.log

**@⁠Evcalist** on GitHub · 2026-12-04 20:35 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/609) # [Performance / AMD] Single-thread `ASYNC_SUBMIT` bottleneck, bindless texture slot thrashing on camera rotation, and FSR 3 FG format mismatch on Foxhound 0.8.3.5 ## Environment & Hardware - **Foxhound Build:** Launcher `0.8.3.5` / Runtime `foxhound 0.8.3 (0145c0d8671c)`, Release build - **Title & Profile:** `7952987A` (`game_scarlett_master.exe`), `console=series-s`, `profile_blake3=7776a2ec5662b543` (`bcpack=ok`, `93,617` pipelines pre-warmed) - **CPU:** AMD Ryzen 5 5600G (6C/12T, Zen 3, 16 MB L3 cache, PCIe 3.0, iGPU disabled in BIOS) - **GPU:** PowerColor AMD Radeon RX 6700 XT 12 GB (RDNA 2, `11474 MB` DXGI budget) - **Upscaling / FG:** FidelityFX SDK 2.4.0 (`3.1.6` provider), `1920x1080` Fullscreen, `FSR 3.1 Quality` (`0.6667`, `1280x720` internal), `AMD FSR 3` Frame Generation (2x), `rt=off`, `ambient=0.8`, `water=light`, `priority=high` - **RAM / OS:** 32 GB DDR4 (`32661 MB` visible, XMP enabled) + 16–32 GB SSD pagefile (`49045 MB` commit limit, `+16384 MB` growth headroom), Windows --- ## Summary On a 6C/12T Ryzen 5 5600G + RX 6700 XT 12 GB running the Series S profile at 1080p (`FSR 3.1 Quality`), gameplay is heavily CPU-bound at **~15–16 base FPS (`~62–65 ms` median frame time)** while the GPU sits ~27% idle, and **camera rotation triggers persistent micro-stutters and frame-pacing hitches** even after pre-compiling 93k pipelines and freeing all 32 GB of system RAM. --- ## Key Findings & Metrics from Logs ### 1. Single-Thread `ASYNC_SUBMIT` CPU Bottleneck (~57–75 ms/frame) In `log=full` runs (`foxhound-20261204-205038.log`, `foxhound-20261204-200454.log`): - **`VICTORY_ASYNC_SUBMIT`:** The single submitting thread spends **`57–59.1 ms/frame`** (and up to **`75.8 ms/frame`** in denser scenes), capping base frame rate at **~13–16 FPS** (`median_of_medians=63.2–65.5 ms`). - Breakdown of `preparing per frame, the submitting thread`: - `13.1–15.1 ms` asking the write-watch (`~235 calls/frame`, `~306k–340k pages walked`, `~1,918–2,041 pages reset`) - `26.7–29.0 ms` in lists' steps (`~18–22 ms` in `refreshes`, `7,153–10,459` refreshes across `41–54` flushes where `6,086–9,377` are known to copy nothing; `735–1,039` buffer copy refreshes inspecting `3.2–3.7 GB/frame` for `~59–93 MB` copied) - **`VICTORY_THIN`:** Translating `~40,486–43,227` list calls/frame across `8` threads takes `215–379 ms` total CPU time (`~27–47 ms` per thread). - **GPU Utilization (`the card's clock per frame`):** RX 6700 XT is only **~67–75% busy** (`nothing of ours queued 16.9–25.8 ms`, of which `16.5–21.5 ms` is spent idle while the submitting thread is working). Lowering internal render scale below `Quality` does not improve base FPS because the GPU is waiting on CPU submission. ### 2. Bindless Texture Slot Contention & Camera-Pan Stutters During camera rotation, new textures entering view trigger heavy slot/pool contention: - `victory_gpu::draw: textures picked by index: the card has no room for more; they wait` - `a texture already on the card is brought up to date although the card has no room for new ones` reached **`so_far=65000`** in a ~2-minute run (`205038`) and **`so_far=376500`** in a ~14-minute run (`200454`), with `154` textures spilled to PC RAM (`textures in the PC`). - `victory_gpu::draw: a texture picked by index changed after its upload with nothing to tell of it: uploaded again` logged **`803` times** (`changed=803`) in a ~23-minute `log=warn` session (`222937`). - `victory_gpu::pool`: `66–71` blocks of `64 MB` (`~4.2–4.5 GB`) hold `2.68–3.53 GB` of textures with **`889–1,442 MB` free inside fragmented blocks**, yet `VICTORY_ROOM_REAL` hits `in_use_mb=10319` vs `budget_mb=10534` and refuses new allocations. - **Visual regression note:** Lowering FSR scale below `Quality` (`0.6667`, e.g., Balanced `0.58` / Performance `0.50`) causes frequent black/missing textures on character clothes, faces, and world surfaces. ### 3. Host Commit / Memory Pressure (`victory_gpu::residency`) Even with `32661 MB` physical RAM and `49045 MB` commit limit (`+16384 MB` pagefile growth headroom): - `buffer_mirror_span_mib` grows to **`1905–1944 MiB`** alongside `game_filled_gpu_texture_mib=3032–3276 MiB`. - `victory_gpu::residency: host memory pressure: limiting texture prefetch and idle upload storage` still triggers once `physical_free_mib` dips near **`~2953–3058 MiB`** (`available_commit_mib=20136`, `under_commit_limit_mib=3752`), throttling texture prefetch right when camera movement demands it. ### 4. FSR 3.1 Frame Generation Format Mismatch (`victory_gpu::streamline::fg_rect`) - On FG initialization: `WARN victory_gpu::streamline::fg_rect: FSR 3 frame generation: the generation rectangle cannot be looked for in these formats depth_format=19 motion_format=34` (falls back to full `1920x1080` rect). - Additionally, when base frame time sits at `~62–75 ms` (`< 20 FPS`) during movement, keeping FSR 3 FG active produces noticeable frame-pacing judder. ### 5. Unimplemented / Fallback Warnings Observed - `victory_gpu::device`: unimplemented pipeline creation methods (`slot=0x218`, `slot=0x1c8`) - `victory_gpu::queue`: unimplemented queue suspend (`slot=0xb8`) - `victory_gpu::host`: `VICTORY_GPU_RO_GUARD` tripped mid-run (`piece=0x2f2b0000..0x2f2c0000 declared=0x2f2b0000..0x3a0b0000`), disabling RO-skip for the remainder of the session. - `victory_gpu::pipeline::make::frame_total`: occasional `secs=5` pipeline wait spikes even with `93,617` pipelines pre-warmed. --- ## Workarounds Tested (`VICTORY_*` Switches) **Helpful (measurable improvements):** - `WAIT_RESIDENT=0`: Eliminated **`28,000`** synchronous `MakeResident` stalls (`21,308.7 ms` total, single spikes up to `734.5 ms` in baseline `171440` -> **0** after) and cut world-entry freeze from `6,096.9 ms` to `2,439–3,213 ms`. - `CARD_BUFFERS_MIN_MB=1`: Raised `card_buffers_max_mb` from `1` to `1973`, eliminating CPU-side `shader writes looked for` on ≥ 1 MiB buffer copies (`2.7 MB/frame` -> `0 MB` in `202316`). - `POOL_PACK=1`: Reduced under-utilized (`<25%`) texture blocks from `11` to `7–8`. - `WINDOW_KB=1024`, `WINDOW_TAILS=1`, `LOOSE_READ=1`, `STREAM_BOUND=1` (`pc_memory=save`) + `COMMIT_GROWTH=1`: Relieved host memory pressure and reduced window-table write-lock contention. - `TEXTURE_STAGE_MS=6`, `TEXSPK_PASS_MS=4`, `FRAMEGEN_RESERVE_MB=256`: Slightly smoothed texture-staging spikes during camera turns (~1–2% smoother feel). **Regressions (reverted):** - `HEAP_TEXTURES_ASIDE=1`: Caused severe lock contention (`81–96 ms` queue lock waits and `26–72 ms` views lock waits per 5s on other threads) and regressed `THIN` from `215 ms` to `292–379 ms`. - `THIN_THREADS=6` (on 6C/12T): Regressed `THIN` from `215 ms` (at default `8`) to `280 ms`. --- ## Suggestions / Questions for Maintainers 1. **Parallelizing or Reducing `ASYNC_SUBMIT` Overhead:** Since `ASYNC_SUBMIT` spends `~13–15 ms` on write-watch queries and `~18–22 ms` flushing `7k–10k` refreshes (where ~85–90% copy nothing) on a single thread, could write-watch polling / no-op refresh filtering be sharded or skipped earlier before `ASYNC_SUBMIT`? 2. **Indexed Texture Residency & Pool Compaction on 12 GB RDNA 2:** Even with `POOL_PACK=1` and `~1.4 GB` free inside texture blocks, `ROOM_REAL` hits budget and triggers `65,000+` `"card has no room"` checks and PC-RAM spills on camera rotation. Smarter eviction/compaction of unused `64 MB` pool blocks or keeping `ROOM_REAL` aware of fragmented free space could significantly reduce camera-pan stutters. 3. **FSR 3 FG `fg_rect` Formats:** Supporting `depth_format=19` and `motion_format=34` in `victory_gpu::streamline::fg_rect` (if applicable to this title) would avoid the fallback warning. [foxhound-20261204-205038.log](https://github.com/user-attachments/files/35891179/foxhound-20261204-205038.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 20:37:42 +00:00
Author
Owner

@⁠BrenoMazini on GitHub · 2026-12-04 21:00 UTC · original

Same title here, with the same bottleneck on the submitting thread. Below are switches that exist in 0.8.3.5 (all off by default) and what each one changed on our side. Different hardware (8C/16T Zen 3, NVIDIA card, Series X profile), so none of this says what they would do on yours.

How these were measured: A/B series at one fixed spot (standing still, then rotating the camera), 4 to 8 runs per switch in A B B A order, comparing the preparing per frame, the submitting thread, write-fault and frame times lines. The first list only has what held in every run.

On the default path (no port):

  • VICTORY_GUARD_PAGES=1: write faults open and copy single 4 KiB pages instead of whole 64 KiB blocks. Here: more frames per second while rotating in every run.
  • VICTORY_GUARD_PAGES_MOST=4 (with the one above): a block is opened whole after 4 pages instead of 8. Here: single-page faults roughly halved and the submitting thread's preparing time 3-4 ms lower per frame in all 8 runs; frame rate within run-to-run noise.
  • VICTORY_ASK_PRIORITY=2: the thread that asks the write watch runs at the highest priority. Here: asking ~1.7 ms lower per frame in all 8 runs, and fewer long frames while rotating. That thread then sits above the title's own threads.
  • VICTORY_COPY_BESIDE=1: the title's memcpy/memmove/memset write guarded blocks through a view of ours instead of faulting and opening them. Here: time in the write-fault handler (summed over the title's threads) 20-27 % lower in all 8 runs, the longest single fault ~17 -> ~13 ms, frame rate unchanged, nothing looked wrong.

Not measured here:

  • VICTORY_PIPELINE_WAIT_MS=5: caps how long a frame waits for new host pipelines (500 ms by default); past it, a draw whose pipeline isn't ready is left out of that frame. At our test spot no pipeline was being made, so there was nothing to compare.
  • VICTORY_PORT_CONSTANTS=1 with VICTORY_HOME=1: the largest cut of the submitting thread's refresh and copy work here, but home needs per-title program data from the profile, and the port on its own was never measured.
  • VICTORY_THIN_THREADS=6: the 6-thread result we have is from 8C/16T only.

One switch at a time against the current setup is the only way to tell which one did what.

**@⁠BrenoMazini** on GitHub · 2026-12-04 21:00 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/609#issuecomment-7424100827) Same title here, with the same bottleneck on the submitting thread. Below are switches that exist in 0.8.3.5 (all off by default) and what each one changed on our side. Different hardware (8C/16T Zen 3, NVIDIA card, Series X profile), so none of this says what they would do on yours. How these were measured: A/B series at one fixed spot (standing still, then rotating the camera), 4 to 8 runs per switch in A B B A order, comparing the `preparing per frame, the submitting thread`, write-fault and `frame times` lines. The first list only has what held in every run. **On the default path (no port):** - `VICTORY_GUARD_PAGES=1`: write faults open and copy single 4 KiB pages instead of whole 64 KiB blocks. Here: more frames per second while rotating in every run. - `VICTORY_GUARD_PAGES_MOST=4` (with the one above): a block is opened whole after 4 pages instead of 8. Here: single-page faults roughly halved and the submitting thread's preparing time 3-4 ms lower per frame in all 8 runs; frame rate within run-to-run noise. - `VICTORY_ASK_PRIORITY=2`: the thread that asks the write watch runs at the highest priority. Here: asking ~1.7 ms lower per frame in all 8 runs, and fewer long frames while rotating. That thread then sits above the title's own threads. - `VICTORY_COPY_BESIDE=1`: the title's memcpy/memmove/memset write guarded blocks through a view of ours instead of faulting and opening them. Here: time in the write-fault handler (summed over the title's threads) 20-27 % lower in all 8 runs, the longest single fault ~17 -> ~13 ms, frame rate unchanged, nothing looked wrong. **Not measured here:** - `VICTORY_PIPELINE_WAIT_MS=5`: caps how long a frame waits for new host pipelines (500 ms by default); past it, a draw whose pipeline isn't ready is left out of that frame. At our test spot no pipeline was being made, so there was nothing to compare. - `VICTORY_PORT_CONSTANTS=1` with `VICTORY_HOME=1`: the largest cut of the submitting thread's refresh and copy work here, but home needs per-title program data from the profile, and the port on its own was never measured. - `VICTORY_THIN_THREADS=6`: the 6-thread result we have is from 8C/16T only. One switch at a time against the current setup is the only way to tell which one did what.
This discussion has been locked. Commenting is limited to contributors.
No description provided.