# Scarlet Nexus - DLSS Frame Generation (Streamline) config
# fg        : 1 = on, 0 = off
# mult      : 2 = 2x (1 generated frame). 3/4 need an RTX 50 series card (clamped automatically)
# stage     : 0 = pass-through, 1 = only init Streamline + log feature support, 2 = full frame generation
# log       : 1 = write SN_DLSSG_log.txt + Streamline log files next to the exe
# hudless   : 1 = experimental HUD-less capture (copy of the back buffer right before the Nth draw to it)
# hudlessdraw: N for hudless=1 (try 2,3,4,... until UI artifacts disappear; see log 'bbdraws')
# renderw/renderh/tol : internal render resolution of the game (depth/velocity buffers) +- tolerance. renderw=0 renderh=0 = AUTO (UE5 / TSR / dynamic screen percentage)
# velfallback : v19 1 = if no velocity buffer is found, run FG with camera-only motion vectors (dummy zero velocity); velwait = frames to wait first
# velfmt    : v19 extra DXGI format number accepted as velocity target (34=R16G16_FLOAT 37=R16G16_SNORM 16=R32G32_FLOAT 15=R32G32_TYPELESS, 0=none) - see the census lines in the log
# viewrect : v20 1 = use the real view rect (viewport on the depth buffer) instead of the whole depth/velocity buffer (fixes the stale band at the bottom/right edge with dynamic resolution), 0 = off
# c2pauto : v21 1 = switch ClipToPrevClip candidate if the locked one never moves while another does (see c2p-monitor in the log), 0 = off
# c2pidx    : v18 (UE5) which identity-like matrix after ViewToClipNoAA is ClipToPrevClip (0 = first). Only used by the automatic camera scan
# camauto   : 1 = automatically find the camera matrices in the UE4 view buffer when the offsets below do not fit this game (look for 'cam-scan: LOCKED' in the log)
# projoff / noaaoff : float index of ViewToClip / ViewToClipNoAA (116 / 132 for Scarlet Nexus)
# mvoff     : float index of ClipToPrevClip inside the UE4 view uniform buffer (492 for Scarlet Nexus)
# warmup    : frames before frame generation is switched on
# reflexsleep : 1 = also call slReflexSleep every frame, baseFpsLimit = cap for the BASE fps (0 = none)
# fgminfps : >0 = pause frame generation while the BASE fps is below this value (busy scenes), resume at value+8 (0 = never)
# reflexplace : 1 = Reflex sleep/markers at the start of the game frame (experimental)
# log       : 1 = normal log, 2 = + verbose Streamline log (debug only, slow)
# fgdelay : frames the camera must be valid in a row before FG is switched on again (default 30) - avoids on/off flapping while a level loads
# camstale : frames without a fresh camera before FG is switched off (default 30; v15 used 6 -> FG flapped on short hitches)
# bufmaxmb : max MB of upload buffers the camera tracker may keep alive (default 192)
# psoretry : 1 = (v17) if the GAME fails to create a pipeline state (E_INVALIDARG), write the details to the log and retry once without the cached blob; 0 = off
# cutdetect : 1 = detect camera cuts / FOV jumps (Special Shots, cutscenes) and reset the DLSS-G history (v23: FG is NO LONGER switched off for this - every FG off/on = 100+ ms hitch), 0 = off
# cutthresh : v23 ClipToPrevClip deviation x100 that counts as a cut (default 120 = 1.20; v22 used 25 and fired on every fast camera turn)
# cutfov    : v23 projection (FOV) change in percent that counts as a cut (default 8; v22 used 2)
# sldir     : folder containing sl.interposer.dll, sl.common.dll, sl.dlss_g.dll, sl.reflex.dll, sl.pcl.dll, nvngx_dlssg.dll (empty = exe folder)
# camhold   : v24 1 = if the camera view buffer is lost while FG is running (level load, streaming), KEEP FG on (last projection + identity ClipToPrevClip = optical flow only) instead of switching it off for the rest of the session
# camholdmax: v24 max frames to hold without a camera before FG is switched off (default 7200)
# camrescan : v24 frames without a camera before the tracker re-scans with relaxed checks (aspect check relaxed, scan even though offsets were locked). 0 = never
# reflexalways: v24 1 = slReflexSleep also while FG is off/paused/warming up (v23 behaviour; cost ~20 ms per frame at the 9 fps start of the game). 0 = only when FG runs
# fgminbackoff: v24 1 = every FG pause (fgminfps) doubles the number of good frames needed before FG resumes (stops on/off flapping, every switch = 100+ ms hitch)
fg=1
mult=2
stage=2
log=1
hudless=1
hudlessdraw=2
renderw=0
renderh=0
tol=100
mvoff=488
projoff=112
noaaoff=128
camauto=1
warmup=150
reflexsleep=1
baseFpsLimit=0
showconsole=0
sldir=
fgminfps=24
reflexplace=0
fgdelay=30
bufmaxmb=192
camstale=8
psoretry=1
c2pidx=0
velfallback=0
velwait=90
velfmt=11
viewrect=1
c2pauto=1
cutdetect=1
cutthresh=120
cutfov=8
camhold=0
camholdmax=7200
camrescan=90
reflexalways=0
fgminbackoff=1
# ---- v25 overlay / menu: press the overlay key IN GAME (default INSERT). Up/Down select, Left/Right change, Enter act. Changes are saved here automatically.
# overlay       : 1 = overlay + menu available, 0 = completely off (no keyboard hook, nothing drawn)
# overlaykey    : INSERT (default), F1..F12, HOME, END, PAGEUP, PAGEDOWN, PAUSE ... or a virtual-key number such as 0x2D
# showfps       : 1 = show the REAL fps (how fast the game renders)      showfgfps : 1 = show the DLSS-FG output fps      showframetime : 1 = frame time + 1% low
# overlaypos    : 0 top-left, 1 top-right, 2 bottom-left, 3 bottom-right   overlayscale / overlayopacity : percent
# overlayblock  : 1 = menu keys are not passed to the game while the menu is open   overlayhook : 0 = no keyboard hook (polling only)
# autosave      : 1 = menu changes are written back to this file
# autoreport    : 1 = if FG cannot work, write SN_DLSSG_DEBUG_REPORT.txt and tell the user to attach it to a GitHub Issue    msgbox : 1 = one-time message box when the overlay cannot show that notice
overlay=1
overlaykey=INSERT
showfps=0
showfgfps=0
showframetime=0
overlaypos=0
overlayscale=100
overlayopacity=80
overlayblock=1
overlayhook=1
autosave=1
autoreport=1
msgbox=1
# ---- v26 (game pipeline cache)
# psocache     : 1 = persistent cache of the GAME's own pipeline states (graphics + compute): the driver compiles every shader only ONCE, ever (file SN_DLSSG_psocache.bin next to the exe;
#                delete it to rebuild). The first launch after install / a GPU driver update still compiles normally (and fills the cache); every later launch loads the cache BEFORE the game
#                creates its device. Pipelines that carry the game's own cached blob are not touched.
# psocachemb   : size limit of that cache in MB (it is also held in RAM while the game runs)
psocache=1
psocachemb=384
# ---- v27
# preset      : custom (default: nothing applied) | quality | balanced | performance - sets fgminfps, fgdelay, camstale and mult in one go; single keys written BELOW this line still win
# fpscap      : OUTPUT fps cap: 0 = off, auto = display refresh - 3 (keeps VRR / G-Sync inside its window), or a number. Needs reflexsleep=1. Applies while frame generation runs
# fgkey/hudkey: hotkeys (this session only): frame generation on/off, HUD on/off. NONE = off. They need overlay=1
# hudless     : 0 = off, 1 = on (hudlessdraw=N), 2 = AUTO: measures the right N in the first minute of 3D gameplay, then saves hudless=1 + hudlessdraw=N here
# anticheat   : 1 = (default) the injector switches itself OFF when an anti-cheat is found. 0 = skip that check (offline / anti-cheat-free launch only, at your own risk)
# crashdump   : 1 = mini-dump + summary (SN_DLSSG_crash_*.dmp/.txt) when a crash happens inside this injector / Streamline / the driver
# autolearn   : 1 = camera offsets found by the scan (projoff/noaaoff/mvoff) are written back here so the next start skips the scan
preset=custom
fpscap=0
fgkey=F9
hudkey=F8
anticheat=1
crashdump=1
autolearn=1
# --- v29: extra DLSS-G options (all can also be changed in the in-game menu) ---
# menudetect  : 1 = DLSS-G recognises full-screen menus / loading screens itself and stops generating frames there (can reduce flicker in menus). 0 = off (default)
# dynres      : 1 = automatic: the DLSS-G dynamic-resolution flag is only sent once the render resolution has really changed 3+ times. A fixed-resolution game never gets it (Streamline: the flag costs performance there). 0 = off (default)
# reflexmode  : lowlatency (default, same as before v29) | boost (Low latency + Boost: NVIDIA says it can cost some fps) | off (not recommended while FG runs: FG needs Reflex)
# showvram    : 1 = HUD line with the VRAM DLSS-G estimates for itself (queried once per FG start / size change, not every frame). 0 = off (default)
menudetect=0
dynres=0
reflexmode=lowlatency
showvram=0
# ---- 1.0.0
# targetfps  : 0 = off (mult is used). N = target mode: the DLL picks the smallest multiplier (2x .. GPU max) that reaches N output fps with the measured base fps (e.g. 144). Needs frame generation on
# showgraph  : 1 = HUD frame-time graph of the last ~2 seconds of real frames (spikes = stutter)
# camfast    : 1 = (default) less CPU work per draw call once the camera of the frame is known; 0 = old behaviour
# hudless=2 is the default for new configs (auto-detects the HUD-less capture point in the first minute of gameplay and saves the result)
targetfps=0
showgraph=0
camfast=1
# ---- 1.1.0
# hookfast   : 1 = (default) less CPU/lock work in the injector's D3D12 hooks (resource barriers, render-target binds, descriptor copies); 0 = exact 1.0.0 behaviour (use it to compare)
# hookprof   : 1 = log how much CPU time the injector's own hook code uses per frame (hook-prof lines in SN_DLSSG_log.txt, every 600 frames; needs log=1); 0 = off
hookfast=1
hookprof=0

uimask=1
