summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-07-07 03:21:01 +0200
committerRobin Gareus <robin@gareus.org>2015-07-07 03:21:01 +0200
commit821cc80a35b7223ecdf872748fc61abab3e82c87 (patch)
treeccbe33fb33ed88e103e2448913f055cf89c69688 /gtk2_ardour
parent1e169ea3e8cad35db3ea533b2fb69e31478f00c2 (diff)
stationary PH: improve performance and reduce jitter.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 6a1ba289b6..42b3dfa613 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -5694,7 +5694,12 @@ Editor::super_rapid_screen_update ()
if (target <= 0.0) {
target = 0.0;
}
- reset_x_origin (target);
+ // compare to EditorCursor::set_position()
+ double const old_pos = sample_to_pixel_unrounded (leftmost_frame);
+ double const new_pos = sample_to_pixel_unrounded (target);
+ if (rint (new_pos) != rint (old_pos)) {
+ reset_x_origin (pixel_to_sample (floor (new_pos)));
+ }
}
}