Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

CPU efficient matrix animations #78

Open
zoe-codez opened this issue Apr 27, 2023 · 1 comment
Open

CPU efficient matrix animations #78

zoe-codez opened this issue Apr 27, 2023 · 1 comment
Labels
📈 enhancement New feature or request. Attach project label also 🚥 rgb-matrix @digital-alchemy/pi-matrix, pi-matrix-client, rgb-matrix

Comments

@zoe-codez
Copy link
Owner

Issue

Complex animations like a 6 layer border spin, and pulse laser appear to rate limit at a slower rate than the code is attempting to run at. This is likely related to it doing a clear & full redraw each time.

Proposed change

Add an incremental line generator that doesn't need to clear the screen between each render.
This should be done in a way that preserves the existing code, so the two techniques can be woven together if actual updates are needed

@zoe-codez zoe-codez added 📈 enhancement New feature or request. Attach project label also 🚥 rgb-matrix @digital-alchemy/pi-matrix, pi-matrix-client, rgb-matrix labels Apr 27, 2023
@zoe-codez
Copy link
Owner Author

BORDER_SPIN_LAYER_BOTTLENECK configuration option can probably be deprecated with this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📈 enhancement New feature or request. Attach project label also 🚥 rgb-matrix @digital-alchemy/pi-matrix, pi-matrix-client, rgb-matrix
Projects
Development

No branches or pull requests

1 participant