Skip to content

Commit

Permalink
dlss: add script to switch to latest dlss preset (#135)
Browse files Browse the repository at this point in the history
* dlss: add script to switch to latest dlss preset

Signed-off-by: Peter Jung <[email protected]>

* dlss-swapper: Add exec

Signed-off-by: Peter Jung <[email protected]>

---------

Signed-off-by: Peter Jung <[email protected]>
  • Loading branch information
ptr1337 authored Feb 24, 2025
1 parent 012a488 commit b58713a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions usr/bin/dlss-swapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/bash

# This forces Nvidia DLSS to use the latest preset for SR, RR and framegen + updates the dlss dlls via ngx

export PROTON_ENABLE_NGX_UPDATER=1
export DXVK_NVAPI_DRS_NGX_DLSS_RR_OVERRIDE=on
export DXVK_NVAPI_DRS_NGX_DLSS_SR_OVERRIDE=on
export DXVK_NVAPI_DRS_NGX_DLSS_FG_OVERRIDE=on
export DXVK_NVAPI_DRS_NGX_DLSS_RR_OVERRIDE_RENDER_PRESET_SELECTION=render_preset_latest
export DXVK_NVAPI_DRS_NGX_DLSS_SR_OVERRIDE_RENDER_PRESET_SELECTION=render_preset_latest

# applied variables, now execute the rest of the command
exec "$@"
12 changes: 12 additions & 0 deletions usr/bin/dlss-swapper-dll
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/bash

# This forces Nvidia DLSS to use the latest preset for SR, RR and framegen + skips ngx updater

export DXVK_NVAPI_DRS_NGX_DLSS_RR_OVERRIDE=on
export DXVK_NVAPI_DRS_NGX_DLSS_SR_OVERRIDE=on
export DXVK_NVAPI_DRS_NGX_DLSS_FG_OVERRIDE=on
export DXVK_NVAPI_DRS_NGX_DLSS_RR_OVERRIDE_RENDER_PRESET_SELECTION=render_preset_latest
export DXVK_NVAPI_DRS_NGX_DLSS_SR_OVERRIDE_RENDER_PRESET_SELECTION=render_preset_latest

# applied variables, now execute the rest of the command
exec "$@"

0 comments on commit b58713a

Please sign in to comment.