Intel Arc A750 measurements: offline shader-gap inventory, 63 draws/frame dropped, frame budget, and storage #3936

Open
opened 2026-12-01 11:48:41 +00:00 by spektra · 0 comments
spektra commented 2026-12-01 11:48:41 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by spektra on 2026-12-01T11:48:41Z.


Follow-up to #3932 (the world-entry 0x80000003 assert, now root-caused and fixed in the DirectStorage write-watch path). These are measurements and reproducible leads from the first long Intel Arc A750 (8 GB) session after that fix, i.e. with the title stable in-world for 30+ minutes. Posting them so the next person does not have to rediscover them.

Environment: Windows 10, Arc A750 8 GB, XeSS ultra-performance (640x360 -> 1080p), RT/BVH off, VICTORY_CARD_BUFFERS_MB=256, VICTORY_UNWATCHED_FRAMES=2, VICTORY_JOIN_COPIES=1, VICTORY_CARD_REHASH_RUNS=1, VICTORY_WIDE_MERGE=1. Everything below is from that one run unless noted.


1. You can reproduce shader-translation gaps offline, without the title (big time saver)

The translate subcommand runs every container in a shader pack through the same translator the game uses, and there are env hooks in apps/victory/src/translate.rs that make a gap analysable in seconds instead of an 8-minute title load:

victory.exe translate --list <path to shaders.rpf>

prints one line per program with the resulting error, including the shader's name — which is usually enough to know what you are missing.

Then, to get the actual bytecode for one family:

VICTORY_DUMP_MATCH='<dir>;PS_PuddleDetect|PS_TexturedDeferred' victory.exe translate --list shaders.rpf

dumps matching containers as <name>.<hash>.cdxil, and

VICTORY_TRANSLATE_ONLY=<hash prefix>   # translate only matching containers
VICTORY_FAIL_DUMP=<dir>                # first 3 containers of each failure reason
VICTORY_DESC_WHY=1                     # for "a descriptor ... read as data": the load, its
                                       # address, and which instruction reads each dword

s_…-only debug output goes to stderr. A single dumped .cdxil can be passed straight back as a path, so the loop is: dump once, then rebuild + translate --list <file> in ~30 s per hypothesis.

One caveat worth knowing: translate uses every logical core by default and will starve a running title (we saw it drop a live game from 8 fps to 0 fps / 3.4 s per frame). Use --jobs if the game is running.

2. Full translation-gap inventory of this title's pack (26,503 containers)

programs 26084 translated of 26084, then by stage-2 failure:

195  resources: an address in an SGPR that is no root parameter   (e.g. GS_VoxelizeGeneric)
 40  emit: a descriptor chosen by control flow                     (PS_TexturedDeferred, PS_TexturedLit_*, PS_MirrorReflectionTexturedDeferred, MST_DS_CascadeShadows_*)
 40  emit: a descriptor read only as data                          (PS_PuddleDetect, 41 variants)
 10  emit: a hardware SGPR input                                   (PS_PedTexturedCutOutTint_Zero, 10 variants)
  2  emit: a lane mask holding lanes elsewhere read as data        (water_shading:CS_TransmissionVolumetrics{,Submerged})
  2  emit: a wave sum of 16-bit floats where not every lane runs   (compute_graph_ops:CS_TransposeVecMatMul*)
  1  emit: a descriptor's address or format read as data           (ShallowWaterSim:CS_MinTimestepReduce)
  1  emit: an opaque lane mask                                     (PS_VoxelizeVisiblity)

Only the six a run actually binds show up as shader does not translate warnings, so the log badly understates the gaps. In our in-world run it was exactly four PS_PuddleDetect_2dd9cfaa variants plus the two CS_TransmissionVolumetrics ones.

3. Those gaps are visible: 63 draws are dropped every world frame

The per-frame line read 920 draws/frame, dropped 63 without a host pipeline for the entire session (occasionally 0 during menus, and 63-127 at scene transitions). 63 is stable, which is the signature of one material rather than a transient.

Diagnosing it needed --features diagnostics; without that feature the per-reason breakdown (dropped N/frame without a host pipeline: <why>) is not logged at all, only the total. Worth enabling by default for anyone chasing missing geometry — the total alone gives you nowhere to go.

Two failure classes are worth calling out because they are not hardware limits like the 20 pipelines in VICTORY_SKIP_PIPELINES:

