Skip to content

Commit

Permalink
issue #387 - be less agressive with polling interval
Browse files Browse the repository at this point in the history
* idle Shoes drops from one core (100%) to < 2%
  • Loading branch information
Cecil committed Nov 18, 2017
1 parent 235fe96 commit 980149c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shoes/native/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 980149c

Please sign in to comment.