Hey,
not really an 'issue' - I've taken your fire animation because I wanted to play with native/viper and I needed a MicroPython fire animation.. thanks!
I've modified it a little bit and managed to bring it down to ~300ms/frame using native/viper only. You can find it here in case you're interested:
Modifications involved removing some calls to int (surprisingly big impact), more uses of array, less nested arrays, drawing (3 or more) pixel blocks rather than each pixel individually and setting the clock to 240MHz.
Hi! Good job! It's great to see that you found a few ways to optimize it.
I haven't really touched micropython for a few years, but someday I'll give it a try!
Hey, not really an 'issue' - I've taken your fire animation because I wanted to play with
native
/viper
and I needed a MicroPython fire animation.. thanks! I've modified it a little bit and managed to bring it down to ~300ms/frame usingnative
/viper
only. You can find it here in case you're interested:https://projects.om-office.de/frans/m5stickc_multitool/-/blob/main/fire.py
Modifications involved removing some calls to
int
(surprisingly big impact), more uses ofarray
, less nested arrays, drawing (3 or more) pixel blocks rather than each pixel individually and setting the clock to 240MHz.