In-world on an RTX 3080 10 GB: 0.1 fps on the first run (6x better warm), four compute programs refused with EINVAL after translating #1106

Open
opened 2026-11-26 03:57:35 +00:00 by github-bot · 3 comments
Owner

@⁠FordMustang0288 on GitHub · 2026-11-25 19:36 UTC · original

Issue text — in-world on an RTX 3080 10 GB: 0.1 fps first run, four compute pipelines refused with E_INVALIDARG

Ready to post. Measured numbers only; no game files, no private paths, nothing from the title's contents.


Title: In-world on an RTX 3080 10 GB: 0.1 fps on the first run, and four compute programs are refused with E_INVALIDARG after translating cleanly

Body:

A worked-through data point from a machine below the fork's tested configuration, with numbers taken from the host's own counters rather than eyeballed.

Setup. Linux, Wine, D3D12 through vkd3d-proton (stock Proton Experimental runtime DLLs), Microsoft's dxil.dll for validation, diagnostics build. NVIDIA RTX 3080, 10 GB VRAM (the README's test card has 12 GB), 31 GB system RAM of which the title wanted about 24 GB, driver 615.78.08. Title reaches menus normally and then the game world.

First run in the world, measured:

Frame rate 0.1 fps — 8,477 ms/frame, worst 21,680 ms
Draws/frame 330-825, peak 1,518
Draws dropped per frame 1,759 → 1,923 → 2,094, while 572-781 pipelines were still being made
Waiting for pipelines 250 ms/frame

Then it improves on its own, with no setting changed. The same session, later frames: 21,680 ms → 8,477 ms → 3,933 ms per frame, as the pipeline cache filled to 212 MB. That is the whole first-run story: pipelines are built on first use, the frame blocks on draws whose pipeline is not ready yet, and once the shaders have been seen the stalls fall away by roughly sixfold. Anyone reporting "unplayably slow" from a first launch should be asked to launch twice before the number means anything.

The part that looks like a bug rather than a warm-up. Four compute programs translate successfully and are then refused at pipeline creation:

INFO  victory_gpu::pipeline: shader translated stage="compute" hash=02384a60fda6f2d0 user_data=1 samplers=0
WARN  victory_gpu::pipeline::host: host pipeline refused error=Invalid parameter. (0x80070057) shaders=[compute 02384a60fda6f2d0]

The four: 02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764. Note they are refused after translation, with E_INVALIDARG — not a translation failure and not a missing pipeline.

The visible result matches: the world frames are heavily washed out. The five richest captures of 94 recorded screens show real in-engine 3D (smooth depth fog, horizon, distant geometry, no compression artefacts) but with distant surfaces reading as untextured, consistent with lighting and effects programs contributing nothing. Screen-size distribution across those 94 distinct frames: 28 effectively flat, 22 sparse, 39 partial, 5 rich.

E_INVALIDARG at compute-pipeline creation, after the DXIL validates, is the signature to chase. On a 32-lane NVIDIA device the obvious candidate is a compute program whose DXIL still declares a 64-wide wave — the tracker already lists this class ("32-lane hosts: programs stay at WaveSize(64), NVIDIA refuses them"). The fork's VICTORY_WAVE_WIDE=1 is the related switch, but its own comment says that form lost the card on two programs in runs 121-124, so it is not a safe default.

What would settle it: a run with VKD3D_DEBUG=trace to log which parameter vkd3d-proton rejects — thread-group size, wave size, or root-signature mismatch — for one of those four hashes. That distinguishes "wave64 on wave32" from "root signature does not match", and the two need different fixes. I have not done that run yet, so this report does not claim which it is.

A cheaper test that needs no GPU at all

While tracing the refusal site it became clear the production path never validates the emitted DXIL. crates/victory-gpu/src/pipeline/host.rs constructs D3D12_COMPUTE_PIPELINE_STATE_DESC and calls CreateComputePipelineState directly; the only reference to the validator in that file is inside #[cfg(test)]. So "shader translated" in the log means the translator finished, not that Microsoft's validator accepted the bytes. With a real dxil.dll available, an invalid blob would surface exactly this way — E_INVALIDARG at pipeline creation, after a successful translation line.

