mrozycki/rustmas

Implement variable frame rate for animations

Closed this issue · 0 comments

Currently each animation is polled for next frame 30 times a second. For some animations this might be unnecessary, for example more traditional animations, where the lights will change once a second, or the "blank" animation, where the colors don't change at all.

Allow animations to set their own frame rate (including 0 for completely static animations), and only generate new frames when necessary.