# HG changeset patch # User Chris Cannam # Date 1550149497 0 # Node ID e866102db32a604c136e5b86082e38bd615da444 # Parent 2487521e857b0cddae6b81892418f2c68b89dbdd Use zero-width pen when zoomed out - this seems to make a huge difference to speed when rendering on top of another layer, for some reason diff -r 2487521e857b -r e866102db32a layer/WaveformLayer.cpp --- a/layer/WaveformLayer.cpp Wed Jan 23 14:44:16 2019 +0000 +++ b/layer/WaveformLayer.cpp Thu Feb 14 13:04:57 2019 +0000 @@ -1029,6 +1029,9 @@ } double penWidth = 1.0; + if (v->getZoomLevel().zone == ZoomLevel::FramesPerPixel) { + penWidth = 0.0; + } if (m_model->isReady()) { paint->setPen(QPen(baseColour, penWidth));