Closed ericoporto closed 3 years ago
Apparently the most expensive part is the draw_control_frame
which spawns 5 rectangles :/
If the size of the button is small enough - say, width smaller than 50px, it may be best to draw two rectangles, one for the border+inner with border color, and then one for the inner part on top, instead of drawing 1 for each line and then the insides.
The button source code is not slow, but could be faster, we want to be able to handle hundreds of buttons. For now around 40 may already slow down things.