input_common: set input thread delay of joycon to 15ms
Signed-off-by: Ryan Wong <colorfulshark@gmail.com>
This commit is contained in:
parent
d6db422098
commit
7268dcdbca
1 changed files with 3 additions and 2 deletions
|
@ -128,8 +128,9 @@ void JoyconDriver::InputThread(std::stop_token stop_token) {
|
||||||
Common::SetCurrentThreadName("JoyconInput");
|
Common::SetCurrentThreadName("JoyconInput");
|
||||||
input_thread_running = true;
|
input_thread_running = true;
|
||||||
|
|
||||||
// Max update rate is 5ms, ensure we are always able to read a bit faster
|
// Max update rate is 5ms, but in normal the console asks Joy-Con for an update
|
||||||
constexpr int ThreadDelay = 2;
|
// every 15ms, this can help reducing CPU pressure on some weak platform
|
||||||
|
constexpr int ThreadDelay = 15;
|
||||||
std::vector<u8> buffer(MaxBufferSize);
|
std::vector<u8> buffer(MaxBufferSize);
|
||||||
|
|
||||||
while (!stop_token.stop_requested()) {
|
while (!stop_token.stop_requested()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue