Skip to content

Conversation

@earlephilhower
Copy link
Owner

Use a numeric approximation to make powf much faster. Loss of accuracy isn't an issue in an audio output device.

Use a numeric approximation to make powf much faster.  Loss of accuracy
isn't an issue in an audio output device.
@earlephilhower
Copy link
Owner Author

Holy crap, ESP32-C3 sped up by >60% by moving from powf to the approximation. There must be some bustage in the ESP32C3's toolchain or something. I've double-verified the benchmark and had it play the actual jm_modzi.mid with 1mgm.h over I2S.

image

@earlephilhower earlephilhower merged commit 5a0375f into master Oct 23, 2025
22 checks passed
@earlephilhower earlephilhower deleted the midi11 branch October 23, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants