comparison layer/Colour3DPlotRenderer.cpp @ 1236:784c92f93fb6

Looks like we can be a bit more relaxed here
author Chris Cannam
date Fri, 27 Jan 2017 11:57:48 +0000
parents dd3901fe8623
children 2cc9e0e5df51
comparison
equal deleted inserted replaced
1235:dd3901fe8623 1236:784c92f93fb6
103 // will be fiddly for partial paints otherwise. 103 // will be fiddly for partial paints otherwise.
104 timeConstrained = false; 104 timeConstrained = false;
105 105
106 } else if (m_secondsPerXPixelValid) { 106 } else if (m_secondsPerXPixelValid) {
107 double predicted = m_secondsPerXPixel * rect.width(); 107 double predicted = m_secondsPerXPixel * rect.width();
108 /#ifdef DEBUG_COLOUR_PLOT_REPAINT 108 #ifdef DEBUG_COLOUR_PLOT_REPAINT
109 SVDEBUG << "Predicted time for width " << rect.width() << " = " 109 SVDEBUG << "Predicted time for width " << rect.width() << " = "
110 << predicted << endl; 110 << predicted << " (" << m_secondsPerXPixel << " x "
111 #endif 111 << rect.width() << ")" << endl;
112 if (predicted < 0.1) { 112 #endif
113 if (predicted < 0.2) {
113 #ifdef DEBUG_COLOUR_PLOT_REPAINT 114 #ifdef DEBUG_COLOUR_PLOT_REPAINT
114 SVDEBUG << "Predicted time looks fast enough: no partial renders" 115 SVDEBUG << "Predicted time looks fast enough: no partial renders"
115 << endl; 116 << endl;
116 #endif 117 #endif
117 timeConstrained = false; 118 timeConstrained = false;
1177 { 1178 {
1178 m_secondsPerXPixel = timer.secondsPerItem(xPixelCount); 1179 m_secondsPerXPixel = timer.secondsPerItem(xPixelCount);
1179 m_secondsPerXPixelValid = (xPixelCount > 10); 1180 m_secondsPerXPixelValid = (xPixelCount > 10);
1180 1181
1181 #ifdef DEBUG_COLOUR_PLOT_REPAINT 1182 #ifdef DEBUG_COLOUR_PLOT_REPAINT
1182 SVDEBUG << "seconds per x pixel = " << m_secondsPerXPixel 1183 SVDEBUG << "across " << xPixelCount << " x-pixels, seconds per x-pixel = "
1184 << m_secondsPerXPixel
1183 << " (enough data? " << (m_secondsPerXPixelValid ? "yes" : "no") 1185 << " (enough data? " << (m_secondsPerXPixelValid ? "yes" : "no")
1184 << ")" << endl; 1186 << ")" << endl;
1185 #endif 1187 #endif
1186 1188
1187 } 1189 }