Skip to content

Commit

Permalink
GameScope: Force DXVK_HDR=1 if GameScope HDR is enabled (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed May 12, 2024
1 parent 59b421b commit 5ea6486
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lang/chinese.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ GUI_GSEMBEDDEDSET="嵌入式模式选项"
GUI_GSVRSET="VR 选项"
GUI_GSADVOPTIONS="高级选项"
GUI_GSHDR="启用 HDR"
DESC_GSHDR="启用HDR输出(需要启用 GameScope WSI 层以获得客户端的支持) - 如果使用支持HDR的显示器,GameScope 将使用色调映射的 SDR"
DESC_GSHDR="启用HDR输出(需要启用 GameScope WSI 层以获得客户端的支持) - 如果使用支持HDR的显示器,GameScope 将使用色调映射的 SDR - This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="为 SDR 启用宽幅伽马"
DESC_GSHDRWGFS="将 SDR sRGB 内容视为具有 Rec.2020 原色 - 以准确性为代价,使色彩更加生动"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
2 changes: 1 addition & 1 deletion lang/dutch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
4 changes: 2 additions & 2 deletions lang/english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down Expand Up @@ -1084,7 +1084,7 @@ DESC_GSFORCEHDROUTPUT="Force support and output for HDR10 PQ even if the current
GUI_GSPREFERVKDEVICE="Prefer Vulkan Device"
DESC_GSPREFERVKDEVICE="Prefer Vulkan device for compositing"
GUI_DXVK_HDR="DXVK HDR"
DESC_DXVK_HDR="Enable DXVK HDR support, requires compatible GPU and drivers - This option is ignored on Steam Deck Game Mode"
DESC_DXVK_HDR="Enable DXVK HDR support, requires compatible GPU and drivers - This option is ignored on Steam Deck Game Mode, and is ignored if GameScope HDR is enabled"
NOTY_CUSTPROG_REG="Starting custom program 'XXX' regularly"
NOTY_CUSTPROG_REG_ARGS="Starting custom program 'XXX' regularly with passed arguments"
NOTY_CUSTPROG_FORKED="Starting custom program 'XXX' forked into the background"
Expand Down
2 changes: 1 addition & 1 deletion lang/englishUK.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
2 changes: 1 addition & 1 deletion lang/french.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
2 changes: 1 addition & 1 deletion lang/german.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
2 changes: 1 addition & 1 deletion lang/italian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
2 changes: 1 addition & 1 deletion lang/polish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
2 changes: 1 addition & 1 deletion lang/russian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ GUI_GSEMBEDDEDSET="Embedded Mode options"
GUI_GSVRSET="VR options"
GUI_GSADVOPTIONS="Advanced options"
GUI_GSHDR="Enable HDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients) -- If a HDR supported display is used, GameScope will use tonemapped SDR"
DESC_GSHDR="Enable HDR Output (needs GameScope WSI layer enabled for support from clients). If a HDR supported display is used, GameScope will use tonemapped SDR -- This option also forces DXVK_HDR=1 to ensure games can use HDR"
GUI_GSHDRWGFS="Enable Wide Gammut for SDR"
DESC_GSHDRWGFS="Treat SDR sRGB content as having Rec.2020 primaries - Makes colors more vivid at the cost of correctness"
GUI_GSHDRSCNITS="HDR SDR Nits"
Expand Down
10 changes: 8 additions & 2 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20240503-2"
PROGVERS="v14.0.20240512-1"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -11731,7 +11731,13 @@ function GameScopeGui {
## FILTERING OPTIONS END ###

### HDR OPTIONS ###
if [ "$GSHDR" == "TRUE" ] ; then GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --hdr-enabled"; fi # Possible to check if any HDR displays available and warn if not?
# Possible to check if any HDR displays available and warn if not?
if [ "$GSHDR" == "TRUE" ]; then
GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --hdr-enabled";

writelog "INFO" "${FUNCNAME[0]} - GameScope HDR enabled, forcing DXVK_HDR=1"
export DXVK_HDR=1
fi
if [ "$GSHDRWGFS" == "TRUE" ]; then
# Don't enable GSHDRWGFS if GSHDR is not enabled first
if [ "$GSHDR" == "TRUE" ]; then
Expand Down

0 comments on commit 5ea6486

Please sign in to comment.