gpu/shader: fix ambient air cap and bitcode void panic, tune launcher for 10-15 FPS #56
No reviewers
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/DoubleGhosty--cool_fox!56
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-56"
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?
@NoLogicAlan on GitHub · 2026-11-27 01:29 UTC · original
NoLogicAlan:main→main· +50 −28 · 4 files · 1 commits · closed without mergingSubstitutes the last constant index instead of panicking with "use of a void value",
allowing the translation worker to complete without crashing.
Recovers full shader pre-translation (25,748 shaders cached).
air * constantwhen in constant ambientmode, and enable Role::Air whenever VICTORY_AMBIENT_AIR is non-zero. Eliminates the
milky white doorway and transition washout in cutscenes.
(VICTORY_STAGING_IDLE_MS=2000, VICTORY_WINDOW_IDLE_MS=5000, VICTORY_LIST_IDLE_TRIM_S=10)
to prevent RAM exhaustion at 31.8 GB and eliminate SSD pagefile thrashing.
VICTORY_FAST_CORES=2, and VICTORY_D3D12_BACKGROUND=0.
(VICTORY_CARD_BUFFERS_MIN_KB=64, VICTORY_CARD_BUFFERS_MB=1024, VICTORY_CARD_STEPS=2)
and enable pipelined relay (VICTORY_RELAY=2, VICTORY_LATE_WAIT=3).
and in-game at native resolution.
@steven-seagull27 on GitHub · 2026-11-27 01:57 UTC · original
I checked the bitcode fallback at
a9ba9d00with the two standalone deferred-ballot fixtures from #53. Each build starts from69718c00. The inputs are synthetic and use 128 threads.8e371e67Invalid record.Invalid type for value.In
bitcode.rs,funcsis the index where constants begin. The expressionfuncs.saturating_sub(1)can therefore return a function index. The resulting bitcode can get past the writer and still fail DXIL validation. The change in #53 resolves the deferred exchange at its definition. It should be possible to take that change independently of the ambient work here.To reproduce, copy the test-only files
crates/victory-shader/src/emit/wave64_tests.rsandcrates/victory-shader/src/emit/host.rsfrom #53 onto this head, setVICTORY_DXILto the SDK'sdxil.dll, and run the two filtersa_mask_ballot_in_a_uniform_predecessor_keeps_its_branchanda_deferred_ballot_in_a_wave_only_predecessor_is_refusedwithcargo test -p victory-shader --lib.AI-assisted testing.
@steven-seagull27 on GitHub · 2026-11-27 02:50 UTC · original
I also tested the constant-mode air change independently. A generated 9 × 7 × 3 texture passes through the production
Role::Airpath. I read all 189 packed R11G11B10_FLOAT texels back on an RTX 5080 and Windows’ built-in WARP. Both adapters gave the same results in all four cases.69718c00constant:0.8a9ba9d00constant:0.8constant:0.8For a gray texel initialized to (2, 2, 2), the nominal cap is 1.2. Both devices returned (1.1875, 1.1875, 1.1875), packed as
0x799e63cc, from input0x80200400. This verifies the constant-mode lighting change independently of the shader-writer issue above. Standalone test commitTo rerun on this PR head in PowerShell:
Set
VICTORY_D3D12_WARP=1for WARP andVICTORY_AMBIENT_AIR=0for the disabled control. When applying the same test to parent69718c00, also setVICTORY_TEST_PARENT_AIR=1to check the original behavior. AI-assisted testing.@DoubleGhosty on GitHub · 2026-11-27 05:21 UTC · original
Cherry-picked the bitcode void-value fallback (substituting last constant index), the constant-mode clear_air ceiling, the raise() NaN/inf guard, and the Role::Air enablement into main. Thank you for these fixes.
The launcher changes (THIN=1, thread pinning, memory trim defaults) were not taken as they are tuned for a specific CPU (i5-13400F) and override the existing NVIDIA-safe defaults (THIN=0, JOIN_PARTS=0). Users can set those env vars for their hardware.
@DoubleGhosty on GitHub · 2026-11-27 08:54 UTC · original
Already cherry-picked into main (
1bd5e1a3).Pull request closed