a descriptor read only as data (PS_PuddleDetect). VICTORY_DESC_WHY=1 on a dumped container shows the load is s_load_dwordx8 on a dynamically indexed table entry, and its destination dwords are consumed only by s_lshr_b32 / s_lshl_b32 / s_bfe_u32 — i.e. the shader inspects descriptor format/swizzle fields numerically. No image or buffer instruction uses that particular load, so descriptor_data finds no used_kind, and the twin heuristic does not fire either (the twin must be another load of the same address; here there are two loads with different dynamic indices). raw_dwords already exists and could serve this if the load could be attributed to a table at all — that attribution is the missing piece.

a hardware SGPR input (PS_PedTexturedCutOutTint_Zero). These want s17, s18 and — interestingly — s126/s127. s126/s127 are ir::EXEC (gfx10 const), read at the very top of the shader (s_mov_b64 then s_wqm_b64), which is the standard pixel-shader lane-mask prologue; inputs() has no case for EXEC (Reg::S(EXEC) is only handled on the phi path), so the prologue is reported as an unknown hardware input. s17/s18 are read as s_mov_b32 at 0x68 and via s_bfe_u32 at 0x2f94/0x2fa4/0x2fbc, i.e. bitfields of a packed system value.

PS_TexturedDeferred (10 variants) fails the other way, a descriptor chosen by control flow, which is a different code path and possibly the more urgent one — it is a core deferred shader, and it would be dropped if the title ever binds those variants.

We have not fixed any of these; the dumps and the offline loop above are the useful part.

4. Frame budget on this hardware (what is actually slow)

Stable in-world, 4K-asset title at 640x360 internal with XeSS:

7.5-12.0 fps, 96-133 ms/frame
  ~44-52 ms  preparing (copies 17-19 ms for ~33 MB, textures 3-4 ms, heap buffers 11-16 ms,
             descriptor sync 19.6 ms for 428k slots / 382 changed heap pages / 25 MB read)
  ~17-18 ms  copying back 1.5 MB   <-- 1.5 MB should not cost 18 ms; this is a per-frame
                                       round-trip stall, not bandwidth
  ~25-58 ms  on the GPU

and, from the same run:

the card's clock per frame: nothing of ours queued ~66-75 ms (the card about 35-54% busy),
  ~65-74 ms of that while the submitting thread was working (the card idle behind us)
the submitting thread stood waiting for the card ~25-66 ms

So the GPU is idle for roughly half of every frame while the CPU assembles the next one: this is CPU-bound frame assembly, not a GPU limit. At 640x360 internal the GPU is not the problem at all.

VRAM at the same time (never crashed):

card_used 6337 / soft 6646 / hard 6646
title 2925 (1756 textures, 1168 targets)
our mirrors 2652 (252 copies + 2400 streamed), view heaps 61, unaccounted 2371
texture queue: 8520 slots, 7251 of them "waiting for their memory"

The texture queue is backed up behind our own mirrors. Note there is no eviction for streamed texture mirrors in umem.rs/texture.rs (checked: no LRU/evict path), so that 2.4 GiB is not reclaimed under pressure even though the queue is 7k deep. That looks like the most promising memory/perf lever left, and it lines up with "characters missing / untextured": in-engine cutscenes are close-ups that need exactly the textures that never land.

5. Storage was probably the dominant hidden cost

The title was running from a 3 TB WD30PURZ surveillance HDD (E:). Measured on that machine:

HDD (E:, WD30PURZ) NVMe (C:, Crucial P3 Plus)
sequential read 127 MB/s ~4 GB/s
30 x random 1 MiB read 54.3 ms each, 19 MB/s 0.4 ms each, 2,845 MB/s

The HDD figure was taken while the title was loading, i.e. contended, which is the honest number. The run showed multi-second frames exactly where streaming bursts would be (0.2-1.8 fps for several seconds, 222-326 draws dropped, 3.4-12.2 s per frame) and a ~8 minute load. If you are testing this on a mechanical drive, measure an SSD before attributing stalls to the emulator.

6. Two smaller notes

  • GlobalMemoryStatusEx is called exactly once per run, after the exception is raised (crash reporter). Shaping it with VICTORY_SYSMEM_MB cannot prevent anything; memory.load_percent: 93 in the breakpad params is diagnostic only. (This falsifies host-memory shaping as a lever for this title.)
  • The 20-pipeline VICTORY_SKIP_PIPELINES list in the Arc launcher (64-bit typed atomics the A750/A580 lack) is a genuine hardware gap, unlike the translation gaps above. Do not confuse the two when reading dropped N.

