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

Causes stutter / lag in game (Starcraft 2) when keys are being pressed #653

Open
manuelseeger opened this issue Aug 2, 2024 · 0 comments

Comments

@manuelseeger
Copy link

I tried to build some automation around streaming with OBS and Starcraft 2 using keyboard. I have added a hotkey using
keyboard.add_hotkey().

While my Python program is running, the game Starcraft 2 lags/stutters when keys are being pressed. It looks like there is a small stutter about every ~3 seconds. I tried replacing keyboard.wait() with my own threading.Event wait() / set() and still registering the hotkey causes the same problem.

If no keys are being pressed, no stutter is noticable. If I spam keys then every ~3 seconds there is a stutter in the game.

I realize something like capturing keys can be difficult to make work together with games, but maybe thre is a simple fix or something I could do different to work around the problem?

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

1 participant