i implemented opengl via the instructions in this post. it was straightforward and worked, but it add ~200% to my cpu usage compared to not using it (and i’m not doing any sort of animation or crazy drawing). here’s some profile comparisons, first without opengl:
|13.31 s 80.8%|0 s| | threadEntryProc 0x954580| |2.52 s 15.2%|0 s| | Main Thread 0x9543c3|
|1.01 min 69.7%|0 s| | juce::ThreadPool::ThreadPoolThread::run 0x9527b0| |24.20 s 27.7%|0 s| | threadEntryProc 0x952772| |1.33 s 1.5%|0 s| | Main Thread 0x9525dc|
all i did was add
context.attachTo (*this) in my editor, seems like maybe this is a bug? i’m on the most recent version of osx/xcode/juce (10.14.2, 10.1, and develop).