Screen redraw and text

Hi all. So, need some help with "screen updates". For battery life it's good to not keep drawing things on every update. In my game I have sprites which are not drawing each frame only when changing, but text, how is the best way of doing text.

I have drawText on update right now so that means my (never changing) text updates each frame.

Thanks
Paul

The easiest way is to create a sprite and draw you text inside its draw method. That way, it will not be redrawn until moved/dirty.

The following post may be a good example of how to do it in Lua:

The latest SDK has new functions:

1 Like

Ooh I hadn't noticed these! That's really cool to have them, I will be able to replace parts of my custom library! I guess I need to spend more time reading the Release Notes