netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=64fc9d95a31e55acc3a865e7d73d17ae5a8a0acd

commit 64fc9d95a31e55acc3a865e7d73d17ae5a8a0acd
Author: Alastair Poole <nets...@gmail.com>
Date:   Sun Sep 1 16:06:17 2019 +0100

    Make the UI more "responsive"
---
 src/ui.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/ui.c b/src/ui.c
index 5b8a9f0..2107731 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -50,7 +50,8 @@ _system_stats_thread(void *data, Ecore_Thread *thread)
         system_stats_all_get(results);
         ecore_thread_feedback(thread, results);
 
-        for (i = 0; i < ui->poll_delay * 2; i++)
+       // Let's wait 3/4 of a second before updating.
+        for (i = 0; i < 3; i++)
           {
              if (ecore_thread_check(thread))
                return;
@@ -61,7 +62,7 @@ _system_stats_thread(void *data, Ecore_Thread *thread)
                   break;
                }
 
-             usleep(500000);
+             usleep(250000);
           }
      }
 }

-- 


Reply via email to