# HG changeset patch # User Chris Cannam # Date 1565267618 -3600 # Node ID a2fbcfeb257292f7ca5e7ad80208eb2edce121f2 # Parent 2f505d843d144752e7634a52ce73580ed9f82651 Debug diff -r 2f505d843d14 -r a2fbcfeb2572 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Thu Aug 08 13:33:30 2019 +0100 +++ b/layer/TimeValueLayer.cpp Thu Aug 08 13:33:38 2019 +0100 @@ -894,6 +894,10 @@ sv_samplerate_t sampleRate = model->getSampleRate(); if (!sampleRate) return; +#ifdef DEBUG_TIME_VALUE_LAYER + SVCERR << "TimeValueLayer[" << this << ", model " << getModel() << "]::paint in " << v->getId() << endl; +#endif + paint.setRenderHint(QPainter::Antialiasing, false); // Profiler profiler("TimeValueLayer::paint", true); @@ -904,6 +908,16 @@ if (m_derivative) --frame0; EventVector points(model->getEventsWithin(frame0, frame1 - frame0, 1)); + +#ifdef DEBUG_TIME_VALUE_LAYER + SVCERR << "TimeValueLayer[" << this << "]::paint in " << v->getId() + << ": pixel extents " << x0 << " to " << x1 << ", frame extents " + << frame0 << " to " << frame1 << " yielding " << points.size() + << " points (of " << model->getAllEvents().size() + << " from frames " << model->getStartFrame() << " to " + << model->getEndFrame() << ")" << endl; +#endif + if (points.empty()) return; paint.setPen(getBaseQColor()); diff -r 2f505d843d14 -r a2fbcfeb2572 view/View.cpp --- a/view/View.cpp Thu Aug 08 13:33:30 2019 +0100 +++ b/view/View.cpp Thu Aug 08 13:33:38 2019 +0100 @@ -2166,7 +2166,7 @@ if (aligningModel) { alignmentModelId = aligningModel->getAlignment(); alignmentReferenceId = aligningModel->getAlignmentReference(); - SVCERR << "alignmentModelId = " << alignmentModelId << " (reference = " << alignmentReferenceId << ")" << endl; + SVCERR << "alignmentModelId = " << alignmentModelId << " (reference = " << alignmentReferenceId << ")" << endl; } else { SVCERR << "no aligningModel" << endl; }