AirtestProject / AirtestProject/Airtest

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

Open
#389 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.