mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
remove use of canvas freeze-queue-draw API
Measurement shows that this makes no actual difference to the speed of marking up the canvas for a redraw
This commit is contained in:
parent
3ff4d6c5ab
commit
0638d3c99e
1 changed files with 0 additions and 5 deletions
|
|
@ -1096,8 +1096,6 @@ MidiRegionView::redisplay_model()
|
||||||
|
|
||||||
Timing t;
|
Timing t;
|
||||||
|
|
||||||
group->canvas()->freeze_queue_draw ();
|
|
||||||
|
|
||||||
if (_active_notes) {
|
if (_active_notes) {
|
||||||
// Currently recording
|
// Currently recording
|
||||||
const samplecnt_t zoom = trackview.editor().get_current_zoom();
|
const samplecnt_t zoom = trackview.editor().get_current_zoom();
|
||||||
|
|
@ -1116,7 +1114,6 @@ MidiRegionView::redisplay_model()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_model) {
|
if (!_model) {
|
||||||
group->canvas()->thaw_queue_draw ();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1229,8 +1226,6 @@ MidiRegionView::redisplay_model()
|
||||||
_marked_for_velocity.clear ();
|
_marked_for_velocity.clear ();
|
||||||
_pending_note_selection.clear ();
|
_pending_note_selection.clear ();
|
||||||
|
|
||||||
group->canvas()->thaw_queue_draw ();
|
|
||||||
|
|
||||||
t.update ();
|
t.update ();
|
||||||
std::cerr << "REDISPLAY of " << region()->name() << " complete after " << t.elapsed_msecs() << std::endl;
|
std::cerr << "REDISPLAY of " << region()->name() << " complete after " << t.elapsed_msecs() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue