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/fxceless--victory-fork!1287
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1287"
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?
@Garu667 on GitHub · 2026-11-26 10:47 UTC · original
Garu667:pr/799-rebased→main· +119 −6 · 4 files · 1 commits · openRebase of #799 by @Massive-Adrian onto current
main(06702fe), his commit kept as co-author. The CBV clamp of #799 is left out (main has its own, #911); main's wave-widelastform is kept and the loose fallback comes after it; its helper moved toemit/loose_lds.rssolower.rsstays under the asset policy's 512 KiB (a few of #799's comments shortened for the same reason).RTX 3080 10 GB, boat mission, same build otherwise (runs 58 / 63):
2cc4(reflection tiles: the blocky band on the boat is gone),2da4(window glass),369c,0238,6b82The fps cost is not the programs themselves: one of them writes the 2 KiB block at
0xdc07eab00that fills read, so fill-ahead switches off for every fill (submit thread waiting on the card 8.2 → 24.3 ms/frame). With the per-piece waiting of #1224 (VICTORY_FILL_HOT; we measured the same idea locally) it comes back to 9.6 fps and 10.9 ms of waits.The fallback is approximate, as #799 says, and on by default as in #799;
VICTORY_WAVE_LDS_LOOSE=0turns it off. No device loss; picture visibly better in our captures. Tests:victory-shader219 passed, clippy clean.🤖 Generated with Claude Code
06702fe) 4eb3ac94d4@slauko on GitHub · 2026-11-26 11:36 UTC · original
Ported to a Wine line (RTX 3080 Ti, vkd3d-proton
ec20719, uiliannn's base, the cell at ~4,950 draws a frame). It does exactly what it says, and the price is real but smaller on this stack:The refusals go. With the port,
02384a60fda6f2d0and2da4beb386509b77get a host pipeline instead ofRequired WaveSize range [64, 64], but supported range is [32, 32]— the retry line says how:loose LDS + local waves (APPROXIMATE, any mask): wave Some(32)— and the dispatch that was dropped every frame with them is gone. Counts from the two runs:host pipeline refused2 → 0,Required WaveSize range2 → 0, dropped dispatch 1 → 0; the loose-LDS rung is reached by exactly those two programs out of 93 successful wave32 downgrades in the run.The price, like-for-like. Same build, same environment, same stop, only
VICTORY_WAVE_LDS_LOOSEdiffers: 276.7 ms a frame in the cell with it off against 295.9 with it on (medians of the last 8 frame lines, 266–316 and 270–318). The whole delta is card time (on the GPU+19 ms),preparingand the draw count flat — the two programs are on the hot path here too, as you found on the 5070 Ti (10.0 → 8.6 fps).So my recipe leaves it off (
VICTORY_WAVE_LDS_LOOSE=0) and the port stays in the tree for picture work:CS_AlphTransmissionPrefilterMipis the window-glass prefilter, and that is the part a player sees.One thing that cost me an hour and may help the next porter: the shader cache is keyed on the translator's source hash, and a build script that found no source files wrote the empty FNV state into it, so every run was served stale DXIL and the port looked like a no-op. If a port seems to change nothing, check that the run's first translation line is not "0 translated, N already cached".
@Garu667 on GitHub · 2026-11-26 11:45 UTC · original
Thanks for porting it and for the like-for-like numbers (and the cache-key tip). Small precision: our 10.0 → 8.6 was on the RTX 3080 (Windows, native D3D12), and there the cost was not card time: one of the recovered programs writes the 2 KiB block at
0xdc07eab00that fills read, so fill-ahead switched off for every fill (+16 ms of submit-thread waits). With per-piece waiting (#1224's idea) it came back to 9.6. Your +19 ms on the GPU is a different cost, so leaving it off by default on your stack makes sense.@d0dev on GitHub · 2026-11-26 12:12 UTC · original
Tested on Windows 11, RTX 4070 Ti SUPER 16 GB (driver 616.92), Ryzen 7 5800X3D, 32 GB RAM. Clean build:
mainceb9e1f+ this PR only, same boat-mission save, close to the maintainer's test switches (TEXTURE_BACK,HEAP_WORKER,FILL_WAIT,RELAY=1,ASYNC_SUBMIT,QUEUE2,COPY_PLAIN,TEXTURE_NO_WAIT,INDIRECT_GATHER,BACK_OWN_VIEW,JOIN_PARTS,CARD_WINDOWS_MB=1024,LEVELS_ON_DEMAND,WINDOW_JUMP). Two launches, mean of the last 10 frame-log readings (~50 s on the boat) each:VICTORY_WAVE_LDS_LOOSE=0: 6.6 fps, GPU ~85 ms/frame. Glitches come back every 1–10 seconds: a patch of water under the boat vanishes for a moment, a shirt texture changes briefly.Preparing (~50 ms) and copy-back (~18 ms) are the same in both. On this card the loose programs cost about 26 ms of GPU time per frame (~18 % of the frame rate).
@Garu667 on GitHub · 2026-11-26 12:19 UTC · original
Thanks, that's a clear trade-off: on your 4070 Ti SUPER the fallback removes the glitches (water patch under the boat, flickering shirt texture) for ~26 ms of GPU time, and slauko saw +19 ms on a 3080 Ti, while on our 3080 the cost was a fill-ahead settle instead. Since it is likely one or two of the five recovered programs that carry most of that GPU time, I'll check which with
VICTORY_SKIP_PIPELINESone at a time and post the split here; if one is both costly and invisible, it could stay refused while the rest keep the fix.@Garu667 on GitHub · 2026-11-26 12:37 UTC · original
Split as promised, RTX 3080 10 GB,
ceb9e1f+ this PR (+ #1002, #1279), boat mission,VICTORY_CARD_METER_PIPELINES=1, ~3 min standing: none of the five recovered programs (2cc4c197ee29e291,2da4beb386509b77,369cbe906ea72764,02384a60fda6f2d0,6b82bc7d22016cb5) shows up in the per-pipeline card-time table, whose cutoff is 0.33 ms a frame (80.4 ms over 1,230 pipelines in all). So here each costs under ~0.3 ms of card time, under ~1.6 ms together. The +19 ms (3080 Ti, vkd3d) and +26 ms (4070 Ti SUPER) look specific to those stacks or scenes; if either of you can run the same meter, the table would show which program carries it.@d0dev on GitHub · 2026-11-26 14:04 UTC · original
Ran the meter as asked: clean build (
ceb9e1f+ this PR), RTX 4070 Ti SUPER, same boat save,VICTORY_CARD_METER=1 VICTORY_CARD_METER_PIPELINES=1 VICTORY_FRAME_LOG=1(the frame log is needed in a release build for the tables to appear), ~3 min standing, last table of each run:VICTORY_WAVE_LDS_LOOSE=0: 6.05 fps, GPU 93.6 ms; card time by pipeline 87.9 ms in 4,125 bindingsSame as on your 3080, none of the five recovered programs shows up in the table (cutoff ~0.5 ms here). Draws per frame are the same (3,923 vs 3,928), but the 44 pipelines in both tables go from 46.7 to 54.5 ms with ~14 % more bindings, and four compute pipelines appear only with the fallback on (
6d7fe7745ab9c6d80.73 ms,c7feccae4e01e4540.50,915ed81ea580a2760.47,660814153af431850.47). So here the cost looks indirect: what the recovered programs produce makes the rest of the frame do more work, rather than the programs themselves being expensive. One run each, so take the split as indicative.4eb3ac94d4tocc6bde7083@Garu667 on GitHub · 2026-11-26 16:07 UTC · original
Prologue cell check on the RTX 3080 (
58de9bfvs58de9bf+ this PR, same save, standing at the cell window ~1.5 min, 2 launches with the PR):5dc3b25986622949,6f225b641c5b0708,a10179ab7eda0dc3).live()trace now honours the per-instruction EXEC guard, so2da4beb386509b77translates exactly as "without early-outs" instead of through the loose fallback). On top of this PR it made no visible difference and the same fps (6.9), so it's a correctness nicety, not needed for this window.@Garu667 on GitHub · 2026-11-26 16:11 UTC · original
Rebased onto
93db653(cc6bde7). Heads-up:lower.rson main is already 528,801 bytes, over the asset policy's 512 KiB, sorepository_passes_policyfails there too. This PR now moves the lane analyses (lane_uniform,lane_regions,lds_meetings,lane_constant_masks) unchanged into a child moduleemit/lanes.rs:lower.rsdrops to 519,928 bytes andcargo xtask policypasses. 222 shader tests pass.cc6bde7083toa047cb4b13@Garu667 on GitHub · 2026-11-26 16:21 UTC · original
Change of plan: #1322 fixes the same size problem by moving
lower.rs's tests out, so I took my move of the lane analyses back out of this PR to avoid a conflict with it. This PR is again only the loose-LDS change, rebased onto93db653, 222 shader tests pass. Until #1322 is merged the size check stays red, as it is on main.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.