Findings from two NVIDIA test machines: loop limit and hair, Series S black (FSR4 upscaler), texture VRAM budget, submission waits #1

Open
opened 2026-11-26 03:40:19 +00:00 by github-bot · 4 comments
Owner

@⁠HenriqueSBueno on GitHub · 2026-11-25 00:52 UTC · original

Hi! We've been testing the same title on NVIDIA cards (RTX 3080 10 GB + i5-10400F, and RTX 4060 8 GB + 16 GB RAM) on top of fxceless/victory-fork, and wrote up what we found today. Some of it may save you time, since your tree syncs from that fork. No game data below; numbers and log strings only.

Full reports: fxceless/victory-fork#176 (hardware report and follow-ups) and Marvisak/VIctory#1317 (a research dossier with ranked hypotheses).

1. Settings that matter (no code)

  • VICTORY_SHADER_LOOP_LIMIT of 4096 or more. At 256 the main character's hair renders as long streaks; at 4096 it renders correctly. It stayed stable for 8+ minutes on the 3080 (no device loss). Below a few thousand, the hair shading loops are cut short.
  • Our best config so far (Series X profile, fork 4e17478): VICTORY_DISPLAY_MODE=1920x1080 VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_SHADER_LOOP_LIMIT=4096. Result: lit prologue, correct hair, pad movement, 3.2 fps (308 ms/frame), no device loss.
  • Menu input: Enter every 4 frames from frame 55 to 220 (about 42 presses) gets through the menus on both profiles. A sparse time-based schedule (three presses) leaves the Series S profile stuck on the front end (14 draws/frame forever).

2. Series S profile: why it is black

  • On Series S the title goes through its FSR4 upscaler; on Series X it does not. The Series S log has FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 … falling back to NewBE, and a host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll" (victory-hle/src/modules/kernel.rs). The DLL is loaded on demand and is not one of the prepared title images, so the load fails.
  • A target dump shows the 1280×720 G-buffer written, but no lighting/HDR targets and no final output. Four compute pipelines are refused every frame. GPU time is only ~25 ms, so the frame is missing its final passes; it is not under load.
  • With VICTORY_DISPLAY_MODE=1280x720 the title still takes the FSR4 path.
  • The fix in progress upstream is Marvisak/VIctory#1284 (PC FSR; "Series S selects FSR by default") or #1704 (the same calls answered by DLSS through Streamline, a good fit for NVIDIA). Series S ran at ~4–5 fps here against ~1.5 on Series X on the same build, so it is worth having.
  • Caution: fxceless/victory-fork#32 (R9G9B9E5 → RGBA16F) fixes the Series S device removal but blacks out the Series X picture on our 3080. Removing it brought the picture back (details on that PR).

3. Textures (helps 8–12 GB cards most)

  • Character face black / hair pale in most launches: fixed in fxceless a803c87, which you already synced. Textures picked by index were uploaded once, before the title had written them, and kept zeros.
  • VRAM budget: resource::room() stops making host copies at 90 % of the card budget. On the 10 GB card about a third of the indexed textures were never uploaded (10,441 waiting against 21,050 uploaded). VICTORY_TEXTURE_BUDGET_MB=8000 cut that to 2,614 waiting and the scene gained a lot of detail, but showed blocky tiles where textures had been uploaded while only partly mapped. Evicting idle host copies (LRU) would fit the textures in use instead of everything ever uploaded. Your 16 GB card is less affected.

4. Performance notes

  • Submitting one list at a time with a fence wait (your anti-TDR change) is the opposite of what VICTORY_LATE_WAIT/VICTORY_RELAY do: those remove the per-submission wait to overlap CPU and GPU, and gave the largest gain in our runs. It may be worth measuring both on your 5060 Ti, since serialising could cancel the relay gain.
  • On our 6-core CPU the frame is bound by title-memory traffic: copy-back 242 ms vs 69 ms GPU. Larger card buffers or VICTORY_INPLACE=1 only moved the time around, from copies to GPU (2.8–3.5 fps either way).
  • Under Wine/Proton, the copy paths' ReadProcessMemory/WriteProcessMemory go through wineserver for every piece, which explains ~107 MB/s copy rates (fxceless/victory-fork#118).
  • Occlusion queries always answer "visible" (list.rs, 1 << 20), so the title's own culling never removes anything. That cost is per dispatch, not per pixel (fxceless/victory-fork#10).

