Advice/guidance on painting components on top of each other

Hi all,

Pretty familiar with Juce but relatively new to gui design based on feedback from the processor. Sorry if my title is vague. Here’s my situation:

I have one component that receives info from the processor and paints accordingly. I then have another component that is placed on top that is draggable. Positional information from this component can then update the processor. Individually they are working well, free of memory and CPU issues, sync messages being sent properly, etc…

However when the draggable component repaints itself over the lower component I get an uptick in memory - I can’t make the lower component opaque because it needs to change itself based on the audio.

So I’m sure I’m missing some well-defined UI practice - can anyone point me in the right direction? Thanks all!