diff options
author | nick_m <mainsbridge@gmail.com> | 2016-10-17 03:19:02 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-10-17 03:19:02 +1100 |
commit | bf5933add60846818219402ebef0b0b47c7ce5f5 (patch) | |
tree | 9c557fc5e340cab95bf54575cfa9defe73860a5f /gtk2_ardour/editor_canvas.cc | |
parent | bcea5fc9d366f478622a13d8f587ebcf0e8d13e9 (diff) |
Performance: store NoteBase UIConfiguration colors between config changes.
Cumulative time in percent while wiggling the tempo lines rapidly.
Before:
MidiRegionview::update_sustained 12.02
NoteBase::base_color 6.43
MidiGhostRegion::update_note 3.12
Note::set 1.27
TempoMap::frame_at_quarter_note 0.59
_dynamic_cast 0.13
After:
MidiRegionview::update_sustained 10.49
MidiGhostRegion::update_note 5.57
Note::set 2.52
TempoMap::frame_at_quarter_note 1.13
NoteBase::base_color 0.17
_dynamic_cast 0.17
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 4fbe0d8444..6f0e26aef6 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -51,6 +51,7 @@ #include "keyboard.h" #include "editor_cursors.h" #include "mouse_cursors.h" +#include "note_base.h" #include "ui_config.h" #include "verbose_cursor.h" @@ -943,6 +944,8 @@ Editor::color_handler() refresh_location_display (); + NoteBase::set_colors (); + /* redraw the whole thing */ _track_canvas->set_background_color (UIConfiguration::instance().color ("arrange base")); _track_canvas->queue_draw (); |