5. Diagnostics you may find handy

Two switches we wrote for our own branch (code on HenriqueSBueno/VIctory, branch test/queue-waits-translator):

  • VICTORY_LOOP_LIMIT_SHADERS=ps:1024,ms:1024,vs:1024 (or <hash>:<n>): loop caps per stage or per shader, so graphics loops can be capped without touching compute. Low caps on compute plus a cold shader cache trip the title's own watchdog during loading.
  • VICTORY_DUMP_SHADERS=<dir>;<hash>,…: writes the named shader containers for victory shader-info --disasm. That is how we found a lighting pixel shader whose outer loop exits on an equality with a bound read from a buffer. A producer that never ran turns it into a GPU hang.

Happy to run your builds on the two NVIDIA machines and report back if that helps.

AI-assisted (Claude Code)

**@⁠HenriqueSBueno** on GitHub · 2026-11-25 00:52 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/1) Hi! We've been testing the same title on NVIDIA cards (RTX 3080 10 GB + i5-10400F, and RTX 4060 8 GB + 16 GB RAM) on top of `fxceless/victory-fork`, and wrote up what we found today. Some of it may save you time, since your tree syncs from that fork. No game data below; numbers and log strings only. Full reports: fxceless/victory-fork#176 (hardware report and follow-ups) and Marvisak/VIctory#1317 (a research dossier with ranked hypotheses). ## 1. Settings that matter (no code) - **`VICTORY_SHADER_LOOP_LIMIT` of 4096 or more.** At 256 the main character's hair renders as long streaks; at 4096 it renders correctly. It stayed stable for 8+ minutes on the 3080 (no device loss). Below a few thousand, the hair shading loops are cut short. - **Our best config so far** (Series X profile, fork `4e17478`): `VICTORY_DISPLAY_MODE=1920x1080 VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_SHADER_LOOP_LIMIT=4096`. Result: lit prologue, correct hair, pad movement, **3.2 fps (308 ms/frame)**, no device loss. - **Menu input:** `Enter` every 4 frames from frame 55 to 220 (about 42 presses) gets through the menus on both profiles. A sparse time-based schedule (three presses) leaves the Series S profile stuck on the front end (14 draws/frame forever). ## 2. Series S profile: why it is black - On Series S the title goes through its **FSR4 upscaler**; on Series X it does not. The Series S log has `FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 … falling back to NewBE`, and **`a host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll"`** (`victory-hle/src/modules/kernel.rs`). The DLL is loaded on demand and is not one of the prepared title images, so the load fails. - A target dump shows the 1280×720 G-buffer written, but no lighting/HDR targets and no final output. Four compute pipelines are refused every frame. GPU time is only ~25 ms, so the frame is missing its final passes; it is not under load. - With `VICTORY_DISPLAY_MODE=1280x720` the title still takes the FSR4 path. - The fix in progress upstream is Marvisak/VIctory#1284 (PC FSR; "Series S selects FSR by default") or #1704 (the same calls answered by **DLSS** through Streamline, a good fit for NVIDIA). Series S ran at ~4–5 fps here against ~1.5 on Series X on the same build, so it is worth having. - Caution: fxceless/victory-fork#32 (R9G9B9E5 → RGBA16F) fixes the Series S device removal **but blacks out the Series X picture** on our 3080. Removing it brought the picture back (details on that PR). ## 3. Textures (helps 8–12 GB cards most) - **Character face black / hair pale in most launches:** fixed in fxceless `a803c87`, which you already synced. Textures picked by index were uploaded once, before the title had written them, and kept zeros. - **VRAM budget:** `resource::room()` stops making host copies at 90 % of the card budget. On the 10 GB card about a third of the indexed textures were never uploaded (10,441 waiting against 21,050 uploaded). `VICTORY_TEXTURE_BUDGET_MB=8000` cut that to 2,614 waiting and the scene gained a lot of detail, but showed blocky tiles where textures had been uploaded while only partly mapped. Evicting idle host copies (LRU) would fit the textures in use instead of everything ever uploaded. Your 16 GB card is less affected. ## 4. Performance notes - **Submitting one list at a time with a fence wait** (your anti-TDR change) is the opposite of what `VICTORY_LATE_WAIT`/`VICTORY_RELAY` do: those remove the per-submission wait to overlap CPU and GPU, and gave the largest gain in our runs. It may be worth measuring both on your 5060 Ti, since serialising could cancel the relay gain. - On our 6-core CPU the frame is bound by title-memory traffic: **copy-back 242 ms vs 69 ms GPU**. Larger card buffers or `VICTORY_INPLACE=1` only moved the time around, from copies to GPU (2.8–3.5 fps either way). - Under Wine/Proton, the copy paths' `ReadProcessMemory`/`WriteProcessMemory` go through `wineserver` for every piece, which explains ~107 MB/s copy rates (fxceless/victory-fork#118). - Occlusion queries always answer "visible" (`list.rs`, `1 << 20`), so the title's own culling never removes anything. That cost is per dispatch, not per pixel (fxceless/victory-fork#10). ## 5. Diagnostics you may find handy Two switches we wrote for our own branch (code on `HenriqueSBueno/VIctory`, branch `test/queue-waits-translator`): - `VICTORY_LOOP_LIMIT_SHADERS=ps:1024,ms:1024,vs:1024` (or `<hash>:<n>`): loop caps per stage or per shader, so graphics loops can be capped without touching compute. Low caps on compute plus a cold shader cache trip the title's own watchdog during loading. - `VICTORY_DUMP_SHADERS=<dir>;<hash>,…`: writes the named shader containers for `victory shader-info --disasm`. That is how we found a lighting pixel shader whose outer loop exits on an *equality* with a bound read from a buffer. A producer that never ran turns it into a GPU hang. Happy to run your builds on the two NVIDIA machines and report back if that helps. AI-assisted (Claude Code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:40:19 +00:00
Author
Owner

