summaryrefslogtreecommitdiff
path: root/gtk2_ardour/au_pluginui.mm
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-20 19:14:14 +0200
committerRobin Gareus <robin@gareus.org>2015-10-20 19:14:14 +0200
commit4953d09893ac185e7312d73a95c627221f99a82b (patch)
treeae134ae706037bf852d7918c7ad37ea509136843 /gtk2_ardour/au_pluginui.mm
parentc22a899c6d9ee0069b110fa0e2f10e07cf6947d0 (diff)
hack to keep UI responsive with heavy AU views.
Diffstat (limited to 'gtk2_ardour/au_pluginui.mm')
-rw-r--r--gtk2_ardour/au_pluginui.mm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm
index dbfbe11526..a964017499 100644
--- a/gtk2_ardour/au_pluginui.mm
+++ b/gtk2_ardour/au_pluginui.mm
@@ -244,7 +244,7 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert)
low_box.signal_size_allocate ().connect (mem_fun (this, &AUPluginUI::lower_box_size_allocate));
low_box.signal_map ().connect (mem_fun (this, &AUPluginUI::lower_box_map));
low_box.signal_unmap ().connect (mem_fun (this, &AUPluginUI::lower_box_unmap));
- //low_box.signal_expose_event ().connect (mem_fun (this, &AUPluginUI::lower_box_expose));
+ low_box.signal_expose_event ().connect (mem_fun (this, &AUPluginUI::lower_box_expose));
}
AUPluginUI::~AUPluginUI ()
@@ -813,10 +813,17 @@ AUPluginUI::lower_box_size_allocate (Gtk::Allocation& allocation)
gboolean
AUPluginUI::lower_box_expose (GdkEventExpose* event)
{
+#if 0 // AU view magically redraws by itself
[au_view drawRect:NSMakeRect(event->area.x,
event->area.y,
event->area.width,
event->area.height)];
+#endif
+ /* hack to keep ardour responsive
+ * some UIs (e.g Addictive Drums) completely hog the CPU
+ */
+ ARDOUR::GUIIdle();
+
return true;
}