comparison layer/Colour3DPlotRenderer.cpp @ 1164:f2f43802718b 3.0-integration

More timings and cache hit counts
author Chris Cannam
date Thu, 10 Nov 2016 09:58:28 +0000
parents ab169938832a
children c036560a7205
comparison
equal deleted inserted replaced
1163:ab169938832a 1164:f2f43802718b
287 287
288 ColumnOp::Column 288 ColumnOp::Column
289 Colour3DPlotRenderer::getColumn(int sx, int minbin, int nbins, 289 Colour3DPlotRenderer::getColumn(int sx, int minbin, int nbins,
290 bool usePeakCache) const 290 bool usePeakCache) const
291 { 291 {
292 Profiler profiler("Colour3DPlotRenderer::getColumn");
293
292 // order: 294 // order:
293 // get column -> scale -> normalise -> record extents -> 295 // get column -> scale -> normalise -> record extents ->
294 // peak pick -> distribute/interpolate -> apply display gain 296 // peak pick -> distribute/interpolate -> apply display gain
295 297
296 // we do the first bit here: 298 // we do the first bit here:
735 737
736 RenderTimer timer(timeConstrained ? 738 RenderTimer timer(timeConstrained ?
737 RenderTimer::FastRender : 739 RenderTimer::FastRender :
738 RenderTimer::NoTimeout); 740 RenderTimer::NoTimeout);
739 741
742 Profiler profiler("Colour3DPlotRenderer::renderDrawBuffer");
743
740 int divisor = 1; 744 int divisor = 1;
741 const DenseThreeDimensionalModel *sourceModel = m_sources.source; 745 const DenseThreeDimensionalModel *sourceModel = m_sources.source;
742 if (usePeakCache) { 746 if (usePeakCache) {
743 divisor = m_sources.peakCache->getColumnsPerPeak(); 747 divisor = m_sources.peakCache->getColumnsPerPeak();
744 sourceModel = m_sources.peakCache; 748 sourceModel = m_sources.peakCache;
975 } 979 }
976 } 980 }
977 } 981 }
978 982
979 if (!pixelPeakColumn.empty()) { 983 if (!pixelPeakColumn.empty()) {
980 984
981 for (FFTModel::PeakSet::const_iterator pi = peakfreqs.begin(); 985 for (FFTModel::PeakSet::const_iterator pi = peakfreqs.begin();
982 pi != peakfreqs.end(); ++pi) { 986 pi != peakfreqs.end(); ++pi) {
983 987
984 int bin = pi->first; 988 int bin = pi->first;
985 double freq = pi->second; 989 double freq = pi->second;