Shape vs Image which is more effiecient?

Hi I’ve created buttons using ofRectRounded in my iPad app.

But since there are full of buttons on screen, CPU usage gets around 90%.

Will it reduce the CPU usage if I change all my ofRectRounded buttons to Image based?

yes, you can also use ofPath to create the buttons before hand and then only draw them on draw instead of generating the vertices every frame

Thank you so much arturo!

using ofPath really saved lots of CPUs! (99% -> 30%)

I still don’t understand why ofRectRounded eats up so much CPU usage.

I will never gonna use it again.