From c92fdd1c55b34aec97e3b87f3a67e8eee7455500 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 15 Jul 2021 18:29:19 +0200 Subject: [PATCH] ScopeVis: allow Projection cache only if in single stream mode --- sdrbase/dsp/scopevis.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/sdrbase/dsp/scopevis.cpp b/sdrbase/dsp/scopevis.cpp index c90ed8971..517bf13ae 100644 --- a/sdrbase/dsp/scopevis.cpp +++ b/sdrbase/dsp/scopevis.cpp @@ -1149,16 +1149,18 @@ void ScopeVis::updateMaxTraceDelay() itData->m_projectionType = Projector::ProjectionReal; } - // WTF is this cache ??? Fixes issue in #872 - // if (projectorCounts[(int) itData->m_projectionType] > 0) - // { - // allocateCache = true; - // (*itCtrl)->m_projector.setCacheMaster(false); - // } - // else - // { - // (*itCtrl)->m_projector.setCacheMaster(true); - // } + if (m_nbStreams <= 1) // Works only for single stream mode. Fixes #872 + { + if (projectorCounts[(int) itData->m_projectionType] > 0) + { + allocateCache = true; + (*itCtrl)->m_projector.setCacheMaster(false); + } + else + { + (*itCtrl)->m_projector.setCacheMaster(true); + } + } projectorCounts[(int) itData->m_projectionType]++; }