From 4301d0d4348a057c44c829be00da0de5723453fb Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Thu, 10 Sep 2015 19:56:15 -0400 Subject: [PATCH] fix missing processed check --- src/visual/WaterfallCanvas.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/visual/WaterfallCanvas.cpp b/src/visual/WaterfallCanvas.cpp index e683e71..f4d4347 100644 --- a/src/visual/WaterfallCanvas.cpp +++ b/src/visual/WaterfallCanvas.cpp @@ -82,15 +82,18 @@ void WaterfallCanvas::processInputQueue() { // int numVis = visualDataQueue.size(); gTimer.update(); -// if (visualDataQueue.size() < 10 && !preBuf) { -// return; -// } else { -// preBuf = true; -// if (visualDataQueue.size() < 2) { -// preBuf = false; +// if (linesPerSecond >= 30) { +// if ((visualDataQueue.size() < (linesPerSecond/5)) && !preBuf) { +// return; +// } else { +// if (visualDataQueue.size() < (linesPerSecond/10)) { +// preBuf = false; +// } else { +// preBuf = true; +// } // } // } -// + double targetVis = 1.0 / (double)linesPerSecond; lpsIndex += gTimer.lastUpdateSeconds(); @@ -114,14 +117,14 @@ void WaterfallCanvas::processInputQueue() { } } } -// if (processed) { + if (processed) { Refresh(); -// } + } } void WaterfallCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) { // wxClientDC dc(this); - testTimer.timerTestFunc(); +// testTimer.timerTestFunc(); wxPaintDC dc(this); //#ifdef __APPLE__