I’m currently working on a plugin and I have some performance issues that are bothering me.
I was debugging my app and adding a breakpoint in a part of the delete function when I realized that the main loop of rendering (even if there was no interactions with user, peripherals or anything) was calling the delete function.
In fact it appends it several different cases :
- when creating String (while searching a colour in ComponentHelpers::getColourPropertyId for instance)
- when calling save and restore graphic constext (the stack used to save the context use refcounted dynamic alloc)
I don’t think it’s the main issue of performance of my app.
BUT I’m still worried about such frequent calls to heap alloc in the rendering loop.
Is it new or not ?
Do you think it can be bad for performance or not ?
Is there any “juce setting” that can change those dyn alloc to preallocated alloc ?