From add091eb7183fb399db139f29f3a0b4c85bd4273 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Tue, 3 May 2016 21:49:00 +0200 Subject: [PATCH] DecoderStack: Force a viewport update more frequently Updating the viewport every 65kib of input data causes the decode trace to make really big leaps, leaving the user with the feeling of a not-so-snappy user interface. We can easily change this by updating the trace every 1kib since the decoder and the UI thread are separate and the decode trace drawing is much faster since when the limit was originally set. --- pv/data/decoderstack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 441ff3c..d4daa59 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -55,7 +55,7 @@ namespace data { const double DecoderStack::DecodeMargin = 1.0; const double DecoderStack::DecodeThreshold = 0.2; const int64_t DecoderStack::DecodeChunkLength = 4096; -const unsigned int DecoderStack::DecodeNotifyPeriod = 65536; +const unsigned int DecoderStack::DecodeNotifyPeriod = 1024; mutex DecoderStack::global_srd_mutex_; -- 2.30.2