@⁠flale1 on GitHub · 2026-11-25 01:12 UTC · original

Hi @⁠HenriqueSBueno and @⁠uiliannn, thanks for the detailed report and hardware data. From reading main (e1586fb) without a GPU or game run, three points add context:

  1. Per-list serialization is gone: The 1-list-per-wait behavior attributed to 6f99f75 is no longer there; submit() sends a submission's lists in a single ExecuteCommandLists, and only a diagnostics build with VICTORY_GPU_TIMING splits per run.

  2. Per-stage loop defaults: lower.rs resolves the 1048576 sentinel to 128 (pixel), 256 (vertex/mesh), and 4096 (compute). Setting VICTORY_SHADER_LOOP_LIMIT to 1048576, 0, or an invalid value falls back to those defaults (mod.rs). Hair rendering as streaks under defaults is a compatible hypothesis, pending GPU validation.

  3. Stale README.md and undocumented env vars: README.md still lists old limits, whereas indirect.rs now uses BUDGET = 1u << 27, 65535 mesh groups, and GROUPS = 1u << 20 for compute. Two undocumented vars:

  • VICTORY_HEAP_RECHECK (draw.rs, texture.rs): rechecks heap textures via a 48 KiB start/middle/end sampled fingerprint (=0 disables; edits outside sampled windows can pass).
  • VICTORY_FIRSTLANE_OWN (lower.rs): in halves && !alike when not all lanes run, =1 uses the host wave's own first lane instead of failing.

AI-assisted (Claude Code).

