mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 17:28:50 -05:00
Scope: clear display trace before update if trace time is 1s or higher (progressive display)
This commit is contained in:
parent
a2d8372262
commit
f142c98e82
@ -390,6 +390,14 @@ void ScopeVis::processTrace(const SampleVector::const_iterator& cbegin, const Sa
|
||||
|
||||
if (m_traceStart) // start of trace processing
|
||||
{
|
||||
// if trace time is 1s or more the display is progressive so we have to clear it first
|
||||
|
||||
float traceTime = ((float) m_traceSize) / m_sampleRate;
|
||||
|
||||
if (traceTime >= 1.0f) {
|
||||
initTraceBuffers();
|
||||
}
|
||||
|
||||
// process until begin point
|
||||
|
||||
if (m_maxTraceDelay > 0) { // trace back
|
||||
|
Loading…
Reference in New Issue
Block a user