-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small round of rgb matrix optimizations #5170
Conversation
I wish we had some unit tests to test these. |
@mechmerlin I mean, there is Drashna CI, just need to kick it. :D |
I wanted to keep this pr small (unlike my other one) for this round. I'm thinking about the changes to make this giant file more modular / testable especially within the context of the animation functions themselves. Current thinking is move each animation function into a separate code file, and update the function to take pointers to the necessary global values instead of accessing them via extern field. This way the function can be run directly with a set of test values and the results can then be validated without needing anything but just the animation code file itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, Works on both my planck light, and ergodox ez glow, without any issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hoisting work out of loop bodies seems worthwhile. +1
Latest version: #5304 |
Description
Small around of changes to the rgb matrix animation code hoisting a few more chunks of calculations out of the loops.
Types of Changes
Issues Fixed or Closed by This PR
Checklist