1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 10:58:21 +08:00

Pref: Reuse image array to improve memory performance

This commit is contained in:
LmeSzinc
2024-06-05 00:20:31 +08:00
parent 77d48937fc
commit 58202c6a40
34 changed files with 61 additions and 58 deletions

View File

@@ -178,7 +178,7 @@ class CampaignSos(CampaignRun, CampaignBase):
self.device.screenshot()
if self.appear(SIGNAL_LIST_CHECK, offset=(20, 20), interval=2):
image = self.image_crop(area_pad(entrance.area, pad=-30))
image = self.image_crop(area_pad(entrance.area, pad=-30), copy=False)
if TEMPLATE_SIGNAL_SEARCH.match(image):
self.device.click(entrance)
if TEMPLATE_SIGNAL_GOTO.match(image):