Performance Nit OSX

.. too many updates slowed it down *badly*
This commit is contained in:
Mark Liversedge
2016-03-12 15:28:51 +00:00
parent f518cf6f74
commit b60690e66a

View File

@@ -261,6 +261,8 @@ SolveCPDialog::selectAll()
}
}
static int _count=0;
void
SolveCPDialog::newBest(int k,WBParms p,double sum)
{
@@ -283,7 +285,7 @@ SolveCPDialog::current(int k,WBParms p,double sum)
ctLabel->setText(QString("%1").arg(p.TAU));
csumLabel->setText(QString("%1").arg(sum, 0, 'f', 3));
QApplication::processEvents();
if (!(_count++%50)) QApplication::processEvents();
}