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

Reconsider awaiting on sleep on pressKey/releaseKey when autoDelayMs == 0 #409

Open
phckopper opened this issue Jun 14, 2022 · 4 comments
Open

Comments

@phckopper
Copy link

phckopper commented Jun 14, 2022

Short overview

When calling pressKey/releaseKey, the sleep function is awaited no matter the delay set in autoDelayMs. However, due to the way sleep is implemented, using a setTimeout, a non-negligible delay is introduced nonetheless, and there are no guarantees on its upper bound.

Therefore, I propose that a special case is added to handle a delay of 0, so that applications that require low latency can run as fast as possible.

Use case

  • Low-latency applications
  • Interactive experiences
  • Video-game automation
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 15, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@himat
Copy link

himat commented Dec 27, 2022

@s1hofmann is this being prioritized? Just curious

@s1hofmann
Copy link
Member

@himat It's not my top priority at the moment.

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

3 participants