changeset 253:6a6b5a1a6c67

* 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 f88cb5bc5142
children 7d3c08e330f7
files main/MainWindow.cpp main/main.cpp
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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();
--- 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();