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
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/fxceless--victory-fork#1106
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?
@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_INVALIDARGReady 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_INVALIDARGafter translating cleanlyBody:
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.dllfor 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:
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:
The four:
02384a60fda6f2d0,2cc4c197ee29e291,2da4beb386509b77,369cbe906ea72764. Note they are refused after translation, withE_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_INVALIDARGat 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'sVICTORY_WAVE_WIDE=1is 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=traceto 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.rsconstructsD3D12_COMPUTE_PIPELINE_STATE_DESCand callsCreateComputePipelineStatedirectly; 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 realdxil.dllavailable, an invalid blob would surface exactly this way —E_INVALIDARGat pipeline creation, after a successful translation line.That makes a CPU-only experiment possible, with no GPU involved and no game launch:
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.VKD3D_DEBUG=tracerun 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:and the same result with
VICTORY_HOST_WAVE=32(this host's real value, fromhost wave lanes min=32 max=32) and withVICTORY_HOST_WAVE=64: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=1is 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:
E_INVALIDARGat pipeline creation.Both are cheap to distinguish with one more measurement: a full
victory translate <shader archive> --validaterun (CPU only, but it walks every program), orVKD3D_DEBUG=traceon 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.
@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)
@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.
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 switchis 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.
@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 withE_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, sotranslate --warmsucceeding doesn't rule wave size out.What changed that for us:
VICTORY_SKIP_PIPELINESand checking in PIX showed that2da4beb386509b77draws the title's textured wired glass, so the "smear" it adds is correct; only a hair edge overlapping that glass looked off, cause unknown.These are a few runs on one card, not a
VKD3D_DEBUG=traceanswer for vkd3d-proton, but on native D3D12 these four are WaveSize 64 refusals.