Assorted micro-optimizations. #3

Merged
pyrex merged 1 commits from kistaro/chameleonic:microoptimization into main 2022-12-18 01:11:43 +00:00

1 Commits

Author SHA1 Message Date
ba878b501f
Assorted micro-optimizations.
Some of these are pure token optimizations, some spend tokens for performance. Function calls are particularly expensive in Pico-8, so using the table form of `pal` whenever changing multiple colors seems worth it.

Also fixes a bug in palette swapping.
2022-12-17 17:03:24 -08:00