mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 15:42:16 +00:00
perf: early init minitouch and MaaTouch for faster startup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user