From 93378924f0ab99b4b1c18a04a12b015130b82c68 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sun, 12 May 2013 19:42:03 +0000 Subject: [PATCH] Don't poll for user input so often --- main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index f7e069d..6797a22 100644 --- a/main.cpp +++ b/main.cpp @@ -170,14 +170,14 @@ int main (int argc, char** argv) current_handle = current_handle->next; } - if ((!DEBUG)&&(!tracemode)) - { - // handle user input - ui_tick(); - } if (needrefresh) { + if ((!DEBUG)&&(!tracemode)) + { + // handle user input + ui_tick(); + } do_refresh(); needrefresh = false; }