From f55acb422037bbfcdc6f4a7b103174b2e57cd9ca Mon Sep 17 00:00:00 2001 From: MistEO Date: Wed, 16 Nov 2022 01:17:47 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=AE=80=E5=8D=95=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=80=E7=82=B9=E6=BB=91=E5=8A=A8=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/tasks.json | 4 ++-- src/MeoAssistant/Controller.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resource/tasks.json b/resource/tasks.json index ad26409344..623c12ae99 100644 --- a/resource/tasks.json +++ b/resource/tasks.json @@ -6148,12 +6148,12 @@ "BattleUseOper": { "algorithm": "JustReturn", "preDelay": 200, - "postDelay": 100, + "postDelay": 150, "Doc": "pre 是从点击干员,到干员信息弹出来等待的时间;post 是干员上场,到设置朝向之间等待的时间" }, "BattleSwipeOper": { "algorithm": "JustReturn", - "preDelay": 200, + "preDelay": 500, "postDelay": 50, "Doc": "pre 是将干员滑动到场上的 duration 系数;post 是设置干员朝向滑动的 duration", "specialParams": [ diff --git a/src/MeoAssistant/Controller.cpp b/src/MeoAssistant/Controller.cpp index cdd13e4d74..e694be77df 100644 --- a/src/MeoAssistant/Controller.cpp +++ b/src/MeoAssistant/Controller.cpp @@ -1050,7 +1050,7 @@ bool asst::Controller::swipe_without_scale(const Point& p1, const Point& p2, int Minitoucher toucher(std::bind(&Controller::input_to_minitouch, this, std::placeholders::_1), m_minitouch_props); toucher.down(x1, y1); if (duration == 0) { - duration = 200; + duration = 150; } auto minitouch_move = [&](int _x1, int _y1, int _x2, int _y2, int _duration) { double accelerationx = acceleration_coef * static_cast(_x2 - _x1) / (_duration * _duration);