Skip to content

Suggestions for optimizations in fire animation #2

Description

@frans-fuerst

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:

https://projects.om-office.de/frans/m5stickc_multitool/-/blob/main/fire.py

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions