arcade icon indicating copy to clipboard operation
arcade copied to clipboard

GUI: Some widgets are still using `arcade.draw_text`

Open einarf opened this issue 3 years ago • 1 comments

This really affects the performance when re-rendering the widgets. A worst case 100x cost compared to using a persistent Text or pyglet.text.Label instance.

einarf avatar Mar 27 '22 21:03 einarf

It looks like there are only 2 items remaining, and they're in arcade/gui/buttons.py. I don't see an elegant way to remove them yet since we'd need a way to update the text object when certain style attributes are changed. This might become clearer after I use the GUI event and property systems more.

pushfoo avatar Jul 01 '22 21:07 pushfoo

A quick search shows that this is already fixed

einarf avatar Mar 07 '23 04:03 einarf