fix(steam): Improve big picture mode performance on multi-gpu AMD laptops.

This commit is contained in:
Kyle Gospodnetich 2024-06-17 14:31:30 -07:00 committed by GitHub
parent 7687e97326
commit 6500fed617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,9 +13,9 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
fi
DGPU_OPTION=""
# If we're running this on a dGPU, disable accelerated cef
# If we're running this on a dGPU, apply workaround for blank Steam window
if [[ $(switcherooctl list | grep -o 'Device:' | wc -l) -gt 1 ]]; then
DGPU_OPTION="-cef-disable-gpu"
DGPU_OPTION="-system-composer"
fi
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
@ -28,4 +28,4 @@ if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
env LD_PRELOAD=/usr/lib/extest/libextest.so /usr/bin/steam "$DECK_OPTION" "$DGPU_OPTION" "$@"
else
/usr/bin/steam "$DECK_OPTION" "$DGPU_OPTION" "$@"
fi
fi