From: Soeren Apel Date: Tue, 3 May 2016 19:49:00 +0000 (+0200) Subject: DecoderStack: Force a viewport update more frequently X-Git-Tag: pulseview-0.4.0~297 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=add091eb7183fb399db139f29f3a0b4c85bd4273;p=pulseview.git 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. --- diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 441ff3c3..d4daa590 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_;