diff --git a/Graphs/gGraphView.cpp b/Graphs/gGraphView.cpp index 8a7a00f0..95ae3c56 100644 --- a/Graphs/gGraphView.cpp +++ b/Graphs/gGraphView.cpp @@ -1205,11 +1205,11 @@ gGraphView::gGraphView(QWidget *parent, gGraphView * shared) : masterlock=new QSemaphore(m_idealthreads); m_tooltip=new gToolTip(this); - for (int i=0;istart(); - } + //gt->start(); + }*/ lines=new GLBuffer(QColor(0,0,0,0),100000,GL_LINES); // big fat shared line list backlines=new GLBuffer(QColor(0,0,0,0),10000,GL_LINES); // big fat shared line list @@ -1474,14 +1474,14 @@ void gGraphView::paintGL() bool threaded; // Tempory hack using this pref.. - if (pref["EnableMultithreading"].toBool()) { // && (m_idealthreads>1)) { + /*if (pref["EnableMultithreading"].toBool()) { // && (m_idealthreads>1)) { threaded=true; - /*for (int i=0;iisRunning()) m_threads[i]->start(); - } */ - } else threaded=false; - //threaded=false; + } + } else threaded=false; */ + threaded=false; for (int i=0;iisEmpty() || !m_graphs[i]->visible()) continue; numgraphs++; @@ -1512,7 +1512,7 @@ void gGraphView::paintGL() //int thr=m_idealthreads; QTime time; time.start(); - if (threaded) { + /*if (threaded) { for (int i=0;iacquire(1); m_threads[i]->mutex.unlock(); @@ -1523,14 +1523,14 @@ void gGraphView::paintGL() masterlock->acquire(m_idealthreads); masterlock->release(m_idealthreads); - } else { // just do it here + } else { // just do it here */ int s=m_drawlist.size(); for (int i=0;ipaint(g->m_lastbounds.x(), g->m_lastbounds.y(), g->m_lastbounds.width(), g->m_lastbounds.height()); } - } + //} int elapsed=time.elapsed(); QColor col=Qt::black; if (!numgraphs) { diff --git a/Graphs/gGraphView.h b/Graphs/gGraphView.h index 458c13d8..77e36a60 100644 --- a/Graphs/gGraphView.h +++ b/Graphs/gGraphView.h @@ -415,7 +415,7 @@ protected: TextQue m_textque[textque_max]; int m_textque_items; int m_lastxpos,m_lastypos; - volatile int m_threadsrunning; + //volatile int m_threadsrunning; QString m_emptytext; signals: diff --git a/mainwindow.cpp b/mainwindow.cpp index ba1eb7c4..d673cb8e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -395,6 +395,9 @@ void MainWindow::on_oximetryButton_clicked() void MainWindow::on_actionEnable_Multithreading_toggled(bool checked) { pref["EnableMultithreading"]=checked; + if (checked) { + qDebug() << "This feature is disabled due to it currently being useless."; + } } void MainWindow::on_actionCheck_for_Updates_triggered()