Happy to turn any of this into a PR; the offline translate loop makes the descriptor and EXEC-input gaps cheap to iterate on for anyone with an Arc (or any card that hits the same translator paths).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6719597652 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3936). Originally posted by [spektra](https://github.com/spektra) on 2026-12-01T11:48:41Z. --- Follow-up to #3932 (the world-entry `0x80000003` assert, now root-caused and fixed in the DirectStorage write-watch path). These are measurements and reproducible leads from the first long Intel Arc A750 (8 GB) session *after* that fix, i.e. with the title stable in-world for 30+ minutes. Posting them so the next person does not have to rediscover them. Environment: Windows 10, Arc A750 8 GB, XeSS ultra-performance (640x360 -> 1080p), RT/BVH off, `VICTORY_CARD_BUFFERS_MB=256`, `VICTORY_UNWATCHED_FRAMES=2`, `VICTORY_JOIN_COPIES=1`, `VICTORY_CARD_REHASH_RUNS=1`, `VICTORY_WIDE_MERGE=1`. Everything below is from that one run unless noted. --- ## 1. You can reproduce shader-translation gaps offline, without the title (big time saver) The `translate` subcommand runs every container in a shader pack through the same translator the game uses, and there are env hooks in `apps/victory/src/translate.rs` that make a gap analysable in seconds instead of an 8-minute title load: ``` victory.exe translate --list <path to shaders.rpf> ``` prints one line per program with the resulting error, including the shader's *name* — which is usually enough to know what you are missing. Then, to get the actual bytecode for one family: ``` VICTORY_DUMP_MATCH='<dir>;PS_PuddleDetect|PS_TexturedDeferred' victory.exe translate --list shaders.rpf ``` dumps matching containers as `<name>.<hash>.cdxil`, and ``` VICTORY_TRANSLATE_ONLY=<hash prefix> # translate only matching containers VICTORY_FAIL_DUMP=<dir> # first 3 containers of each failure reason VICTORY_DESC_WHY=1 # for "a descriptor ... read as data": the load, its # address, and which instruction reads each dword ``` `s_…`-only debug output goes to stderr. A single dumped `.cdxil` can be passed straight back as a path, so the loop is: dump once, then rebuild + `translate --list <file>` in ~30 s per hypothesis. One caveat worth knowing: `translate` uses every logical core by default and will starve a running title (we saw it drop a live game from 8 fps to 0 fps / 3.4 s per frame). Use `--jobs` if the game is running. ## 2. Full translation-gap inventory of this title's pack (26,503 containers) `programs 26084 translated of 26084`, then by stage-2 failure: ``` 195 resources: an address in an SGPR that is no root parameter (e.g. GS_VoxelizeGeneric) 40 emit: a descriptor chosen by control flow (PS_TexturedDeferred, PS_TexturedLit_*, PS_MirrorReflectionTexturedDeferred, MST_DS_CascadeShadows_*) 40 emit: a descriptor read only as data (PS_PuddleDetect, 41 variants) 10 emit: a hardware SGPR input (PS_PedTexturedCutOutTint_Zero, 10 variants) 2 emit: a lane mask holding lanes elsewhere read as data (water_shading:CS_TransmissionVolumetrics{,Submerged}) 2 emit: a wave sum of 16-bit floats where not every lane runs (compute_graph_ops:CS_TransposeVecMatMul*) 1 emit: a descriptor's address or format read as data (ShallowWaterSim:CS_MinTimestepReduce) 1 emit: an opaque lane mask (PS_VoxelizeVisiblity) ``` Only the six a run actually binds show up as `shader does not translate` warnings, so the log badly understates the gaps. In our in-world run it was exactly four `PS_PuddleDetect_2dd9cfaa` variants plus the two `CS_TransmissionVolumetrics` ones. ## 3. Those gaps are visible: 63 draws are dropped every world frame The per-frame line read `920 draws/frame, dropped 63 without a host pipeline` for the entire session (occasionally 0 during menus, and 63-127 at scene transitions). 63 is stable, which is the signature of one material rather than a transient. Diagnosing it needed `--features diagnostics`; without that feature the per-reason breakdown (`dropped N/frame without a host pipeline: <why>`) is not logged at all, only the total. Worth enabling by default for anyone chasing missing geometry — the total alone gives you nowhere to go. Two failure classes are worth calling out because they are *not* hardware limits like the 20 pipelines in `VICTORY_SKIP_PIPELINES`: **`a descriptor read only as data` (PS_PuddleDetect).** `VICTORY_DESC_WHY=1` on a dumped container shows the load is `s_load_dwordx8` on a dynamically indexed table entry, and its destination dwords are consumed only by `s_lshr_b32` / `s_lshl_b32` / `s_bfe_u32` — i.e. the shader inspects descriptor *format/swizzle* fields numerically. No image or buffer instruction uses that particular load, so `descriptor_data` finds no `used_kind`, and the `twin` heuristic does not fire either (the twin must be another load of the same address; here there are two loads with *different* dynamic indices). `raw_dwords` already exists and could serve this if the load could be attributed to a table at all — that attribution is the missing piece. **`a hardware SGPR input` (PS_PedTexturedCutOutTint_Zero).** These want `s17`, `s18` and — interestingly — `s126`/`s127`. `s126`/`s127` are `ir::EXEC` (`gfx10` const), read at the very top of the shader (`s_mov_b64` then `s_wqm_b64`), which is the standard pixel-shader lane-mask prologue; `inputs()` has no case for EXEC (`Reg::S(EXEC)` is only handled on the phi path), so the prologue is reported as an unknown hardware input. `s17`/`s18` are read as `s_mov_b32` at `0x68` and via `s_bfe_u32` at `0x2f94`/`0x2fa4`/`0x2fbc`, i.e. bitfields of a packed system value. `PS_TexturedDeferred` (10 variants) fails the *other* way, `a descriptor chosen by control flow`, which is a different code path and possibly the more urgent one — it is a core deferred shader, and it would be dropped if the title ever binds those variants. We have not fixed any of these; the dumps and the offline loop above are the useful part. ## 4. Frame budget on this hardware (what is actually slow) Stable in-world, 4K-asset title at 640x360 internal with XeSS: ``` 7.5-12.0 fps, 96-133 ms/frame ~44-52 ms preparing (copies 17-19 ms for ~33 MB, textures 3-4 ms, heap buffers 11-16 ms, descriptor sync 19.6 ms for 428k slots / 382 changed heap pages / 25 MB read) ~17-18 ms copying back 1.5 MB <-- 1.5 MB should not cost 18 ms; this is a per-frame round-trip stall, not bandwidth ~25-58 ms on the GPU ``` and, from the same run: ``` the card's clock per frame: nothing of ours queued ~66-75 ms (the card about 35-54% busy), ~65-74 ms of that while the submitting thread was working (the card idle behind us) the submitting thread stood waiting for the card ~25-66 ms ``` So the GPU is idle for roughly half of every frame while the CPU assembles the next one: this is CPU-bound frame assembly, not a GPU limit. At 640x360 internal the GPU is not the problem at all. VRAM at the same time (never crashed): ``` card_used 6337 / soft 6646 / hard 6646 title 2925 (1756 textures, 1168 targets) our mirrors 2652 (252 copies + 2400 streamed), view heaps 61, unaccounted 2371 texture queue: 8520 slots, 7251 of them "waiting for their memory" ``` The texture queue is backed up behind our own mirrors. Note there is no eviction for streamed texture mirrors in `umem.rs`/`texture.rs` (checked: no LRU/evict path), so that 2.4 GiB is not reclaimed under pressure even though the queue is 7k deep. That looks like the most promising memory/perf lever left, and it lines up with "characters missing / untextured": in-engine cutscenes are close-ups that need exactly the textures that never land. ## 5. Storage was probably the dominant hidden cost The title was running from a **3 TB WD30PURZ surveillance HDD** (E:). Measured on that machine: | | HDD (E:, WD30PURZ) | NVMe (C:, Crucial P3 Plus) | |---|---|---| | sequential read | 127 MB/s | ~4 GB/s | | 30 x random 1 MiB read | **54.3 ms each, 19 MB/s** | **0.4 ms each, 2,845 MB/s** | The HDD figure was taken while the title was loading, i.e. contended, which is the honest number. The run showed multi-second frames exactly where streaming bursts would be (0.2-1.8 fps for several seconds, 222-326 draws dropped, 3.4-12.2 s per frame) and a ~8 minute load. If you are testing this on a mechanical drive, measure an SSD before attributing stalls to the emulator. ## 6. Two smaller notes - `GlobalMemoryStatusEx` is called exactly once per run, *after* the exception is raised (crash reporter). Shaping it with `VICTORY_SYSMEM_MB` cannot prevent anything; `memory.load_percent: 93` in the breakpad params is diagnostic only. (This falsifies host-memory shaping as a lever for this title.) - The 20-pipeline `VICTORY_SKIP_PIPELINES` list in the Arc launcher (64-bit typed atomics the A750/A580 lack) is a genuine hardware gap, unlike the translation gaps above. Do not confuse the two when reading `dropped N`. Happy to turn any of this into a PR; the offline `translate` loop makes the descriptor and EXEC-input gaps cheap to iterate on for anyone with an Arc (or any card that hits the same translator paths).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory#3936
No description provided.