**@⁠flale1** on GitHub · 2026-11-25 01:12 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/1#issuecomment-7149308759) Hi @⁠HenriqueSBueno and @⁠uiliannn, thanks for the detailed report and hardware data. From reading `main` (`e1586fb`) without a GPU or game run, three points add context: 1. **Per-list serialization is gone:** The 1-list-per-wait behavior attributed to `6f99f75` is no longer there; [`submit()`](https://github.com/uiliannn/VItoriaBr/blob/e1586fb/crates/victory-gpu/src/host.rs#L4039-L4082) sends a submission's lists in a single `ExecuteCommandLists`, and only a `diagnostics` build with `VICTORY_GPU_TIMING` splits per run. 2. **Per-stage loop defaults:** [`lower.rs`](https://github.com/uiliannn/VItoriaBr/blob/e1586fb/crates/victory-shader/src/emit/lower.rs#L10907-L10912) resolves the `1048576` sentinel to `128` (pixel), `256` (vertex/mesh), and `4096` (compute). Setting `VICTORY_SHADER_LOOP_LIMIT` to `1048576`, `0`, or an invalid value falls back to those defaults ([`mod.rs`](https://github.com/uiliannn/VItoriaBr/blob/e1586fb/crates/victory-shader/src/emit/mod.rs#L199-L209)). Hair rendering as streaks under defaults is a compatible hypothesis, pending GPU validation. 3. **Stale `README.md` and undocumented env vars:** `README.md` still lists old limits, whereas [`indirect.rs`](https://github.com/uiliannn/VItoriaBr/blob/e1586fb/crates/victory-gpu/src/indirect.rs#L49-L100) now uses `BUDGET = 1u << 27`, `65535` mesh groups, and `GROUPS = 1u << 20` for compute. Two undocumented vars: - `VICTORY_HEAP_RECHECK` ([`draw.rs`](https://github.com/uiliannn/VItoriaBr/blob/e1586fb/crates/victory-gpu/src/draw.rs#L1555-L1566), [`texture.rs`](https://github.com/uiliannn/VItoriaBr/blob/e1586fb/crates/victory-gpu/src/texture.rs#L824-L849)): rechecks heap textures via a 48 KiB start/middle/end sampled fingerprint (`=0` disables; edits outside sampled windows can pass). - `VICTORY_FIRSTLANE_OWN` ([`lower.rs`](https://github.com/uiliannn/VItoriaBr/blob/e1586fb/crates/victory-shader/src/emit/lower.rs#L7429-L7440)): in `halves && !alike` when not all lanes run, `=1` uses the host wave's own first lane instead of failing. AI-assisted (Claude Code).
Author
Owner

@⁠HenriqueSBueno on GitHub · 2026-11-25 01:26 UTC · original

@⁠flale1 thanks for the correction. You're right: at e1586fb, submit() sends a submission's lists in one ExecuteCommandLists, and only VICTORY_GPU_TIMING splits them. My point 4 was based on the README's description of 6f99f75, not on the current code, so please disregard it. Good to know about the per-stage loop defaults in lower.rs as well. Our VICTORY_LOOP_LIMIT_SHADERS adds little there beyond a per-hash override.

One more data point since the report: fxceless c96b4f2 makes the speed switches the defaults (~230 ms/frame where it was ~400 on their RTX 4070) and adds the depth bounds test, which lights the first room by its lamp. That may be worth the next sync.

AI-assisted (Claude Code)

**@⁠HenriqueSBueno** on GitHub · 2026-11-25 01:26 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/1#issuecomment-7149550084) @⁠flale1 thanks for the correction. You're right: at `e1586fb`, `submit()` sends a submission's lists in one `ExecuteCommandLists`, and only `VICTORY_GPU_TIMING` splits them. My point 4 was based on the README's description of `6f99f75`, not on the current code, so please disregard it. Good to know about the per-stage loop defaults in `lower.rs` as well. Our `VICTORY_LOOP_LIMIT_SHADERS` adds little there beyond a per-hash override. One more data point since the report: fxceless `c96b4f2` makes the speed switches the defaults (~230 ms/frame where it was ~400 on their RTX 4070) and adds the depth bounds test, which lights the first room by its lamp. That may be worth the next sync. AI-assisted (Claude Code)
Author
Owner

@⁠xyzMikah on GitHub · 2026-11-26 10:20 UTC · original

RTX 5060 Ti 16 GB, Windows 11. Open to help, or to run builds if you need NVIDIA results.

Discord: billencipher

**@⁠xyzMikah** on GitHub · 2026-11-26 10:20 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/1#issuecomment-7189239988) RTX 5060 Ti 16 GB, Windows 11. Open to help, or to run builds if you need NVIDIA results. Discord: billencipher
Author
Owner

@⁠lmouz823-lang on GitHub · 2026-11-27 13:53 UTC · original

Separate RTX 4060 Laptop 8 GiB datapoint on 15779f8 (Windows 11 build 26200, driver 610.88). I built a release binary with diagnostics and only a local AppContainer scratch-path policy shim. Each Series X run used an independent copy of the same save/shader-cache seed, scripted Enter at 2 s and 18 s, and a planned cutoff after three heavy title-window samples. No device removal was logged, and no game data is attached.

