From 980149c5d588b5f4c5a683cceb4f41935f2181f5 Mon Sep 17 00:00:00 2001 From: Cecil Date: Fri, 17 Nov 2017 22:59:50 -0700 Subject: [PATCH] issue #387 - be less agressive with polling interval * idle Shoes drops from one core (100%) to < 2% --- shoes/native/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shoes/native/gtk.c b/shoes/native/gtk.c index 4c6ce447..2028adce 100644 --- a/shoes/native/gtk.c +++ b/shoes/native/gtk.c @@ -831,7 +831,7 @@ void shoes_native_loop() { //gtkrb_source = gtkrb_init_source(); //g_source_attach(gtkrb_source, (gpointer) NULL); //g_idle_add(gtkrb_idle, NULL); - g_timeout_add(2, gtkrb_idle, NULL); + g_timeout_add(10, gtkrb_idle, NULL); #endif GLOBAL_APP(app); if (APP_WINDOW(app)) gtk_main();