-
-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interlace both hands during matrix scan for faster performance
Right hand is scanned through i2c which incurs some delay, we can use this delay instead of sleeping when scanning the left hand. When the right hand isn't present fallback to sleep. And stop trying to re-init right hand multiple times per scan. I've been able to hit 380 matrix scans seconds on moonlander mark I and more than 2000 scans per seconds with right hand detached, without the change I measure it to be at 320 scans seconds in both cases. This work it inspired by: https://michael.stapelberg.ch/posts/2021-05-08-keyboard-input-latency-qmk-kinesis/
- Loading branch information
Showing
1 changed file
with
82 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters