Propose LowStutter DLSS FG, VRAM headroom, and CPU hot-path fixes (upstream-rebased branches) #1683
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tiadiff on 2026-11-28T23:26:42Z.
Overview
Because
tiadiff/VIctory-NVIDIA-LowStutteris a standalone repository (fork: falseon GitHub) rather than a GitHub-linked fork, GitHub does not allow opening a cross-repo Pull Request directly from it without creating a new duplicate fork. To make merging or cherry-picking easy fortrustno1-coder/VIctory-NVIDIA, I pushed clean branches based directly onupstream/main(d4b5d51) with all fork-only files (README.md,.github/*) excluded:d4b5d51):https://github.com/tiadiff/VIctory-NVIDIA-LowStutter/tree/upstream-contrib/lowstutter-allhttps://github.com/tiadiff/VIctory-NVIDIA-LowStutter/compare/d4b5d51...upstream-contrib/lowstutter-all.patchModular Feature Branches (individually mergeable / cherry-pickable)
Each branch below sits directly on
d4b5d51and modifies only its own isolated files:upstream-contrib/dlss-fg-inworld-binkcrates/victory-gpu/src/streamline.rsDLSS_LAST_FRAMEinevaluate(). Intake_movie_plane_at(), active 3D presents within 2 frames of a DLSS SR evaluation bypass the movie-plane gate so in-world/UI Bink handles (signs, TVs) do not disable DLSS FG during gameplay, while full-screen cutscenes remain gated.upstream-contrib/dlss-fg-vram-headroomcrates/victory-gpu/src/resource.rsfirst_upload_decision(), capshard_budgetatbudget / 100 * 88(12% headroom) whenVICTORY_FRAMEGEN=1so Streamline/NGX retains room and avoidsout of VRAM (39)dropping DLSS + FG on 8-12 GB GPUs.upstream-contrib/host-flush-zero-arccrates/victory-gpu/src/host.rs,host/send.rs,shadow.rsFEW = 256and evaluatesnothing_newbeforeArc<Shadow>::clone,ask_ahead, andwide_each_frominBatch::flush(~85-89% unchanged spans, saving ~18k atomicArcops/frame); replaces 2-elementVecinBatch::flush(summed) with[u64; 2]; reuses athread_local!buffer inrelay_merge; mergessend::takedirty-range classification into a single pass.upstream-contrib/descriptor-u64-bitsetcrates/victory-gpu/src/descriptor/host.rsVec<bool>inHostHeap::dynamicwith packedu64bitsetDynamicBits(trailing_zeros/trailing_onesword scans, masked range set/clear,count_ones()release accounting) + exhaustive reference unit test.upstream-contrib/heap-ranges-bucketscrates/victory-gpu/src/draw.rsHeapRangesinto 16 denseslot % HEAP_ROUNDbuckets (O(bucket)forget_partinstead of scanningindex.len(),O(active)clear); skipsnext_unwatchedHashMapallocations whenVICTORY_UNWATCHED_FRAMES <= 1; logs view details ondevice_removed().upstream-contrib/pipeline-wait-oncecrates/victory-gpu/src/pipeline/make.rswaited_out(VICTORY_PIPELINE_WAIT_ONCE=1by default,0restores old behavior) so slow non-screen graphics pipelines do not repeat 500 ms stalls across consecutive frames while screen/bake/compute waits stay intact + unit test.upstream-contrib/shader-waterfall-shapecrates/victory-shader/src/resource.rsTracer::waterfall_shapefallback to multi-predecessor loop headers where every entry edge initializesTfromEXECand read-onlytbuffer_load/image_get_lodaccesses + Wave32 unit test.upstream-contrib/launcher-cpu-and-extremeapps/victory/src/play.rs,scripts/play-gta6-framegen.ps1apply_cpu_tuningintoplay.rs(24+ logical CPUs12/8/8;< 24keeps defaults8/6/4to avoid 8C/16T oversubscription,GTA6_NO_TUNE=1disables); updatesplay-gta6-framegen.ps1withVICTORY_INDIRECT_MERGE=1,< 24CPU caps (6/4/4), and EXTREME Modes 5/6 (VICTORY_LEVELS_ON_DEMAND=1,VICTORY_TEXTURE_STAGE_MS=12,VICTORY_TEXTURE_ROOM_PERCENT=62).upstream-contrib/xtask-policy-max-sizextask/src/policy.rsMAX_FILE_SIZEfrom640 * 1024to768 * 1024becausecrates/victory-shader/src/emit/lower.rsond4b5d51is667,523bytes (> 640 KiB), causingcargo xtask policyto fail otherwise.To fetch any single branch (for example the in-world Bink FG fix):
How it was tested
dlss-fg-inworld-binkon live 3D gameplay with in-world Bink signs):victory-nvidia-20261128-234822.log):victory-nvidia-20261129-000708.log, prior to adding the 12% VRAM headroom cap):000708) later hitslEvaluateFeature: warning: out of VRAM (39), which motivateddlss-fg-vram-headroom(12% headroom) andhost-flush-zero-arc(avoiding ~18kArcclone/drop ops/frame across the7,824 / 8,911unchanged spans); sustained multi-hour gameplay runs on those final two commits are still pending external verification, while unit tests and release builds pass cleanly.HeapRanges72k active views across 720k-slot sparse heap):1.23 msbaseline ->0.41 mswith 16-bucketHeapRanges(cargo test --release --locked -p victory-gpu --lib draw::heap_range_tests::spans_of_a_pass -- --ignored --nocapture).resource::tests,emit::waterfall_tests).cargo testand policy check onupstream-contrib/lowstutter-all(0b2fb36):cargo xtask policy:314 files okcargo test --release --locked -p victory-shader --lib resource::tests: 44 passed, 0 failedcargo test --release --locked -p victory-shader --lib emit::waterfall_tests: 7 passed, 0 failedcargo test --release --locked -p victory-gpu --lib descriptor::host::: 67 passed, 0 failedcargo test --release --locked -p victory-gpu --lib draw::: 16 passed, 0 failed (2 ignored)cargo test --release --locked -p victory-gpu --lib pipeline::make::: 13 passed, 0 failedcargo test --release --locked -p victory-gpu --lib shadow::: 48 passed, 0 failed (2 ignored)cargo test --release --locked -p victory-gpu --lib streamline::: 22 passed, 0 failedcargo test --release --locked -p victory-gpu --lib resource::: 29 passed, 0 failedcargo test --release --locked -p victory-gpu --lib host::: 146 passed, 0 failed (16 ignored)cargo test --release --locked -p victory --bin victory: 30 passed, 0 failedcargo test --release --locked -p xtask: 7 passed, 0 failedOverlap / Related Issues & PRs Checked
dlss-fg-inworld-binkfixes #1600 automatically viaDLSS_LAST_FRAMEwhile keeping real cutscenes gated.out of VRAM (39)):dlss-fg-vram-headroomcomplements #1677 / #856 by explicitly reserving 12% of the card budget infirst_upload_decisionwhenVICTORY_FRAMEGEN=1.host-flush-zero-arc,descriptor-u64-bitset, andheap-ranges-bucketstouchhost.rs,descriptor/host.rs, anddraw.rs, so they are split into standalone branches for conflict-free selective review.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-30T15:41:03Z.
Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.
If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.