diff options
author | David Robillard <d@drobilla.net> | 2018-01-21 20:53:39 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-22 00:20:19 +0100 |
commit | 1f3ea3054b7fe191431c012c92fbcd9e2ee771b6 (patch) | |
tree | 81648746f43fd5c971ac248d3ec0a9c0ae34229b /src/gui/App.cpp | |
parent | d9c5d89d230b204a90cca4dee4165ba6ebdf00fd (diff) | |
download | ingen-1f3ea3054b7fe191431c012c92fbcd9e2ee771b6.tar.gz ingen-1f3ea3054b7fe191431c012c92fbcd9e2ee771b6.tar.bz2 ingen-1f3ea3054b7fe191431c012c92fbcd9e2ee771b6.zip |
Speed up animation and update GUI at 30Hz
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r-- | src/gui/App.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp index de587a7d..9f1a29ca 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -404,10 +404,7 @@ void App::register_callbacks() { Glib::signal_timeout().connect( - sigc::mem_fun(*this, &App::gtk_main_iteration), 25, G_PRIORITY_DEFAULT); - - Glib::signal_timeout().connect( - sigc::mem_fun(*this, &App::animate), 50, G_PRIORITY_DEFAULT); + sigc::mem_fun(*this, &App::gtk_main_iteration), 33, G_PRIORITY_DEFAULT); } bool @@ -417,6 +414,8 @@ App::gtk_main_iteration() return false; } + animate(); + if (_messages_window) { _messages_window->flush(); } |