Skip to content

Commit

Permalink
GameScope: add --rt option
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed Feb 15, 2023
1 parent 0982c08 commit a85fdcb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lang/english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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"
12 changes: 10 additions & 2 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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} --"
Expand Down

0 comments on commit a85fdcb

Please sign in to comment.