diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-16 04:01:42 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-16 04:25:20 +0100 |
commit | e4d3ebfb666e2c4e9cf134d8f3ed42152da343bf (patch) | |
tree | d0855bac03500a9dfca33b38949faf8da3ed5002 /libs/ardour/ardour/automatable.h | |
parent | 17a8a50e5816b48469907fa4aa00b50103f0f02d (diff) |
Optimize plugin-processing for non-automated params
Keep a dedicated list of automated parameters to evaluate in realtime.
This fixes a performance issue with plugins that have many controls
with only few of them being automated.
Diffstat (limited to 'libs/ardour/ardour/automatable.h')
-rw-r--r-- | libs/ardour/ardour/automatable.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/ardour/automatable.h b/libs/ardour/ardour/automatable.h index c7db1c7a21..fe14cacf77 100644 --- a/libs/ardour/ardour/automatable.h +++ b/libs/ardour/ardour/automatable.h @@ -26,6 +26,7 @@ #include <boost/shared_ptr.hpp> +#include "pbd/rcu.h" #include "pbd/signals.h" #include "evoral/ControlSet.hpp" @@ -88,7 +89,7 @@ public: virtual void non_realtime_locate (samplepos_t now); virtual void non_realtime_transport_stop (samplepos_t now, bool flush); - virtual void automation_run (samplepos_t, pframes_t); + virtual void automation_run (samplepos_t, pframes_t, bool only_active = false); virtual std::string describe_parameter(Evoral::Parameter param); @@ -112,7 +113,8 @@ protected: void can_automate(Evoral::Parameter); - virtual void automation_list_automation_state_changed (Evoral::Parameter, AutoState) {} + virtual void automation_list_automation_state_changed (Evoral::Parameter, AutoState); + SerializedRCUManager<ControlList> _automated_controls; int load_automation (const std::string& path); int old_set_automation_state(const XMLNode&); |