GameWithPixels / DiceFirmware

Pixels dice firmware code.
MIT License
15 stars 1 forks source link

Optimize animations memory footprint #25

Open obasille opened 2 years ago

obasille commented 2 years ago

For example "keyFrameCount" and "ledMask" of "Track" and "RgbTrack" can be combined to save 16 bits (i.e. keyFrameCount + padding). Also many offsets are 16 bits, but most of the time 8 bits would be enough. Also list of indices always start with the value 0, so it could be omitted.