Another mergeLayers optimization

Since we pre-fill the cached `keyMap` with the value of `DefaultLayer`, there is
no need to check that layer again, looking for a non-transparent key. Whatever
is there, will be used anyway.

This way we save a cycle for keys that are transparent everywhere but the
default layer.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/108/head
Gergely Nagy 8 years ago
parent 0bdbe7385a
commit 67e906bc15

@ -64,7 +64,7 @@ Layer_::mergeLayers(void) {
for (uint8_t c = 0; c < COLS; c++) {
int8_t layer = highestLayer;
while (layer >= DefaultLayer) {
while (layer > DefaultLayer) {
if (Layer.isOn (layer)) {
Key mappedKey;

Loading…
Cancel
Save