I noticed that after the switch to JUCE 5.2 from JUCE 4.2 - performance seemed a bit “sluggish”.
Did a lot of profiling and testing and JUCE 5 is actually performing better in many graphics areas than JUCE 4, but in some cases it does much, much worse.
It is hard to figure out where is this coming from, but one big hint is when drawing ARGB images.
I tested this with the official Juce Demo app and found out that 5.2 is almost 50% slower than v4.2
To do this test - simply open Juce Demo built with 5.2 and with v4.x, then go to Graphics: 2D Rendering and on the right hand side select Images: ARGB in both apps. Here is how my Activity monitor reports the CPU usage for both apps
Looking at v5.2 window - I can see the following
… while 4.2 looks like this
This is a HUGE difference and obviously v5.2 is struggling to keep up.
Does anyone have any explanation or possible workaround for this?
Should we expect that someone will look into this quickly?
This has a fairly big performance impact on any app built with 5.2.
This was tested on OS X 10.12 btw…