mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-10 02:57:00 +08:00
Opt: Slower screenshot speed in combat loading
This commit is contained in:
@@ -99,6 +99,7 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
|||||||
"""
|
"""
|
||||||
logger.info('Combat preparation.')
|
logger.info('Combat preparation.')
|
||||||
skip_first_screenshot = True
|
skip_first_screenshot = True
|
||||||
|
interval_set = False
|
||||||
|
|
||||||
if emotion_reduce:
|
if emotion_reduce:
|
||||||
self.emotion.wait(fleet_index=fleet_index)
|
self.emotion.wait(fleet_index=fleet_index)
|
||||||
@@ -126,6 +127,10 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
|||||||
continue
|
continue
|
||||||
if self.handle_story_skip():
|
if self.handle_story_skip():
|
||||||
continue
|
continue
|
||||||
|
if not interval_set:
|
||||||
|
if self.is_combat_loading():
|
||||||
|
self.device.screenshot_interval_set(self.config.Optimization_CombatScreenshotInterval)
|
||||||
|
interval_set = True
|
||||||
|
|
||||||
# End
|
# End
|
||||||
if self.is_combat_executing():
|
if self.is_combat_executing():
|
||||||
@@ -219,7 +224,6 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
|||||||
self.combat_manual_reset()
|
self.combat_manual_reset()
|
||||||
confirm_timer = Timer(10)
|
confirm_timer = Timer(10)
|
||||||
confirm_timer.start()
|
confirm_timer.start()
|
||||||
self.device.screenshot_interval_set(self.config.Optimization_CombatScreenshotInterval)
|
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|||||||
Reference in New Issue
Block a user