when I draw 2000 lines one time every 100 ms, the cpu Occupancy is about 50%, it’s very high.
So I think is there another way to draw waveform fast.
Thanks.
The “real” way would be to create a juce::Image, grab the juce::Image::BitmapData, and directly manipulate the pixels. This is by far the fastest and easiest method to produce high quality results.
Well, the trick for extra speed would be to not use any Paths. If you can draw it just using calls to drawVerticalLine(), that’s how the AudioThumbnail class does it.