[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
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound#609
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Evcalist on GitHub · 2026-12-04 20:35 UTC · original
[Performance / AMD] Single-thread
ASYNC_SUBMITbottleneck, bindless texture slot thrashing on camera rotation, and FSR 3 FG format mismatch on Foxhound 0.8.3.5Environment & Hardware
0.8.3.5/ Runtimefoxhound 0.8.3 (0145c0d8671c), Release build7952987A(game_scarlett_master.exe),console=series-s,profile_blake3=7776a2ec5662b543(bcpack=ok,93,617pipelines pre-warmed)11474 MBDXGI budget)3.1.6provider),1920x1080Fullscreen,FSR 3.1 Quality(0.6667,1280x720internal),AMD FSR 3Frame Generation (2x),rt=off,ambient=0.8,water=light,priority=high32661 MBvisible, XMP enabled) + 16–32 GB SSD pagefile (49045 MBcommit limit,+16384 MBgrowth headroom), WindowsSummary
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 msmedian 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_SUBMITCPU Bottleneck (~57–75 ms/frame)In
log=fullruns (foxhound-20261204-205038.log,foxhound-20261204-200454.log):VICTORY_ASYNC_SUBMIT: The single submitting thread spends57–59.1 ms/frame(and up to75.8 ms/framein denser scenes), capping base frame rate at ~13–16 FPS (median_of_medians=63.2–65.5 ms).preparing per frame, the submitting thread:13.1–15.1 msasking the write-watch (~235 calls/frame,~306k–340k pages walked,~1,918–2,041 pages reset)26.7–29.0 msin lists' steps (~18–22 msinrefreshes,7,153–10,459refreshes across41–54flushes where6,086–9,377are known to copy nothing;735–1,039buffer copy refreshes inspecting3.2–3.7 GB/framefor~59–93 MBcopied)VICTORY_THIN: Translating~40,486–43,227list calls/frame across8threads takes215–379 mstotal CPU time (~27–47 msper thread).the card's clock per frame): RX 6700 XT is only ~67–75% busy (nothing of ours queued 16.9–25.8 ms, of which16.5–21.5 msis spent idle while the submitting thread is working). Lowering internal render scale belowQualitydoes 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 waita texture already on the card is brought up to date although the card has no room for new onesreachedso_far=65000in a ~2-minute run (205038) andso_far=376500in a ~14-minute run (200454), with154textures 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 againlogged803times (changed=803) in a ~23-minutelog=warnsession (222937).victory_gpu::pool:66–71blocks of64 MB(~4.2–4.5 GB) hold2.68–3.53 GBof textures with889–1,442 MBfree inside fragmented blocks, yetVICTORY_ROOM_REALhitsin_use_mb=10319vsbudget_mb=10534and refuses new allocations.Quality(0.6667, e.g., Balanced0.58/ Performance0.50) causes frequent black/missing textures on character clothes, faces, and world surfaces.3. Host Commit / Memory Pressure (
victory_gpu::residency)Even with
32661 MBphysical RAM and49045 MBcommit limit (+16384 MBpagefile growth headroom):buffer_mirror_span_mibgrows to1905–1944 MiBalongsidegame_filled_gpu_texture_mib=3032–3276 MiB.victory_gpu::residency: host memory pressure: limiting texture prefetch and idle upload storagestill triggers oncephysical_free_mibdips 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)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 full1920x1080rect).~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_GUARDtripped mid-run (piece=0x2f2b0000..0x2f2c0000 declared=0x2f2b0000..0x3a0b0000), disabling RO-skip for the remainder of the session.victory_gpu::pipeline::make::frame_total: occasionalsecs=5pipeline wait spikes even with93,617pipelines pre-warmed.Workarounds Tested (
VICTORY_*Switches)Helpful (measurable improvements):
WAIT_RESIDENT=0: Eliminated28,000synchronousMakeResidentstalls (21,308.7 mstotal, single spikes up to734.5 msin baseline171440-> 0 after) and cut world-entry freeze from6,096.9 msto2,439–3,213 ms.CARD_BUFFERS_MIN_MB=1: Raisedcard_buffers_max_mbfrom1to1973, eliminating CPU-sideshader writes looked foron ≥ 1 MiB buffer copies (2.7 MB/frame->0 MBin202316).POOL_PACK=1: Reduced under-utilized (<25%) texture blocks from11to7–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 msqueue lock waits and26–72 msviews lock waits per 5s on other threads) and regressedTHINfrom215 msto292–379 ms.THIN_THREADS=6(on 6C/12T): RegressedTHINfrom215 ms(at default8) to280 ms.Suggestions / Questions for Maintainers
ASYNC_SUBMITOverhead: SinceASYNC_SUBMITspends~13–15 mson write-watch queries and~18–22 msflushing7k–10krefreshes (where ~85–90% copy nothing) on a single thread, could write-watch polling / no-op refresh filtering be sharded or skipped earlier beforeASYNC_SUBMIT?POOL_PACK=1and~1.4 GBfree inside texture blocks,ROOM_REALhits budget and triggers65,000+"card has no room"checks and PC-RAM spills on camera rotation. Smarter eviction/compaction of unused64 MBpool blocks or keepingROOM_REALaware of fragmented free space could significantly reduce camera-pan stutters.fg_rectFormats: Supportingdepth_format=19andmotion_format=34invictory_gpu::streamline::fg_rect(if applicable to this title) would avoid the fallback warning.foxhound-20261204-205038.log
@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 andframe timeslines. 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=1withVICTORY_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.