mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 17:52:09 +00:00
fix: optimize screenshot handling by removing unnecessary copy
This commit is contained in:
@@ -101,7 +101,7 @@ class Scrcpy(ScrcpyCore, Uiautomator2):
|
|||||||
if thread is None or not thread.is_alive():
|
if thread is None or not thread.is_alive():
|
||||||
raise ScrcpyError('_scrcpy_stream_loop_thread died')
|
raise ScrcpyError('_scrcpy_stream_loop_thread died')
|
||||||
if self._scrcpy_last_frame_time > now:
|
if self._scrcpy_last_frame_time > now:
|
||||||
screenshot = self._scrcpy_last_frame.copy()
|
screenshot = self._scrcpy_last_frame
|
||||||
return screenshot
|
return screenshot
|
||||||
|
|
||||||
@retry
|
@retry
|
||||||
|
|||||||
Reference in New Issue
Block a user