mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-21 08:18:18 +00:00
Add: Use ldopengl if available
This commit is contained in:
parent
b0da726cbf
commit
a5c9724ef3
@ -192,6 +192,8 @@ class Benchmark(DaemonBase):
|
||||
click = ['ADB', 'Hermit', 'MaaTouch']
|
||||
if self.device.nemu_ipc_available():
|
||||
screenshot.append('nemu_ipc')
|
||||
if self.device.ldopengl_available():
|
||||
screenshot.append('ldopengl')
|
||||
|
||||
scene = self.config.Benchmark_TestScene
|
||||
if 'screenshot' not in scene:
|
||||
@ -232,6 +234,8 @@ class Benchmark(DaemonBase):
|
||||
screenshot = remove('ADB_nc', 'aScreenCap_nc')
|
||||
if self.device.nemu_ipc_available():
|
||||
screenshot.append('nemu_ipc')
|
||||
if self.device.ldopengl_available():
|
||||
screenshot.append('ldopengl')
|
||||
screenshot = tuple(screenshot)
|
||||
|
||||
self.TEST_TOTAL = 3
|
||||
|
@ -51,6 +51,10 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy, NemuIpc, LDOpenGL):
|
||||
logger.attr('nemu_ipc_available', available)
|
||||
if available:
|
||||
return 'nemu_ipc'
|
||||
available = self.ldopengl_available()
|
||||
logger.attr('ldopengl_available', available)
|
||||
if available:
|
||||
return 'ldopengl'
|
||||
return ''
|
||||
|
||||
def screenshot(self):
|
||||
|
Loading…
Reference in New Issue
Block a user