I’m trying to diagnose high cpu usage on macOS with vstgui 4.4. My application is standalone using the plugguieditor. The problem seems to be with a COffscreenContext that I’m using as a ring buffer for a scrolling meter. I’m attaching a pic showing the part of the UI with the scrolling meter and some information from instruments. The scrolling meter that uses the COffsreenContext as a ring buffer is outlined in red in the picture.
I’m running the application on a i3 mac mini, but I also see high cpu using on my 2017 MacBook Pro. The same code runs very smoothly on my PC. Any ideas?
Also, would I be better off using a CBitmap as my ring buffer and drawing to it using CBitmapPixelAccess? It seems that if I want to use vstgui 4.5 or greater, this might be my only option as COffscreenContexts work differently from 4.5 and up.