Testing the DemoRunner.exe (last version of juce, and even 5.3.1), if you switch to the openGL renderer there are huge peaks of CPU (like 10-15%) while moving sliders (for example DSP/GainDemo).
This does not happen with the software renderer. (maximum 2% or 3%)
We have the same issues using it on our project.
Do you have any idea why this is the case ?
Windows or Mac OSX?
What’s your target OS?
If you get the latest Develop branch, and compile to target 10.8 at the lowest, you’ll see an OpenGL speed up.
Ok, then what’s your GFX card? And are you up to date with the drivers. Most people aren’t. There really should be a list of tick boxes when people ask questions like this.
We can’t guess what the problem is.
Is it really relevant ? I mean, we can’t verify if our customers have their drivers up to date.
We tested these issue on two different computers though. Maybe a better question could be : did these issue happens on all windows ?
PP is right, and you should be able to render an entire polygon filled plug-in many hundreds of times a second, possibly thousands, as these cards are effing fast!
So you’ll be better off running the VS profiler, to see what causing the wait.
The reason I asked about the drivers is that the demos run fine for me, so I was thinking maybe it’s a hardware thing.
EDIT: ah my mistake, I misread and thought you were running on mac.
I posted this another thread but reposting here because this annoyed the hell out of me.
Since Apple shipped their 10.14 SDK, in Release build there are some GPU debugging tools still enabled that slow down OpenGL a lot. Disabling these seems to bring me back to good performance.
Edit Schemes -> Run -> Options -> GPU Frame Capture
Side note: If you archive your build it won’t enable this