diff options
author | nick_m <mainsbridge@gmail.com> | 2016-10-19 03:56:43 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-10-19 03:56:43 +1100 |
commit | 715b17813026c6baf8a4adb4442c8586e114452c (patch) | |
tree | e75622cb7aaf71514518fbaf463735afa5d3b56c /gtk2_ardour/editor.h | |
parent | 208cb967e579d9177dce92086103c50f00b45b34 (diff) |
Improve bbt ruler drawing performance for large time ranges.
- when the timeline displays many bars, zoom/autoscroll
speed is improved by calculating the bbt ruler scale first
then requesting a suitably scaled grid.
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 15e4c7c0be..2c744fcf9f 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -890,7 +890,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD void update_just_timecode (); void compute_fixed_ruler_scale (); //calculates the RulerScale of the fixed rulers void update_fixed_rulers (); - void update_tempo_based_rulers (std::vector<ARDOUR::TempoMap::BBTPoint>& grid); + void update_tempo_based_rulers (); void popup_ruler_menu (framepos_t where = 0, ItemType type = RegionItem); void update_ruler_visibility (); void set_ruler_visible (RulerType, bool); @@ -953,7 +953,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD gint bbt_nmarks; uint32_t bbt_bar_helper_on; uint32_t bbt_accent_modulo; - void compute_bbt_ruler_scale (std::vector<ARDOUR::TempoMap::BBTPoint>& grid, framepos_t lower, framepos_t upper); + void compute_bbt_ruler_scale (framepos_t lower, framepos_t upper); ArdourCanvas::Ruler* timecode_ruler; ArdourCanvas::Ruler* bbt_ruler; |