I’m working on an app where most of the heavy lifting is done inside a class derived from both OpenGLRenderer and Component. This includes some renderOpenGL stuff as well as some regular JUCE UI sub-components like sliders, etc. The OpenGLRenderer subclass is the only top-level component added to my AudioProcessorEditor. This all works great.
However, today I changed things around so that the OpenGLRenderer had a sibling component added to the AudioProcessorEditor (both the OpenGLRenderer and the sibling were added to a FlexBox). The sibling includes a slider that’s not wired up to do anything, and when I drag that slider with the mouse, it has very visible stutter/jank.
When I move the exact same slider code into a sub-component of the OpenGLRenderer, it works great with no stutter/jank. Literally just moving 3 lines of code for the slider, again, it is not hooked up to do anything.
Is this an expected behavior? If an app uses an OpenGLRenderer, is it meant to be the top-level component, and sibling components will not perform well?
Thanks!
