From a783af8d7f8aa27fa48fa26bf64606fd508ba1b9 Mon Sep 17 00:00:00 2001 From: Brian Barto Date: Wed, 11 May 2016 16:55:19 -0400 Subject: [PATCH] Performance tweak. The jumble loop smoother now. modified: src/nms.c --- src/nms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nms.c b/src/nms.c index d161b80..d5c79eb 100644 --- a/src/nms.c +++ b/src/nms.c @@ -171,10 +171,10 @@ char nms_exec(NmsArgs *args) { list_pointer = start; while (list_pointer != NULL && list_pointer->row <= termSizeRows) { mvaddstr(list_pointer->row, list_pointer->col, list_pointer->mask); - refresh(); list_pointer->mask = getMaskChar(); list_pointer = list_pointer->next; } + refresh(); usleep(JUMBLE_LOOP_SPEED * 1000); ++x; }