COREGRAPHICS + ASYNC and HISE
-
A dev I've been speaking with recently suggested I try the definition "JUCE_COREGRAPHICS_DRAW_ASYNC" to speed up the graphics of my plugin. It only works if OpenGL is disabled.
The definition goes into Projucer here:
Then you build HISE and test - but I saw no gains either in HISE or my plugin. Am wondering if there's a definition to disable OpenGL at the Projucer level, or a definition to enable ASYNC at HISE level.
Any insight would be very welcome!
-
@DanH I don't know what this does, but aren't the graphics rending already async since they are in the message thread?
-
but aren't the graphics rending already async since they are in the message thread?
Not if you're updating them from a non-deferred realtime callback.
-
@d-healey But isn't the onInit of the interface script already deferred? I always thought so but something tells me I was wrong all the time
-
@ustk On init is deferred, but if you call functions that update the GUI from on note for example, it will be triggered in the realtime thread. This is why I always suggest deferring all main interface scripts by default unless you have a really good reason not to.
-
@d-healey I'm relieved