fix(gpu): send valid frame count on DLSS-G off and show real Streamline refusal reason #237
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/trustno1-coder--VIctory-NVIDIA!237
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-237"
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?
@BE29ZZ on GitHub · 2026-11-27 20:00 UTC · original
BE29ZZ:fix/dlssg-off-and-notice→main· +271 −66 · 3 files · 1 commits · openSummary
Fixes two Streamline / DLSS Frame Generation bugs in
crates/victory-gpu/src/streamline.rs:DLSS-G stuck on with
code=38(invalid state) on RTX 40 cards when 3x–6x is selected (addresses #138, item 4):present_begins, when turning DLSS Frame Generation off (e.g. menu/loading frames with no upscaling, or disabling FG),generated = wanted.max(2) - 1bypassed theif on && generated > 1clamp againstnum_frames_to_generate_max.num_frames_to_generate_max == 1) with 3x–6x selected in F1, Streamline rejectedslDLSSGSetOptions(DLSSG_OFF)withcode=38on every non-upscaled present, leavingcalls.framegen_onstucktrueand spamming errors (13,399 times in #138).dlssg_generated_framesso turning DLSS-G off always passesnum_frames_to_generate = 1(matchingresizing()and Streamline'snumFramesToGenerate <= numFramesToGenerateMaxcheck), while turning it on continues to clamp 3x–6x to the card's reportednum_frames_to_generate_max. Also updatesFG_TIMESand theDLSS Frame Generation switchedlog line consistently when off, and only logs the out-of-VRAM warning (code 39) when turning on.Misleading
NOT ON THIS CARD (RTX 40 AND UP)notice when Windows HAGS is disabled or driver/OS is out of date (addresses #178, #179):load_and_initdiscarded theslIsFeatureSupportedresult code andFactsonly trackedfiles_missing: boolvsdlss_fg_supported: bool, so RTX 40/50 cards with Windows Hardware-accelerated GPU Scheduling (HAGS) disabled (code 4,OS hardware scheduling disabled) printedDLSS FRAME GEN: NOT ON THIS CARD (RTX 40 AND UP)both on screen and in the console.NoDlssFg(andDriverOutOfDate/OsOutOfDate/Othervariants toNoDlss) with namedabi::RESULT_*constants sonotice_ofandvictory upscaler-checkreport the actual reason:code 4(HAGS off):DLSS FRAME GEN: WINDOWS GPU SCHEDULING (HAGS) IS OFF+TURN ON IN SETTINGS > DISPLAY > GRAPHICS, RESTART PCcode 2: driver out of datecode 3: Windows version out of dateVICTORY_THIN=1/VICTORY_ASYNC_SUBMIT=1): reports submission line requirementcodes 6, 7, 32: keepsDLSS FRAME GEN: NOT ON THIS CARD (RTX 40 AND UP)DLSS FRAME GEN: NOT AVAILABLE (SEE THE LOG)Verification
Tested locally on Windows 11 x64, NVIDIA GeForce RTX 3060, Rust 1.98.1 (no game data / no RTX 40/50 hardware for in-game DLSS-G runtime test):
cargo clippy -p victory-gpu --all-targets --lockedand--all-features: 0 new warnings in touched files.cargo test -p victory-gpu --lib --locked streamline::(default &--all-features): 13 passed, 0 failed (expandedthe_notice_says_what_the_card_doesandthe_sdk_version_is_2_14_16to cover allRESULT_*constants, HAGS/driver/OS/line/other notices with 52-char + font-glyph validation, anddlssg_generated_framesfor 0/2x–6x on/off and clamping).VICTORY_INDIRECT_REST=1 cargo test -p victory-gpu --lib --locked: 420 passed, 0 failed, 35 ignored.cargo test -p xtask --locked: 6 passed, 0 failed.AI-assisted; verified locally against unit and GPU tests (no game data).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.