I’ve made a multipoint envelope for a customer, and it runs very smoothly on JUCE146 with about 20% CPU usage. I’ve even added some scrolling some exponential decay, so it looks like the scrolling on some iPhone.
Now I’ve ported this Component to JUCE152, it eats all CPU and just stutters very badly. The CPU usage of one core is 100% as soon as I start scrolling.
The functions I use for drawing are mostly: Graphics::fillAll(), Graphics::fillRect(), Graphics::drawLine(), Graphics::drawVerticalLine(), Graphics::drawHorizontalLine().
I’d say it runs about at least 4x less faster than the original.
Why is JUCE152 so slow when JUCE146 did its job very well?