From 102b3c81339ad00b2ee1615aa64a1c9c5a3501fa Mon Sep 17 00:00:00 2001 From: Halim Qarroum Date: Mon, 13 Mar 2023 15:51:38 +0000 Subject: [PATCH] Refactoring the GPU acceleration implementation --- scripts/start-emulator.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/start-emulator.sh b/scripts/start-emulator.sh index f4be0c2..8e1058c 100644 --- a/scripts/start-emulator.sh +++ b/scripts/start-emulator.sh @@ -28,10 +28,10 @@ echo no | avdmanager create avd -f -n android --abi "$ABI" -k "$PACKAGE_PATH" -- # If GPU acceleration is enabled, we create a virtual framebuffer # to be used by the emulator when running with GPU acceleration. if [ "$GPU_ACCELERATED" == "true" ]; then - echo "Running with GPU acceleration enabled"; - export DISPLAY=":0.0"; - export GPU_MODE="host"; - Xvfb "$DISPLAY" -screen 0 1920x1080x16 -nolisten tcp &; + echo "Running with GPU acceleration enabled" + export DISPLAY=":0.0" + export GPU_MODE="host" + Xvfb "$DISPLAY" -screen 0 1920x1080x16 -nolisten tcp & else export GPU_MODE="auto" fi