]> sigrok.org Git - pulseview.git/commit
Supply the segment ID when adding samples to optimize trace painting
authorSoeren Apel <redacted>
Fri, 5 Jan 2018 19:48:20 +0000 (20:48 +0100)
committerUwe Hermann <redacted>
Tue, 9 Jan 2018 23:34:39 +0000 (00:34 +0100)
commit8c3397413149b87d2755494fe73186f27edab369
treebcc230f4e18bd8c45aef3809c3ffaa36a560b9d2
parent85a702806a15852f3684645dffdc38cb30274481
Supply the segment ID when adding samples to optimize trace painting

Use case is as follows:
- Capture 20+ segments with ~500kS each
- Afterwards, enable conversion for a channel

Without this change, the converted logic will be repainted
20++ times because we are only told that new samples were
added but not which segment.

With this change, the logic trace is only painted when we
see that samples were added to the segment we're showing.
pv/data/analogsegment.hpp
pv/data/logicsegment.hpp
pv/data/segment.hpp
pv/views/trace/view.hpp
pv/views/viewbase.cpp
pv/views/viewbase.hpp