perf: early init minitouch and MaaTouch for faster startup

This commit is contained in:
2026-07-05 22:52:14 +08:00
parent 2f4eb5d047
commit dbc1789ae1
4 changed files with 79 additions and 15 deletions
+7
View File
@@ -87,6 +87,13 @@ class Device(Screenshot, Control, AppControl):
if not self.config.is_template_config and self.config.Emulator_ScreenshotMethod == 'auto':
self.run_simple_screenshot_benchmark()
# Early init
if self.config.is_actual_task:
if self.config.Emulator_ControlMethod == 'MaaTouch':
self.early_maatouch_init()
if self.config.Emulator_ControlMethod == 'minitouch':
self.early_minitouch_init()
# AAS only, use nemu_ipc if available
available = self.nemu_ipc_available()
logger.attr('nemu_ipc_available', available)