Shared settings: VICTORY_RELAY=0, VICTORY_FILL_WAIT=1, VICTORY_CARD_BUFFERS_MB=1024, VICTORY_PAGE_WRITES=slots, VICTORY_AMBIENT=0.6, VICTORY_TEXTURE_NO_WAIT=1, VICTORY_WIDE_REFRESH=1, VICTORY_WIDE_MERGE=1, VICTORY_JOIN_COPIES=1, VICTORY_DISPLAY_MODE=1920x1080; GPU timing and DRED enabled. Only VICTORY_TEXTURE_BUDGET_MB or the on-demand switch changed:

Texture cap / level mode Heavy-window examples Last logged local usage / DXGI budget; shared; texture-copy passes refused
5120 MiB / off 3556 draws, 1527.8 ms/frame; 2813 draws, 1742.4 ms/frame 8262 / 7018 MiB; shared 4932 MiB; 12 refused
4096 MiB / off 2682 draws, 887.6 ms/frame; 3444 draws, 937.3 ms/frame 7582 / 7026 MiB; shared 4790 MiB; 8 refused
5120 MiB / VICTORY_LEVELS_ON_DEMAND=1 3516 draws, 1767.0 ms/frame; 3128 draws, 2093.6 ms/frame 8044 / 6972 MiB; shared 4730 MiB; 0 refused

The on-demand log reported tier=4 on=true and 3272 MiB of unallocated texture levels near the cutoff, but total local usage still exceeded the DXGI budget. Lowering the explicit texture cap reduced the final logged host texture copies from 5094 to 3935 MiB, yet also remained over total budget. These are short cold-cache transitions with different draw/pipeline states, so the frame times do not establish a speedup; I have not yet compared the resulting images for missing textures. The explicit texture cap appears to limit that class of copies rather than total local VRAM. This may help evaluate #107/#119 and the memory discussion here.

**@⁠lmouz823-lang** on GitHub · 2026-11-27 13:53 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/1#issuecomment-7220065532) Separate RTX 4060 Laptop 8 GiB datapoint on `15779f8` (Windows 11 build 26200, driver 610.88). I built a release binary with `diagnostics` and only a local AppContainer scratch-path policy shim. Each Series X run used an independent copy of the same save/shader-cache seed, scripted Enter at 2 s and 18 s, and a planned cutoff after three heavy title-window samples. No device removal was logged, and no game data is attached. Shared settings: `VICTORY_RELAY=0`, `VICTORY_FILL_WAIT=1`, `VICTORY_CARD_BUFFERS_MB=1024`, `VICTORY_PAGE_WRITES=slots`, `VICTORY_AMBIENT=0.6`, `VICTORY_TEXTURE_NO_WAIT=1`, `VICTORY_WIDE_REFRESH=1`, `VICTORY_WIDE_MERGE=1`, `VICTORY_JOIN_COPIES=1`, `VICTORY_DISPLAY_MODE=1920x1080`; GPU timing and DRED enabled. Only `VICTORY_TEXTURE_BUDGET_MB` or the on-demand switch changed: | Texture cap / level mode | Heavy-window examples | Last logged local usage / DXGI budget; shared; texture-copy passes refused | | --- | --- | --- | | 5120 MiB / off | 3556 draws, 1527.8 ms/frame; 2813 draws, 1742.4 ms/frame | 8262 / 7018 MiB; shared 4932 MiB; 12 refused | | 4096 MiB / off | 2682 draws, 887.6 ms/frame; 3444 draws, 937.3 ms/frame | 7582 / 7026 MiB; shared 4790 MiB; 8 refused | | 5120 MiB / `VICTORY_LEVELS_ON_DEMAND=1` | 3516 draws, 1767.0 ms/frame; 3128 draws, 2093.6 ms/frame | 8044 / 6972 MiB; shared 4730 MiB; 0 refused | The on-demand log reported `tier=4 on=true` and 3272 MiB of unallocated texture levels near the cutoff, but total local usage still exceeded the DXGI budget. Lowering the explicit texture cap reduced the final logged host texture copies from 5094 to 3935 MiB, yet also remained over total budget. These are short cold-cache transitions with different draw/pipeline states, so the frame times do not establish a speedup; I have not yet compared the resulting images for missing textures. The explicit texture cap appears to limit that class of copies rather than total local VRAM. This may help evaluate #107/#119 and the memory discussion here.
This discussion has been locked. Commenting is limited to contributors.
No description provided.