That makes a CPU-only experiment possible, with no GPU involved and no game launch:

  1. Use the CLI's own documented translation path with validation, victory translate <paths> --validate, against the title's shader archives, and count how many programs fail validation. If the same four hashes fail, the cause is our own emitted DXIL and the fix is in the translator, not the device.
  2. If all of them validate, the refusal is device- or root-signature-level, and the VKD3D_DEBUG=trace run above is the only way to name it.

Worth doing before anyone implements the wave-size work, because it separates "we emit bad DXIL for a few programs" from "the device refuses a legal program", and those are very different bug reports.

Half of that test is already done — wave size is not the cause

translate --warm <file> translates only the containers whose 16-digit hashes the file names, on the CPU, with no GPU. Pointed at the four refused hashes it reports, in half a second:

warm-up  4 hashes asked, 4 found: 4 translated now, 0 in the cache already, 0 do not translate

and the same result with VICTORY_HOST_WAVE=32 (this host's real value, from host wave lanes min=32 max=32) and with VICTORY_HOST_WAVE=64:

=== VICTORY_HOST_WAVE=32 ===
warm-up  4 hashes asked, 4 found: 4 translated now, 0 in the cache already, 0 do not translate; 0.5 s
=== VICTORY_HOST_WAVE=64 ===
warm-up  4 hashes asked, 4 found: 4 translated now, 0 in the cache already, 0 do not translate; 0.4 s

So all four translate cleanly for a 32-lane host, and none is reported as untranslatable. Wave size is therefore not what blocks them. That removes the wave64-on-wave32 candidate that #953-style reports would suggest, and it means enabling VICTORY_WAVE_WIDE=1 is unlikely to fix these four — worth knowing before anyone takes that risk with a card that already lost its device in earlier runs.

That leaves two candidates, and the evidence does not pick between them yet:

  1. The emitted DXIL is invalid in a way only Microsoft's validator sees, because production never validates.
  2. The root signature does not match the shader's bindings, which D3D12 also reports as E_INVALIDARG at pipeline creation.

Both are cheap to distinguish with one more measurement: a full victory translate <shader archive> --validate run (CPU only, but it walks every program), or VKD3D_DEBUG=trace on a run (GPU). I have run neither, so this report claims neither.

Related observation from the same site: the fork validates emitted DXIL only in tests, so a production run can ship an invalid module and only discover it when the driver refuses the pipeline. Validating in production behind a switch, or at least counting validation failures, would turn this class of failure into a named shader hash instead of an opaque E_INVALIDARG.

Not claimed: no performance comparison against the README's 2-4 fps on a 12 GB card beyond noting this machine is weaker on VRAM and memory; no claim about console behaviour; no claim that these four programs are the only reason the world looks washed out.

**@⁠FordMustang0288** on GitHub · 2026-11-25 19:36 UTC · [original](https://github.com/fxceless/victory-fork/issues/1106) # Issue text — in-world on an RTX 3080 10 GB: 0.1 fps first run, four compute pipelines refused with `E_INVALIDARG` Ready to post. Measured numbers only; no game files, no private paths, nothing from the title's contents. --- **Title:** In-world on an RTX 3080 10 GB: 0.1 fps on the first run, and four compute programs are refused with `E_INVALIDARG` after translating cleanly **Body:** A worked-through data point from a machine below the fork's tested configuration, with numbers taken from the host's own counters rather than eyeballed. **Setup.** Linux, Wine, D3D12 through vkd3d-proton (stock Proton Experimental runtime DLLs), Microsoft's `dxil.dll` for validation, diagnostics build. NVIDIA RTX 3080, **10 GB** VRAM (the README's test card has 12 GB), 31 GB system RAM of which the title wanted about 24 GB, driver 615.78.08. Title reaches menus normally and then the game world. **First run in the world, measured:** | | | | --- | --- | | Frame rate | 0.1 fps — 8,477 ms/frame, worst 21,680 ms | | Draws/frame | 330-825, peak 1,518 | | Draws dropped per frame | 1,759 → 1,923 → 2,094, while 572-781 pipelines were still being made | | Waiting for pipelines | 250 ms/frame | **Then it improves on its own, with no setting changed.** The same session, later frames: **21,680 ms → 8,477 ms → 3,933 ms per frame**, as the pipeline cache filled to 212 MB. That is the whole first-run story: pipelines are built on first use, the frame blocks on draws whose pipeline is not ready yet, and once the shaders have been seen the stalls fall away by roughly sixfold. Anyone reporting "unplayably slow" from a first launch should be asked to launch twice before the number means anything. **The part that looks like a bug rather than a warm-up.** Four compute programs translate successfully and are then refused at pipeline creation: ``` INFO victory_gpu::pipeline: shader translated stage="compute" hash=02384a60fda6f2d0 user_data=1 samplers=0 WARN victory_gpu::pipeline::host: host pipeline refused error=Invalid parameter. (0x80070057) shaders=[compute 02384a60fda6f2d0] ``` The four: `02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`. Note they are refused *after* translation, with `E_INVALIDARG` — not a translation failure and not a missing pipeline. The visible result matches: the world frames are heavily washed out. The five richest captures of 94 recorded screens show real in-engine 3D (smooth depth fog, horizon, distant geometry, no compression artefacts) but with distant surfaces reading as untextured, consistent with lighting and effects programs contributing nothing. Screen-size distribution across those 94 distinct frames: 28 effectively flat, 22 sparse, 39 partial, 5 rich. `E_INVALIDARG` at compute-pipeline creation, after the DXIL validates, is the signature to chase. On a 32-lane NVIDIA device the obvious candidate is a compute program whose DXIL still declares a 64-wide wave — the tracker already lists this class ("32-lane hosts: programs stay at WaveSize(64), NVIDIA refuses them"). The fork's `VICTORY_WAVE_WIDE=1` is the related switch, but its own comment says that form lost the card on two programs in runs 121-124, so it is not a safe default. **What would settle it:** a run with `VKD3D_DEBUG=trace` to log which parameter vkd3d-proton rejects — thread-group size, wave size, or root-signature mismatch — for one of those four hashes. That distinguishes "wave64 on wave32" from "root signature does not match", and the two need different fixes. I have not done that run yet, so this report does not claim which it is. ### A cheaper test that needs no GPU at all While tracing the refusal site it became clear the production path **never validates the emitted DXIL**. `crates/victory-gpu/src/pipeline/host.rs` constructs `D3D12_COMPUTE_PIPELINE_STATE_DESC` and calls `CreateComputePipelineState` directly; the only reference to the validator in that file is inside `#[cfg(test)]`. So "shader translated" in the log means the translator finished, not that Microsoft's validator accepted the bytes. With a real `dxil.dll` available, an invalid blob would surface exactly this way — `E_INVALIDARG` at pipeline creation, after a successful translation line. That makes a CPU-only experiment possible, with no GPU involved and no game launch: 1. Use the CLI's own documented translation path with validation, `victory translate <paths> --validate`, against the title's shader archives, and count how many programs fail validation. If the same four hashes fail, the cause is our own emitted DXIL and the fix is in the translator, not the device. 2. If all of them validate, the refusal is device- or root-signature-level, and the `VKD3D_DEBUG=trace` run above is the only way to name it. Worth doing before anyone implements the wave-size work, because it separates "we emit bad DXIL for a few programs" from "the device refuses a legal program", and those are very different bug reports. ### Half of that test is already done — wave size is not the cause `translate --warm <file>` translates only the containers whose 16-digit hashes the file names, on the CPU, with no GPU. Pointed at the four refused hashes it reports, in half a second: ``` warm-up 4 hashes asked, 4 found: 4 translated now, 0 in the cache already, 0 do not translate ``` and the same result with `VICTORY_HOST_WAVE=32` (this host's real value, from `host wave lanes min=32 max=32`) and with `VICTORY_HOST_WAVE=64`: ``` === VICTORY_HOST_WAVE=32 === warm-up 4 hashes asked, 4 found: 4 translated now, 0 in the cache already, 0 do not translate; 0.5 s === VICTORY_HOST_WAVE=64 === warm-up 4 hashes asked, 4 found: 4 translated now, 0 in the cache already, 0 do not translate; 0.4 s ``` So all four translate cleanly for a 32-lane host, and none is reported as untranslatable. **Wave size is therefore not what blocks them.** That removes the wave64-on-wave32 candidate that #953-style reports would suggest, and it means enabling `VICTORY_WAVE_WIDE=1` is unlikely to fix these four — worth knowing before anyone takes that risk with a card that already lost its device in earlier runs. That leaves two candidates, and the evidence does not pick between them yet: 1. **The emitted DXIL is invalid** in a way only Microsoft's validator sees, because production never validates. 2. **The root signature does not match the shader's bindings**, which D3D12 also reports as `E_INVALIDARG` at pipeline creation. Both are cheap to distinguish with one more measurement: a full `victory translate <shader archive> --validate` run (CPU only, but it walks every program), or `VKD3D_DEBUG=trace` on a run (GPU). I have run neither, so this report claims neither. Related observation from the same site: the fork validates emitted DXIL only in tests, so a production run can ship an invalid module and only discover it when the driver refuses the pipeline. Validating in production behind a switch, or at least counting validation failures, would turn this class of failure into a named shader hash instead of an opaque `E_INVALIDARG`. **Not claimed:** no performance comparison against the README's 2-4 fps on a 12 GB card beyond noting this machine is weaker on VRAM and memory; no claim about console behaviour; no claim that these four programs are the only reason the world looks washed out.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:57:35 +00:00
Author
Owner

@⁠xyzMikah on GitHub · 2026-11-25 21:46 UTC · original

I can add the production-side DXIL validation behind a switch, so refused shaders get named. Claiming that part. @⁠FordMustang0288, are you on Discord? add (billencipher)

**@⁠xyzMikah** on GitHub · 2026-11-25 21:46 UTC · [original](https://github.com/fxceless/victory-fork/issues/1106#issuecomment-7175524255) I can add the production-side DXIL validation behind a switch, so refused shaders get named. Claiming that part. @⁠FordMustang0288, are you on Discord? add (billencipher)
Author
Owner

@⁠FordMustang0288 on GitHub · 2026-11-26 03:04 UTC · original

I have raw numbers on this from a first world run on an RTX 3080 10 GB - measured, not estimated.

I can re-run with the pipeline cache warm (it is, 212 MB / 1400+ files) and either switch set, if that helps or if it is worth doing against the numbers below.

Metric First-run value (cold pipeline cache)
Frame rate 0.1 fps - 8477 ms/frame, worst 21680 ms
Draws/frame 330-825, peak 1518
Draws dropped per frame 1759, 1923, 2094, while 572-781 pipelines were still being built
Waiting for pipelines 250 ms/frame
Cache at end 212 MB, 1400+ files

Later in the same session, no settings changed: 21680 -> 8477 -> 3933 ms/frame as the cache filled.
So ~6x improvement from cache warming alone. Worth knowing before anyone quotes a first-launch number as a target.

Four compute programs refused at pipeline creation with E_INVALIDARG after translating
cleanly (02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764).
Their world renders washed out: the 5 richest of 94 distinct screens show real
in-engine 3D (smooth depth-fog, horizon, distant geometry) with distant surfaces
reading as untextured. Consistent with lighting/effects programs producing nothing.

This host reports host wave lanes min=32 max=32, so the VICTORY_WAVE_WIDE switch
is a candidate for the refused compute programs - but the source comment says that form
lost the card in runs 121-124, so I have not tried it.

I can re-run with any switch set you want and share the log. I can also capture the full
VKD3D_DEBUG=trace output for the refused pipeline creation, if that would narrow it
down for you.

**@⁠FordMustang0288** on GitHub · 2026-11-26 03:04 UTC · [original](https://github.com/fxceless/victory-fork/issues/1106#issuecomment-7181371150) I have raw numbers on this from a first world run on an RTX 3080 10 GB - measured, not estimated. I can re-run with the pipeline cache warm (it is, 212 MB / 1400+ files) and either switch set, if that helps or if it is worth doing against the numbers below. | Metric | First-run value (cold pipeline cache) | |---|---| | Frame rate | 0.1 fps - 8477 ms/frame, worst 21680 ms | | Draws/frame | 330-825, peak 1518 | | Draws dropped per frame | 1759, 1923, 2094, while 572-781 pipelines were still being built | | Waiting for pipelines | 250 ms/frame | | Cache at end | 212 MB, 1400+ files | **Later in the same session, no settings changed:** 21680 -> 8477 -> 3933 ms/frame as the cache filled. So ~6x improvement from cache warming alone. Worth knowing before anyone quotes a first-launch number as a target. **Four compute programs refused** at pipeline creation with E_INVALIDARG after translating cleanly (02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764). Their world renders washed out: the 5 richest of 94 distinct screens show real in-engine 3D (smooth depth-fog, horizon, distant geometry) with distant surfaces reading as untextured. Consistent with lighting/effects programs producing nothing. **This host reports `host wave lanes min=32 max=32`**, so the VICTORY_WAVE_WIDE switch is a candidate for the refused compute programs - but the source comment says that form lost the card in runs 121-124, so I have not tried it. I can re-run with any switch set you want and share the log. I can also capture the full VKD3D_DEBUG=trace output for the refused pipeline creation, if that would narrow it down for you.
Author
Owner

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

A 32-lane data point on the "wave size is not the cause" conclusion. On an RTX 5070 Ti (wave32 only, Windows, native D3D12, fork 9376fd6), the same four IDs (02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764) are among 7 compute pipelines refused with E_INVALIDARG, and all 7 are programs whose translated form declares WaveSize 64. "Translated" in the log only means a module was made; the refusal comes later, at pipeline creation, so translate --warm succeeding doesn't rule wave size out.

What changed that for us:

  • #799's loose-LDS fallback builds 5 of the 7, including all four of yours (Series S profile, our stack). Bisecting with VICTORY_SKIP_PIPELINES and checking in PIX showed that 2da4beb386509b77 draws the title's textured wired glass, so the "smear" it adds is correct; only a hair edge overlapping that glass looked off, cause unknown.
  • Our own last-resort wave-wide form built 4 of the 7, cost fps and did not visibly reduce artifacts.

These are a few runs on one card, not a VKD3D_DEBUG=trace answer for vkd3d-proton, but on native D3D12 these four are WaveSize 64 refusals.

**@⁠HLVM04** on GitHub · 2026-11-26 03:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/1106#issuecomment-7182152233) A 32-lane data point on the "wave size is not the cause" conclusion. On an RTX 5070 Ti (wave32 only, Windows, native D3D12, fork 9376fd6), the same four IDs (`02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`) are among 7 compute pipelines refused with `E_INVALIDARG`, and all 7 are programs whose translated form declares WaveSize 64. "Translated" in the log only means a module was made; the refusal comes later, at pipeline creation, so `translate --warm` succeeding doesn't rule wave size out. What changed that for us: - #799's loose-LDS fallback builds 5 of the 7, including all four of yours (Series S profile, our stack). Bisecting with `VICTORY_SKIP_PIPELINES` and checking in PIX showed that `2da4beb386509b77` draws the title's textured wired glass, so the "smear" it adds is correct; only a hair edge overlapping that glass looked off, cause unknown. - Our own last-resort wave-wide form built 4 of the 7, cost fps and did not visibly reduce artifacts. These are a few runs on one card, not a `VKD3D_DEBUG=trace` answer for vkd3d-proton, but on native D3D12 these four are WaveSize 64 refusals.
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#1106
No description provided.