mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
fix(steam): Improve big picture mode performance on multi-gpu AMD laptops.
This commit is contained in:
parent
7687e97326
commit
6500fed617
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user