From 830728aaeec62aa39eb5ee9607f20fddbe56ec40 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 10 Mar 2017 08:37:26 -0600 Subject: compute_bbt_ruler_scale should not be necessary for every redraw of the timeline. Works OK here without it... --- gtk2_ardour/editor_tempodisplay.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/editor_tempodisplay.cc') diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 64a9f72a45..e90c99baa6 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -299,7 +299,10 @@ Editor::redisplay_tempo (bool immediate_redraw) } if (immediate_redraw) { - compute_bbt_ruler_scale (leftmost_frame, leftmost_frame + current_page_samples()); + +//only recalculate bbt_ruler_scale on a zoom or snap-change; not every redraw; if a case is found where this is necessary, uncomment this line. +// compute_bbt_ruler_scale (leftmost_frame, leftmost_frame + current_page_samples()); + std::vector grid; if (bbt_ruler_scale != bbt_show_many) { -- cgit v1.2.3