mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Opt: Lower default screenshot interval on ldopengl
This commit is contained in:
parent
ff3971b023
commit
32649283ff
@ -233,6 +233,8 @@ class Benchmark(DaemonBase, CampaignUI):
|
|||||||
screenshot = remove('ADB_nc', 'aScreenCap_nc')
|
screenshot = remove('ADB_nc', 'aScreenCap_nc')
|
||||||
if self.device.nemu_ipc_available():
|
if self.device.nemu_ipc_available():
|
||||||
screenshot.append('nemu_ipc')
|
screenshot.append('nemu_ipc')
|
||||||
|
if self.device.ldopengl_available():
|
||||||
|
screenshot.append('ldopengl')
|
||||||
screenshot = tuple(screenshot)
|
screenshot = tuple(screenshot)
|
||||||
|
|
||||||
self.TEST_TOTAL = 3
|
self.TEST_TOTAL = 3
|
||||||
|
|||||||
@ -164,7 +164,7 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy, NemuIpc, LDOpenGL):
|
|||||||
logger.warning(f'Optimization.ScreenshotInterval {origin} is revised to {interval}')
|
logger.warning(f'Optimization.ScreenshotInterval {origin} is revised to {interval}')
|
||||||
self.config.Optimization_ScreenshotInterval = interval
|
self.config.Optimization_ScreenshotInterval = interval
|
||||||
# Allow nemu_ipc to have a lower default
|
# Allow nemu_ipc to have a lower default
|
||||||
if self.config.Emulator_ScreenshotMethod == 'nemu_ipc':
|
if self.config.Emulator_ScreenshotMethod in ['nemu_ipc', 'ldopengl']:
|
||||||
interval = limit_in(origin, 0.1, 0.2)
|
interval = limit_in(origin, 0.1, 0.2)
|
||||||
elif interval == 'combat':
|
elif interval == 'combat':
|
||||||
origin = self.config.Optimization_CombatScreenshotInterval
|
origin = self.config.Optimization_CombatScreenshotInterval
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user