Scope: clear display trace before update if trace time is 1s or higher (progressive display)

pull/263/head
f4exb 2018-10-27 19:45:42 +02:00
rodzic a2d8372262
commit f142c98e82
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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