diff --git a/lang/english.txt b/lang/english.txt index 47958459..65936548 100644 --- a/lang/english.txt +++ b/lang/english.txt @@ -1126,4 +1126,6 @@ DESC_GSHDRITM="Enable SDR to HDE inverse tone mapping - Only works for SDR input GUI_GSHDRITMSDRNITS="HDR Inverse Tone Mapping SDR nits" DESC_GSHDRITMSDRNITS="set the luminance of SDR content in nets used as the input for the inverse tone mapping process - Maximum is 1000 nits" GUI_GSHDRITMTGTNITS="HDR Inverse Tone Mapping Target Nits" -DESC_GSHDRITMTGTNITS="set the target luninance of the inverse tone mapping process - Max is 10000 nits" \ No newline at end of file +DESC_GSHDRITMTGTNITS="set the target luninance of the inverse tone mapping process - Max is 10000 nits" +GUI_GSRT="Use Realtime Scheduling" +DESC_GSRT="enable GameScope realtime scheduling" diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 08933f1a..45cd9f99 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -6,7 +6,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v12.12.20230215-17 (gamescope-the-adventure-continues)" +PROGVERS="v12.12.20230216-1 (gamescope-the-adventure-continues)" PROGCMD="${0##*/}" SHOSTL="stl" GHURL="https://github.com" @@ -9868,6 +9868,9 @@ function setGameScopeVars { # Expose Wayland (--expose-wayland) -- Checkbox GSWAYLAND="$( getGameScopeArg "$GAMESCOPE_ARGS" "--expose-wayland" "$GSWAYLAND" "1" "0" )" + + # Realtime Scheduling (--rt) -- Checkbox + GSRT="$( getGameScopeArg "$GAMESCOPE_ARGS" "--rt" "$GSRT" "1" "0" )" } # Set storage vars @@ -9973,6 +9976,7 @@ function GameScopeGui { --field="$GUI_GSFORCEHDROUTPUT!$DESC_GSFORCEHDROUTPUT ('GSFORCEHDROUTPUT')":CHK "$GSFORCEHDROUTPUT" \ --field="$GUI_GSPREFERVKDEVICE!$DESC_GSPREFERVKDEVICE ('GSPREFERVKDEVICE')":CHK "$GSPREFERVKDEVICE" \ --field="$GUI_GSWAYLAND!$DESC_GSWAYLAND ('GSWAYLAND')":CHK "$GSWAYLAND" \ + --field="$GUI_GSRT!$DESC_GSRT ('GSRT')":CHK "$GSRT" \ --button="$BUT_CAN:0" --button="$BUT_DONE:2" "$GEOM" )" case $? in @@ -10038,6 +10042,7 @@ function GameScopeGui { GSFORCEHDROUTPUT="${GSARR[52]}" GSPREFERVKDEVICE="${GSARR[53]}" GSWAYLAND="${GSARR[54]}" + GSRT="${GSARR[55]}" # Build the GameScope arguments string unset GAMESCOPE_ARGS @@ -10053,7 +10058,6 @@ function GameScopeGui { GSSHWH1="${GSSHWRES#*x}" GSSHWH="${GSSHWH1%%-*}" - ### GENERAL OPTIONS ### GAMESCOPE_ARGS="${GAMESCOPE_ARGS} -W ${GSSHWW} -H ${GSSHWH}" if [ "$GSFLR" -eq "$GSFLR" ] 2>/dev/null; then @@ -10264,6 +10268,10 @@ function GameScopeGui { if [ "$GSWAYLAND" == "TRUE" ]; then GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --expose-wayland" fi + + if [ "$GSRT" == "TRUE" ]; then + GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --rt" + fi ### ADVANCED OPTIONS END ### GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --"