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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user