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

setStick extremely slow to take effect #40

Open
ariataylor96 opened this issue Jun 1, 2021 · 1 comment
Open

setStick extremely slow to take effect #40

ariataylor96 opened this issue Jun 1, 2021 · 1 comment

Comments

@ariataylor96
Copy link

First off - thank you so much for building this, I adore this library and it's helped me make some really fun projects. The base of one of those projects is building something that proxies controller input from a Linux PC to the Switch using sys-botbase. I've got everything working without any noticeable delay, except for the stick movement.

I've confirmed that I'm receiving stick events the moment they happen on my end and going through the socket immediately, but they take a few seconds to actually reflect on the switch. Buttons and d-pad functionality work great and are reflected instantaneously.

I believe this is because the library is trying to slide between stick values instead of jumping immediately? But I could be wrong.

@ariataylor96
Copy link
Author

I was wrong and the issue was more one of documentation. Moving an analog stick generates a lot of events very quickly, and with the sleep calls in the main loop/button loop, this translates to very real input lag.

Sending configure mainLoopSleepTime 0, configure buttonClickSleepTime 0, and configure keySleepTime 0 immediately after connecting made it much more responsive.

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