# HG changeset patch # User Chris Cannam # Date 1210257982 0 # Node ID 6a6b5a1a6c67a1fb90bacaa13b61e52a9a452f1a # Parent f88cb5bc51422f3437ed8e05cd2c46c51f05a91c * 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 diff -r f88cb5bc5142 -r 6a6b5a1a6c67 main/MainWindow.cpp --- a/main/MainWindow.cpp Thu May 01 13:37:39 2008 +0000 +++ b/main/MainWindow.cpp Thu May 08 14:46:22 2008 +0000 @@ -139,6 +139,8 @@ m_layerTreeDialog(0), m_keyReference(new KeyReference()) { + Profiler profiler("MainWindow::MainWindow"); + setWindowTitle(tr("Sonic Visualiser")); UnitDatabase *udb = UnitDatabase::getInstance(); diff -r f88cb5bc5142 -r 6a6b5a1a6c67 main/main.cpp --- a/main/main.cpp Thu May 01 13:37:39 2008 +0000 +++ b/main/main.cpp Thu May 08 14:46:22 2008 +0000 @@ -259,7 +259,7 @@ QTranslator qtTranslator; QString qtTrName = QString("qt_%1").arg(language); - std::cerr << "Loading " << qtTrName.toStdString() << "..." << std::endl; + std::cerr << "Loading " << qtTrName.toStdString() << "... "; bool success = false; if (!(success = qtTranslator.load(qtTrName))) { QString qtDir = getenv("QTDIR"); @@ -269,14 +269,17 @@ } } if (!success) { - std::cerr << "Failed to load Qt translation for locale" << std::endl; + std::cerr << "Failed\nFailed to load Qt translation for locale" << std::endl; + } else { + std::cerr << "Done" << std::endl; } application.installTranslator(&qtTranslator); QTranslator svTranslator; QString svTrName = QString("sonic-visualiser_%1").arg(language); - std::cerr << "Loading " << svTrName.toStdString() << "..." << std::endl; + std::cerr << "Loading " << svTrName.toStdString() << "... "; svTranslator.load(svTrName, ":i18n"); + std::cerr << "Done" << std::endl; application.installTranslator(&svTranslator); StoreStartupLocale();