comparison view/View.cpp @ 382:06b5f110c5d2

* Speed up spectrogram painting by releasing mutex in FFTDataServer while calculating data prior to writing it, and by adding whole-column value query methods to FFT objects * Add paint cache to Thumbwheel -- repaints of this widget were slowing down the whole spectrogram repaint * More uses of MutexLocker (named and with debug) and more profile points * Make startup much quicker some of the time, with OSC server in place
author Chris Cannam
date Thu, 08 May 2008 14:46:22 +0000
parents f1e6204c1f17
children c1e5af9f2c3c
comparison
equal deleted inserted replaced
380:a6408c382616 382:06b5f110c5d2
366 View::getYForFrequency(float frequency, 366 View::getYForFrequency(float frequency,
367 float minf, 367 float minf,
368 float maxf, 368 float maxf,
369 bool logarithmic) const 369 bool logarithmic) const
370 { 370 {
371 Profiler profiler("View::getYForFrequency");
372
371 int h = height(); 373 int h = height();
372 374
373 if (logarithmic) { 375 if (logarithmic) {
374 376
375 static float lastminf = 0.0, lastmaxf = 0.0; 377 static float lastminf = 0.0, lastmaxf = 0.0;
1399 1401
1400 i->second->hide(); 1402 i->second->hide();
1401 1403
1402 } else { 1404 } else {
1403 1405
1404 i->second->setText(text); 1406 // i->second->setText(text);
1405 1407
1406 i->second->setValue(completion); 1408 i->second->setValue(completion);
1407 i->second->move(0, ph - i->second->height()); 1409 i->second->move(0, ph - i->second->height());
1408 1410
1409 i->second->show(); 1411 i->second->show();