Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement batching #9

Open
Aparna-Sakshi opened this issue Dec 12, 2019 · 1 comment
Open

Implement batching #9

Aparna-Sakshi opened this issue Dec 12, 2019 · 1 comment

Comments

@Aparna-Sakshi
Copy link
Contributor

Whenever onSensorChanged() is executed, data is immidietly sent to server, instead of that we can store a particular number of data points (sensor data) and send array of data points rather than sending a single data point. As a result chance of missing data points would reduce and network traffic would also reduce leading to lesser lag and better performance.

@AkashKarnatak
Copy link
Contributor

The lag in the movement of mouse is not because we are missing data points, but due to some variables like pyautogui.MINIMUM_SLEEP are set to there default value (0.05 for this one). This means the mouse cursor will sleep for 0.05 sec after every movement. This is the reason for lag, equating this variable to 0 removes the lag. I have fixed this in my new pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants