FrameworkComputer / qmk_firmware

Fork of QMK for the Framework Laptop 16
GNU General Public License v2.0
84 stars 24 forks source link

Measure and improve latency #8

Closed JohnAZoidberg closed 1 year ago

JohnAZoidberg commented 1 year ago

Using #define DEBUG_MATRIX_SCAN_RATE in config.h prints the matrix scans every second. Currently we're at 107Hz. If matrix_scan_custom returns immediately it's about 45kHz.

Approaches:

References:

JohnAZoidberg commented 1 year ago

Reduced the sleep after mux selection to 1us. Now we're at ~300Hz.

JohnAZoidberg commented 1 year ago

Not converting the temperature increases frequency to ~500Hz.

KarlK90 commented 1 year ago

Also consider using the per key asym_eager_defer_pk de-bouncing algorithm instead of the default global de-bouncing implementation. https://docs.qmk.fm/#/feature_debounce_type?id=selecting-an-included-debouncing-method

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know. // [stale-action-closed]