GPU/shader perf, DLSS FG 2x fallback, water volumetrics Wave32 fix & faster preload #1313
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1313
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1313"
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?
@dvGrab on GitHub · 2026-11-28 17:12 UTC · original
dvGrab:main→main· +171 −62 · 7 files · 1 commits · closed without mergingSummary
Tested on AMD Ryzen 7 5800X3D (8C/16T), 32 GB RAM, NVIDIA GeForce RTX 4070 Ti (12 GB, Driver 621.40), Windows 11 (1440p, DLSS Performance, Series S profile, AVX2 + ThinLTO release build).
1. DLSS Frame Generation 2x Fallback (
crates/victory-gpu/src/streamline.rs)code 38(invalid state, e.g. RTX 40 cards requested at 6x), automatically fall back to 2x (1generated frame) instead of leaving Frame Generation disabled (on=false) on every present.2. CPU Refresh & Write-Watch Hot-Path Optimizations (
watch.rs,shadow.rs,host.rs)watch::kept()(AtomicBool) and an early return at the top ofask_ahead(), skipping redundantVecallocations,published()scans,sort_unstable(), andask_ahead_done()write-locks across ~39 flushes/frame whileask_once()is active.j.aheadintervals (merge_ahead) and switched lookups innothing_new(),writes(),asked(), andask_rest()fromO(M)linear scans toO(log M)binary search (ahead_contains), removingO(N^2)work and duplicate kernel queries inask_rest().shadow::wide_each_count()with chunking (chunk = 8forn >= 64) and thread-local skipped counts to eliminate ~4,380/frame atomic cache-line bounces onnextandFLUSHES[2].AtomicBoolfast paths (has_pending,has_ranged) onShadowto skip ~5,441+ mutex lock/unlocks per frame innothing_new(),update(),writes_pending(),writes_pending_in(), andranged().3. Water Volumetrics Wave32 Fix (
crates/victory-shader/src/emit/mod.rs)TransmissionVolumetrics_bd25dcd5_Wrapped(6871d6e4b3ac9a10) andTransmissionVolumetrics_VolumePortalsOnly_bd25dcd5_Wrapped(a10179ab7eda0dc3) toscene_kernel. Both previously failed to emit on Wave32 (0 emitted); with wave-wide branches they now emit, validate (dxil.dll), and build D3D12 PSOs cleanly (2 emitted, 2 validated, 2 pipelines).4. Faster Shader & Pipeline Preloading (
apps/victory/src/warm.rs,apps/victory/src/translate.rs)AT_ONCEbatch size from40to200(5x fewer child process spawns and D3D12 device re-initializations).cores * 2 / 3(10on 16T) tocores - 1(15on 16T).IDLE_PRIORITY_CLASStoBELOW_NORMAL_PRIORITY_CLASS.warm-done.txtwrites withBufWriterflushed per chunk..zip,.7z,.rar,.xvd,.pdb,.log,.txt) intranslate::precompile.Measured Results
30.8–33.3 ms)25.9–29.2 ms)34/68,36/72)>50 ms)longest 37.1 ms)PREPlists' steps / refreshes14.2 ms/8.6 ms12.0 ms/7.0 msPREPwrite-watch asking4.6 ms3.8 msShader & Pipeline Preload Timings (Ryzen 7 5800X3D, 15 workers)
25,762shaders in 122 s (~2 min)6,752of6,763loading/slow pipelines (87.0 MB) in 9 sVerification
cargo test -p victory-gpu --lib streamline: 14 passed, 0 failedcargo test -p victory-gpu --lib watch: 47 passed, 0 failedcargo test -p victory-gpu --lib shadow: 36 passed, 0 failed (2 ignored)translate --jobs 1 --validate --pipelinesonTransmissionVolumetrics_bd25dcd5_Wrapped&TransmissionVolumetrics_VolumePortalsOnly_bd25dcd5_Wrapped: 2 emitted, 2 validated, 2 pipelines@Aniseto on GitHub · 2026-11-28 18:01 UTC · original
Ran the frame-generation fallback and hot-path test groups at
a0ddd05on an NVIDIA Blackwell desktop part:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (48a229cea 2026-09-01, pinned by
rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build.All three groups pass with the same counts the author reports from an RTX 4070 Ti. They cover the Streamline/multi-frame fallback, the lock-free
kept()andask_ahead()early return, the merged ahead-intervals, and the shadow merge paths. These are correctness tests; I did not repeat the author's 1440p release A/B, so no FPS number is claimed here. The PR has no comments yet, so this is the first datapoint in the thread and the first from an RTX 5070 Ti.Not tested: a retail title, FPS/latency A/B, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the commands above, wrote this report; the worktree was not modified; no game data was used.
@trustno1-coder on GitHub · 2026-11-28 19:23 UTC · original
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed