From b60690e66a7ae7e42a0f813f8b08f1663c444029 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 12 Mar 2016 15:28:51 +0000 Subject: [PATCH] Performance Nit OSX .. too many updates slowed it down *badly* --- src/Gui/SolveCPDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gui/SolveCPDialog.cpp b/src/Gui/SolveCPDialog.cpp index ee4687a92..be5d45947 100644 --- a/src/Gui/SolveCPDialog.cpp +++ b/src/Gui/SolveCPDialog.cpp @@ -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(); }