Refactoring the GPU acceleration implementation

This commit is contained in:
Halim Qarroum
2023-03-13 15:44:52 +00:00
parent 7250977729
commit 6889f63650
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ 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"
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"