Performance tweak. The jumble loop smoother now.
modified: src/nms.c
This commit is contained in:
parent
f1adafb03d
commit
a783af8d7f
@ -171,10 +171,10 @@ char nms_exec(NmsArgs *args) {
|
|||||||
list_pointer = start;
|
list_pointer = start;
|
||||||
while (list_pointer != NULL && list_pointer->row <= termSizeRows) {
|
while (list_pointer != NULL && list_pointer->row <= termSizeRows) {
|
||||||
mvaddstr(list_pointer->row, list_pointer->col, list_pointer->mask);
|
mvaddstr(list_pointer->row, list_pointer->col, list_pointer->mask);
|
||||||
refresh();
|
|
||||||
list_pointer->mask = getMaskChar();
|
list_pointer->mask = getMaskChar();
|
||||||
list_pointer = list_pointer->next;
|
list_pointer = list_pointer->next;
|
||||||
}
|
}
|
||||||
|
refresh();
|
||||||
usleep(JUMBLE_LOOP_SPEED * 1000);
|
usleep(JUMBLE_LOOP_SPEED * 1000);
|
||||||
++x;
|
++x;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user