AirtestProject / AirtestProject/Airtest

G.Device.touch touches as fast as possible on Unity Android build, but not on Unity Windows build

未关闭
#389 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
9.6k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
G.Device.touch is too slow, when used on Windows Unity Build, Compared to Android Unity Build

**To Reproduce**
Steps to reproduce the behavior:
1. Copy the below code
"""
from airtest.core.helper import G
for i in range(50):
G.DEVICE.touch([0.5,0.5])
print("Spam clicking on middle of the screen")
"""
2. Run the code, connected to a unity project on Android, remember how fast the message prints
3. Run the code, connected to a unity project on Windows, compare the slowness of the print message compared to android

**Expected behavior**
G.Device.touch should work like the Android version, clicking as fast as possible, so that I can use it to skip dialogues

**python version:** `python3.7"

**airtest version:** ` 1.2.0

**Smartphone (please complete the following information):**
- F1 Pocophone
- Android 9

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。