RTX 4050 Laptop 6 GB, Series S: seven computes cost ~125 ms of GPU a frame once a 32-lane port runs them #1278

Open
opened 2026-11-26 11:19:41 +00:00 by github-bot · 3 comments
Owner

@⁠Curry-976 on GitHub · 2026-11-26 09:42 UTC · original

RTX 4050 Laptop 6 GB, Series S: seven computes cost ~125 ms of GPU a frame once a 32-lane port runs them. Which passes are they, and is there a cheaper way?

Machine: RTX 4050 Laptop 6 GB (Ada, 32-lane waves, ~4.9 GB budget), driver 32.0.16.1742, Intel i5-12450HX, 24 GB RAM (+ page file), Windows 11 26300, game package 1.0.2.1, --console series-s, 1080p reported display.

How we got here (one change at a time, each judged on the same spots):

  1. avatarmanz/VIctory-7900XTX, Series X -Safe: sharp, 4-5 fps, 22-23 GB private. THIN + JOIN_PARTS together give 7-9 fps but break the picture (avatarmanz#62).
  2. This fork 18ea644 + #1081 + #798 (Series S black screen fixed) + #1002 + #592, Series S: 5-7 fps, 15-17 GB, but seven computes are refused on this card (02384a60fda6f2d0 2da4beb386509b77 369cbe906ea72764 5dc3b25986622949 6b82bc7d22016cb5 6f225b641c5b0708 926c46bab3b86bd6) and the player character shows 16 px staircase light.
  3. codec-d/cool_fox f4b48ad (a 7900XTX derivative with an NVIDIA wave32 port; built from source, never its release binary): 0 refused, staircase gone, very stable picture, but 3 fps. CPU preparing fell to ~70 ms a frame (from 110-130 on step 2) while the GPU went to ~200-250 ms a frame.
  4. VICTORY_TEXTURE_NO_WAIT=0 (HLVM04's tip in #1022/#923) brought the player's face and neck back at no fps cost.

GPU timing run (VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1, ~2 min in the first rooms), slow list commands summed per shader, ~296 frames:

compute per frame dispatch
8cbd7f5b9ce7530c ~30 ms
47d8c225abfcb246 ~20 ms 1013x1x1
528278df1274cb33 ~18 ms 15x270x1
32aa8384586e0f12 ~17 ms 15x270x1
8b437ab61d8008fe ~12 ms 507x1x1
f46117391dd81461 ~12 ms
f7fc6c984427fef3 ~11 ms 15x540x1

None of these seven appears at all in a step-2 log on the same machine. VICTORY_DISPLAY_MODE=1280x720 changes nothing (the internal targets stay the same size).

Leaving out 8cbd7f5b9ce7530c (VICTORY_SKIP_PIPELINES): 4 fps instead of 3 (GPU ~170-185 ms), and cutscenes look sharper to the player, so it may be a blur-type pass. I have not found the program names: the shader cache does not show them.

Questions:

  1. Do you know which programs these seven hashes are (names from your tools)? Which ones are safe to leave out on a small card, and which ones carry lighting/shadows/skin?
  2. Is their cost here expected from running wave64 programs as two 32-lane host waves, or is something else making them slow (e.g. the card being near its memory budget)? Is there a cheaper lowering being worked on?
  3. Any other setting for a 6 GB card that lowers GPU work without breaking the picture?

No game files, logs of the title or images attached. Tested by the person playing; the runs were driven and this written with Claude Code (Claude Opus 5.5).

**@⁠Curry-976** on GitHub · 2026-11-26 09:42 UTC · [original](https://github.com/fxceless/victory-fork/issues/1278) **RTX 4050 Laptop 6 GB, Series S: seven computes cost ~125 ms of GPU a frame once a 32-lane port runs them. Which passes are they, and is there a cheaper way?** **Machine:** RTX 4050 Laptop 6 GB (Ada, 32-lane waves, ~4.9 GB budget), driver 32.0.16.1742, Intel i5-12450HX, 24 GB RAM (+ page file), Windows 11 26300, game package 1.0.2.1, `--console series-s`, 1080p reported display. **How we got here (one change at a time, each judged on the same spots):** 1. avatarmanz/VIctory-7900XTX, Series X `-Safe`: sharp, 4-5 fps, 22-23 GB private. `THIN` + `JOIN_PARTS` together give 7-9 fps but break the picture (avatarmanz#62). 2. This fork `18ea644` + #1081 + #798 (Series S black screen fixed) + #1002 + #592, Series S: 5-7 fps, 15-17 GB, but seven computes are refused on this card (`02384a60fda6f2d0 2da4beb386509b77 369cbe906ea72764 5dc3b25986622949 6b82bc7d22016cb5 6f225b641c5b0708 926c46bab3b86bd6`) and the player character shows 16 px staircase light. 3. codec-d/cool_fox `f4b48ad` (a 7900XTX derivative with an NVIDIA wave32 port; built from source, never its release binary): **0 refused**, staircase gone, very stable picture, but 3 fps. CPU preparing fell to ~70 ms a frame (from 110-130 on step 2) while the GPU went to ~200-250 ms a frame. 4. `VICTORY_TEXTURE_NO_WAIT=0` (HLVM04's tip in #1022/#923) brought the player's face and neck back at no fps cost. **GPU timing run** (`VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1`, ~2 min in the first rooms), slow list commands summed per shader, ~296 frames: | compute | per frame | dispatch | |---|---|---| | `8cbd7f5b9ce7530c` | ~30 ms | | | `47d8c225abfcb246` | ~20 ms | 1013x1x1 | | `528278df1274cb33` | ~18 ms | 15x270x1 | | `32aa8384586e0f12` | ~17 ms | 15x270x1 | | `8b437ab61d8008fe` | ~12 ms | 507x1x1 | | `f46117391dd81461` | ~12 ms | | | `f7fc6c984427fef3` | ~11 ms | 15x540x1 | None of these seven appears at all in a step-2 log on the same machine. `VICTORY_DISPLAY_MODE=1280x720` changes nothing (the internal targets stay the same size). **Leaving out `8cbd7f5b9ce7530c`** (`VICTORY_SKIP_PIPELINES`): 4 fps instead of 3 (GPU ~170-185 ms), and cutscenes look *sharper* to the player, so it may be a blur-type pass. I have not found the program names: the shader cache does not show them. **Questions:** 1. Do you know which programs these seven hashes are (names from your tools)? Which ones are safe to leave out on a small card, and which ones carry lighting/shadows/skin? 2. Is their cost here expected from running wave64 programs as two 32-lane host waves, or is something else making them slow (e.g. the card being near its memory budget)? Is there a cheaper lowering being worked on? 3. Any other setting for a 6 GB card that lowers GPU work without breaking the picture? No game files, logs of the title or images attached. Tested by the person playing; the runs were driven and this written with Claude Code (Claude Opus 5.5).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:19:41 +00:00
Author
Owner

@⁠HLVM04 on GitHub · 2026-11-26 09:56 UTC · original

Partial answers from an RTX 5070 Ti (16 GB, 32-lane), Series S, on a fork stack (not cool_fox):

  • Refused pipelines: with #799's loose-LDS fallback, 5 of the 7 refused WaveSize-64 computes build here, including 4 of yours: 02384a60fda6f2d0, 2da4beb386509b77, 369cbe906ea72764, 6b82bc7d22016cb5. 2da4beb386509b77 is the title's textured wired glass (bisected with VICTORY_SKIP_PIPELINES, checked in a PIX capture), so it is not lighting or skin.
  • Q2, is a 32-lane wave64 form necessarily that expensive: fork PR #854 (paired wave64 form) merged on our stack gave a median of 52–53 ms vs 53–59 ms without it (p90 64–76 vs 75–98), 2 runs each. So on this card that lowering cost nothing measurable. Caveats: our card is not the limit (it waits ~1 ms a frame), we have 16 GB not 6, and we haven't run your seven hashes in isolation or cool_fox's port.
  • Face/neck with VICTORY_TEXTURE_NO_WAIT=0: the mechanism behind that is written up in #923.
**@⁠HLVM04** on GitHub · 2026-11-26 09:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/1278#issuecomment-7188678217) Partial answers from an RTX 5070 Ti (16 GB, 32-lane), Series S, on a fork stack (not cool_fox): - **Refused pipelines:** with #799's loose-LDS fallback, 5 of the 7 refused WaveSize-64 computes build here, including 4 of yours: `02384a60fda6f2d0`, `2da4beb386509b77`, `369cbe906ea72764`, `6b82bc7d22016cb5`. `2da4beb386509b77` is the title's textured wired glass (bisected with `VICTORY_SKIP_PIPELINES`, checked in a PIX capture), so it is not lighting or skin. - **Q2, is a 32-lane wave64 form necessarily that expensive:** fork PR #854 (paired wave64 form) merged on our stack gave a median of 52–53 ms vs 53–59 ms without it (p90 64–76 vs 75–98), 2 runs each. So on this card that lowering cost nothing measurable. Caveats: our card is not the limit (it waits ~1 ms a frame), we have 16 GB not 6, and we haven't run your seven hashes in isolation or cool_fox's port. - **Face/neck with `VICTORY_TEXTURE_NO_WAIT=0`:** the mechanism behind that is written up in #923.
Author
Owner

@⁠Curry-976 on GitHub · 2026-11-26 10:19 UTC · original

Thanks, that helped. I tried #799 on the 6 GB card, here is what it gave.

Setup: RTX 4050 Laptop 6 GB (32-lane), driver 32.0.16.1742, i5-12450HX, 24 GB RAM, Series S, game 1.0.2.1. This fork 18ea644 + #1081 + #798 + #1002 + #592, then #799 picked on top. Three conflicts, because main moved on since the PR: I kept main's constant_view_size (the CBV clamp is already there) and main's lds_flag_region loop, with !LDS_LOOSE.get() added to its refusal, and put the loose-LDS tries after main's wide_last block. cargo test -p victory-shader --lib: 225 passed, 0 failed, 3 ignored.

Result, same profile with and without #799:

  • Refused computes: 7 → 2. Only 5dc3b25986622949 and 6f225b641c5b0708 are still refused (0x80070057).
  • Speed: 5-7 fps → 1-3 fps (title bar 300-1040 ms a frame), in the same first scenes.
  • The 16 px staircase light on characters is still there, and looks worse on hair: lit and black square blocks around the head.

So on this card, running those programs in the loose form costs about as much as cool_fox's wave32 port (3 fps), and does not fix the staircase. I have taken #799 back out locally. My guess is that the card is the limit here (6 GB, near its budget), unlike on your 5070 Ti, but I have not measured each hash on its own.

Tested by the person playing; the runs were driven and this written with Claude Code (Claude Opus 5.5).

**@⁠Curry-976** on GitHub · 2026-11-26 10:19 UTC · [original](https://github.com/fxceless/victory-fork/issues/1278#issuecomment-7189218954) Thanks, that helped. I tried #799 on the 6 GB card, here is what it gave. **Setup:** RTX 4050 Laptop 6 GB (32-lane), driver 32.0.16.1742, i5-12450HX, 24 GB RAM, Series S, game 1.0.2.1. This fork `18ea644` + #1081 + #798 + #1002 + #592, then #799 picked on top. Three conflicts, because main moved on since the PR: I kept main's `constant_view_size` (the CBV clamp is already there) and main's `lds_flag_region` loop, with `!LDS_LOOSE.get()` added to its refusal, and put the loose-LDS tries after main's `wide_last` block. `cargo test -p victory-shader --lib`: 225 passed, 0 failed, 3 ignored. **Result, same profile with and without #799:** - Refused computes: 7 → 2. Only `5dc3b25986622949` and `6f225b641c5b0708` are still refused (`0x80070057`). - Speed: 5-7 fps → **1-3 fps** (title bar 300-1040 ms a frame), in the same first scenes. - The 16 px staircase light on characters is still there, and looks worse on hair: lit and black square blocks around the head. So on this card, running those programs in the loose form costs about as much as cool_fox's wave32 port (3 fps), and does not fix the staircase. I have taken #799 back out locally. My guess is that the card is the limit here (6 GB, near its budget), unlike on your 5070 Ti, but I have not measured each hash on its own. Tested by the person playing; the runs were driven and this written with Claude Code (Claude Opus 5.5).
Author
Owner

@⁠Dathinel on GitHub · 2026-11-27 00:05 UTC · original

A data point for the question in this issue, from a smaller card on the same tree (cool_fox f4b48ad lineage): RTX 3050 Laptop 4 GB (32-lane), Ryzen 7 7435HS, 24 GB RAM, Series S, game 1.0.2.1.

Your seven hashes did not run in the scene I measured (a boat scene in free play), so this is a different list, but the same kind of answer. Measured with a batch GPU timing that collects timestamps behind the existing batch fence instead of sending lists one at a time (so the frame is not serialised; about 6,050 commands a frame, none lost):

ms of card time a frame
all commands 128.5
indirect_light_probes:CS_Primary_GatherCopy, one command 49.7
the rest of indirect_light_probes 10.9
bvh_skinning:* (41 programs; RigidVelocity, TreeAnimVelocity, PedSecMotionVelocity the heavy ones) 23.0
scattering_transmittance_system 6.3
sr_tracing 4.0
every G-buffer family under 4 each

So about two thirds of the card's time went to work that only serves ray tracing, which does not run on this card: bvh_skinning prepares geometry for the structure builder (off on 32-lane), and the probes gather by rays with nothing to hit.

Leaving out the 41 bvh_skinning programs and the two CS_Primary_GatherCopy variants (#ce33eeaaf36bce05, #cfd83392ec9ae408) with VICTORY_SKIP_PIPELINES: 67 ms of card time by the same profile, and 6.5 to 6.7 fps against 4.1 to 4.9 with the profiler off. In the captures of that daylight scene the picture did not change. One run per row, one scene; interiors and night not checked with these skips, and if the probes feed light anywhere it would be there.

On your second question (wave64 as two 32-lane waves, or something else): on this card the cost was not in lowered programs in general. One probe gather held 39 % of the frame's card time on its own.

The hash list, the full table and what else was tried on 4 GB (texture residency, the interior fog veil) are in https://github.com/Dathinel/victory-4gb/issues/4 and its README. If you can run the same two skips on the 4050 6 GB, the numbers would be worth having side by side.

No game files, logs of the title or images attached. Measured on the machine above; the runs were driven and this written with AI assistance (Claude Code; the profiler is Codex's work).

**@⁠Dathinel** on GitHub · 2026-11-27 00:05 UTC · [original](https://github.com/fxceless/victory-fork/issues/1278#issuecomment-7206166704) A data point for the question in this issue, from a smaller card on the same tree (cool_fox `f4b48ad` lineage): RTX 3050 Laptop **4 GB** (32-lane), Ryzen 7 7435HS, 24 GB RAM, Series S, game 1.0.2.1. Your seven hashes did not run in the scene I measured (a boat scene in free play), so this is a different list, but the same kind of answer. Measured with a batch GPU timing that collects timestamps behind the existing batch fence instead of sending lists one at a time (so the frame is not serialised; about 6,050 commands a frame, none lost): | | ms of card time a frame | |---|---| | all commands | 128.5 | | `indirect_light_probes:CS_Primary_GatherCopy`, one command | 49.7 | | the rest of `indirect_light_probes` | 10.9 | | `bvh_skinning:*` (41 programs; `RigidVelocity`, `TreeAnimVelocity`, `PedSecMotionVelocity` the heavy ones) | 23.0 | | `scattering_transmittance_system` | 6.3 | | `sr_tracing` | 4.0 | | every G-buffer family | under 4 each | So about two thirds of the card's time went to work that only serves ray tracing, which does not run on this card: `bvh_skinning` prepares geometry for the structure builder (off on 32-lane), and the probes gather by rays with nothing to hit. Leaving out the 41 `bvh_skinning` programs and the two `CS_Primary_GatherCopy` variants (`#ce33eeaaf36bce05`, `#cfd83392ec9ae408`) with `VICTORY_SKIP_PIPELINES`: 67 ms of card time by the same profile, and 6.5 to 6.7 fps against 4.1 to 4.9 with the profiler off. In the captures of that daylight scene the picture did not change. One run per row, one scene; interiors and night not checked with these skips, and if the probes feed light anywhere it would be there. On your second question (wave64 as two 32-lane waves, or something else): on this card the cost was not in lowered programs in general. One probe gather held 39 % of the frame's card time on its own. The hash list, the full table and what else was tried on 4 GB (texture residency, the interior fog veil) are in https://github.com/Dathinel/victory-4gb/issues/4 and its README. If you can run the same two skips on the 4050 6 GB, the numbers would be worth having side by side. No game files, logs of the title or images attached. Measured on the machine above; the runs were driven and this written with AI assistance (Claude Code; the profiler is Codex's work).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#1278
No description provided.