1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Pref: no copy of scrcpy screenshots

This commit is contained in:
LmeSzinc 2025-06-26 01:04:48 +08:00
parent b65932b404
commit d4f1a44d20

View File

@ -101,7 +101,8 @@ class Scrcpy(ScrcpyCore, Uiautomator2):
if thread is None or not thread.is_alive():
raise ScrcpyError('_scrcpy_stream_loop_thread died')
if self._scrcpy_last_frame_time > now:
screenshot = self._scrcpy_last_frame.copy()
# no copy
screenshot = self._scrcpy_last_frame
return screenshot
@retry