Commit Graph

77 Commits

Author SHA1 Message Date
uye
0ac0ebaad2 perf: 优化 connect 逻辑 (#10571)
* chore: 优化 connect 对实体设备和已有错误路径下自动检测的支持

* perf: 优化 core 对 connect 成功的判断逻辑

may fix 类似 #10426 的异常情况
2024-09-12 13:07:36 +08:00
Rbqwow
67c10f1982 refactor: StopGame (#9658)
* perf: StopGame

* style: rename Intent to packageName

* chore: 不准不选择区服

* fix: 移除其他配置中的抽象 stop 匹配

* style: 统一驼峰

* style: 按照执行顺序重新排序

* feat: 添加回调和文档

* fix: 修复参数传入

* docs: 更新文档

* fix: merge

* chore: 把WSA的配置也改了

* chore: update submodule

---------

Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
Co-authored-by: Loong <wangl.cc@outlook.com>
2024-08-11 01:50:30 +08:00
uye
2cda6f747b fix: 开启 MuMu 截图增强后重启模拟器未重启 MAA 后出现截图失败
fix #10110
2024-08-06 18:34:41 +08:00
uye
545ce542a0 fix: fix smoking-test 2024-08-02 14:37:39 +08:00
Horror Proton
2762ef73a7 feat: fallback to General config 2024-08-02 13:32:51 +08:00
zzyyyl
4582dec4d6 fix: 修复连接前同步参数时日志报错的问题 (#9644)
m_controller is not inited
2024-07-13 10:02:16 +08:00
Horror Proton
4dabb49c0a refactor: use factory function instead of class 2024-06-19 17:06:43 +08:00
Horror Proton
fbcc8369a0 fix: fix coredump caused by screencap failure 2024-06-08 22:38:14 +08:00
uye
f011e8c06b chore: Add trace log for scaled coordinates in ControlScaleProxy click & swipe 2024-06-01 00:19:00 +08:00
uye
d4d7eeaef5 fix: call_command timeout时提前返回 std::nullopt
fix #9218
fix #9102
2024-05-27 18:23:39 +08:00
uye
fdbf2f19cf perf: auto start optimization + MAC fix (#9083)
I have no way to test for MAC
2024-05-17 09:27:50 +08:00
Horror Proton
9635cdf7f4 feat: add compile def to disable emulator extras 2024-05-13 18:35:50 +08:00
Constrat
ec64427038 revert: PlayToolsController returns 2024-05-12 16:02:29 +02:00
Constrat
35707bac2f chore: Add get_controller_type() to discern Android / PlayTools 2024-05-12 12:07:29 +02:00
Constrat
295181e4e0 fix: return specific values for auto starting methods 2024-05-12 11:10:43 +02:00
Constrat
fef2f56d39 feat: auto retry start on app startup crash (#8966) 2024-05-06 21:04:26 +01:00
MistEO
bafc8c3f71 feat: mumu extras (#8939)
Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2024-05-03 22:05:37 +08:00
status102
7bf76068eb perf(MaaCore): ScreenCost截图失败次数为0时,不返回fault_times字段 2024-02-08 17:04:13 +08:00
status102
c8dda4cc6e perf(MaaCore): ScreencapCost输出失败次数 2024-02-07 19:54:29 +08:00
Horror Proton
644d820315 fix: fix typo and undefined behavior of minmax 2024-02-07 19:09:56 +08:00
status102
ba4ab76fc0 fix: 启动时连续截图出错10次导致MAA崩溃 2024-02-07 18:09:27 +08:00
status102
e2a065c2c6 perf: 截图耗时计算最值、均值排除截图失败的耗时 2024-01-02 15:05:07 +08:00
dantmnf
7890cc7c12 fix: subprocess handle leak 2024-01-02 11:04:39 +08:00
Horror Proton
344ffa2be3 perf: update PosixIO::call_command (#7748)
* perf: block busyloop with epoll, do not reuse pipe

* perf: do not call getpid() on each line of log

* perf: epoll -> poll, do not waitpid on EAGAIN

* perf: remove poll
2023-12-25 05:38:31 +00:00
status102
72caff37d1 perf: 截图不成功时,耗时将记录为INT_MAX 2023-12-13 23:40:52 +08:00
status102
b09846ec22 feat: wpf设置-连接设置新增近期截图耗时 2023-12-13 22:41:18 +08:00
status102
a9d661c540 fix: 修复在截图最快方式检测不成功时,不输出数值 2023-12-11 11:07:45 +08:00
Horror Proton
b4980b6837 feat: add nodiscard on minitouch input functions [skip changelog] 2023-12-09 13:04:06 +08:00
Horror Proton
e084aeb346 fix: fix coredump when minitouch failed to restart 2023-12-08 13:56:51 +08:00
David
889cd0a3f3 perf: reduced screencap timeout (#7476)
refs:
https://github.com/MaaAssistantArknights/MaaAssistantArknights/pull/7473#issuecomment-1838440548
https://github.com/MaaAssistantArknights/MaaAssistantArknights/pull/7473#issuecomment-1838446255
2023-12-04 19:46:00 +01:00
Horror Proton
09b07a6d84 fix: fix crashing after minitouch fails to restart 2023-12-02 16:22:28 +08:00
status102
d813a8747b feat: 新增检测最快截图方式后输出截图方法和截图测试耗时 (#7441)
feat: 新增检测最快截图方式后输出截图方法和截图测试耗时
2023-12-01 15:15:40 +08:00
status102
dc555215ce feat: 新增检测最快截图方式后输出截图方法和耗时 2023-11-30 19:43:24 +08:00
ManicSteiner
f734464a52 feat: 返回桌面&模拟器返回桌面 2023-11-03 23:37:43 +08:00
Horror Proton
12b69a4c61 fix: coredump after failing to restart minitouch 2023-10-27 14:41:38 +08:00
zzyyyl
d6b377dca4 fix: call_command 外部中断时中止进程 2023-10-24 16:21:53 +08:00
zzyyyl
575d0412ce fix: 尝试修复 RawByNc 截图方式在点击停止后下一次继续时有概率操作延时很高的问题 2023-10-24 16:21:53 +08:00
zzyyyl
0199aa1042 perf: call_command() 在 wait_time < 0 时允许最后一次重试(以便输出调试信息) 2023-10-24 16:21:45 +08:00
MistEO
cd9c775386 chore: 改改log 2023-10-13 20:50:08 +08:00
MistEO
c8ed85b7ae fix: 当minitouch断开时自动重连 2023-10-13 20:48:42 +08:00
zzyyyl
9746efe0c3 style: format 2023-10-12 13:25:53 +08:00
w568w
33b3ccdd75 fix: subprocess hangs up if not draining the pipe when reading with recv_by_socket 2023-10-07 08:33:47 +08:00
shxyke
33830bcd2d feat: Add ThriftController 2023-10-04 09:53:16 +08:00
Horror Proton
223284efc6 fix: fix size check of android screencap 2023-05-28 14:52:58 +08:00
MistEO
b88be2252f fix: 修复不能部署干员的问题 2023-05-24 00:33:13 +08:00
Horror Proton
11498214e4 feat: log error on mismatched image size
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/4539
2023-05-23 20:57:37 +08:00
MistEO
6878bbbb17 chore: 添加一些adbSwipeXDistanceMultiplier的注释 2023-05-21 09:48:18 +08:00
MistEO
808665c979 fix: build error 2023-05-21 01:26:21 +08:00
MistEO
4253c87db7 fix: 全局减小adb滑动距离
糊屎!
2023-05-21 01:19:15 +08:00
Horror Proton
640603d561 perf: update signatures of functions in Controller 2023-04-24 00:55:26 +08:00