DLSS: keep upscaling when a driver override shrinks the optimal render size #558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/558"
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 jhon17parizotto-byte on 2026-11-28T00:54:00Z.
For #446.
An NVIDIA App DLSS override answers every mode with its own optimal render size (960x540 for 1080p on an RTX 3060 here). A 1280x720 scene then fits none of the modes, so every upscaling is dropped and the picture goes black.
Change (
crates/victory-gpu/src/streamline.rs): when the scene size fits a mode's reported minimum..maximum range, offer that mode's maximum size instead of rejecting it. The sizes the call returns are now logged.VICTORY_DLSS_RANGE=0keeps the old behaviour.Tested: RTX 3060 12 GB, Xeon E5-2680 v3, Series S 1080p, DLSS Performance + DLSS FG 2x, with the driver override on. Upscaling stays on instead of going black. Rebased onto
64d4931;cargo check -p victory-gpuis clean (not re-run in game on this base).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-28T01:48:17Z.
Independent review on
3f4c5bc: the new fallback is computed with the currentcamera.render, but the cachedOption<[u32; 2]>is keyed only by(output, mode). The same source size can therefore get different results depending on which frame populated the cache.I exercised the actual
record()andpick_mode()path on CPU with simulated SDK callbacks. With 1920×1080 output, optimum 960×540 and maximum 1920×1080, a fresh cache accepted 1280×720. Feeding 960×540 first and then 1280×720 at the same output rejected the second frame. In the reverse direction the cached maximum persisted, and in a separate case a below-minimum source was selected after a valid frame primed the cache. These are synthetic selection results, not observed failures in-game.A narrow fix is to cache the raw optimum/min/max per
(output, mode)and compute eligibility after lookup using the currentcamera.render. That made the transition tests pass without additional SDK queries and preservedVICTORY_DLSS_RANGE=0. With identical bounds across all modes, a fresh 1280×720 run still chooses DLAA by the existing tie order; that is separate from the cache fix. No game files or physical GPU evaluation were used.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by jhon17parizotto-byte on 2026-11-28T02:00:33Z.
Thanks, confirmed. Fixed in
cd02cc3: the cache keyed by(output, mode)now holds only the optimum, minimum and maximum the SDK answered, and the range fallback is decided every frame with the currentcamera.render. No extra SDK queries;VICTORY_DLSS_RANGE=0still restores the old behaviour.cargo check -p victory-gpuis clean; not re-run in game yet.The DLAA tie order with identical bounds across modes is left out of this PR, as you noted it is a separate issue.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-28T08:13:10Z.
Thanks for the cache fix in
cd02cc3a. With a 1920×1080 output and synthetic settings that return a 960×540 optimum and a 1920×1080 maximum, the 1280×720 scene still printsoptimal Some([1920, 1080]). A small diagnostic patch reports both values:optimal Some([960, 540]), offered Some([1920, 1080]).I checked both scene-size orders. Each reused the six cached queries on the second frame. Both versions selected DLAA when all modes reported identical sizes. With standard settings, 1280×720 selected Quality and 960×540 selected Performance. With range fallback disabled, the reduced-optimum fixture rejected 1280×720. Each revision passed 11 frames across six synthetic sequences. This exercised the selection and the CLI message on CPU. Driver acceptance and rendered output remain unverified.
Diagnostic-only patch · Reproduction commands and output