From aa7e88cf46f5cfedea710f3fa7f8f8dacc142504 Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Wed, 29 May 2019 21:56:19 +0700 Subject: [PATCH] Use gpu swiftshader_indirect and VM acceleration by default --- src/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index 6ec3ad3..a6f2474 100644 --- a/src/app.py +++ b/src/app.py @@ -204,9 +204,9 @@ def run(): cfg.write('\ndisk.dataPartition.size={dp}'.format(dp=dp_size)) if is_first_run: - cmd = 'emulator/emulator @{name} -gpu off -verbose -wipe-data {custom_args}'.format(name=avd_name, custom_args=custom_args) + cmd = 'emulator/emulator @{name} -gpu swiftshader_indirect -accel on -wipe-data -verbose {custom_args}'.format(name=avd_name, custom_args=custom_args) else: - cmd = 'emulator/emulator @{name} -gpu off -verbose {custom_args}'.format(name=avd_name, custom_args=custom_args) + cmd = 'emulator/emulator @{name} -gpu swiftshader_indirect -accel on -verbose {custom_args}'.format(name=avd_name, custom_args=custom_args) appium = convert_str_to_bool(str(os.getenv('APPIUM', False))) if appium: subprocess.Popen(cmd.split())