Various optimisations to speed up rec-enable.

git-svn-id: svn://localhost/ardour2/branches/3.0@6227 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-11-30 23:16:28 +00:00
parent 4497db3f1a
commit fddc11f556
18 changed files with 107 additions and 25 deletions

View file

@ -318,8 +318,7 @@ ProcessorBox::set_route (boost::shared_ptr<Route> r)
no_processor_redisplay = false;
_route = r;
connections.push_back (_route->processors_changed.connect (
mem_fun(*this, &ProcessorBox::redisplay_processors)));
connections.push_back (_route->processors_changed.connect (mem_fun (*this, &ProcessorBox::route_processors_changed)));
connections.push_back (_route->GoingAway.connect (
mem_fun (*this, &ProcessorBox::route_going_away)));
connections.push_back (_route->NameChanged.connect (
@ -924,6 +923,17 @@ ProcessorBox::choose_aux (boost::weak_ptr<Route> wr)
_session.add_internal_sends (target, PreFader, rlist);
}
void
ProcessorBox::route_processors_changed (RouteProcessorChange c)
{
if (c.type == RouteProcessorChange::MeterPointChange && c.meter_visibly_changed == false) {
/* the meter has moved, but it was and still is invisible to the user, so nothing to do */
return;
}
redisplay_processors ();
}
void
ProcessorBox::redisplay_processors ()
{