LCD drawing very slow

I’ve just been playing around with the Wio terminal and tried to port some of my ESP32 projects over to it. I’ve noticed that drawing to the screen seems to be very slow.

My code draws about 40 rectangles to the screen which seems to be taking more than 200ms.

Any suggestions on how to improve performance? Would drawing to an offscreen bitmap be faster?

Interestingly, I’ve found another library that performs really well rendering in about 30ms.