From b0b6ec37fd795e1288dd6924cd0f548e744db63a Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:05:47 +0100 Subject: [PATCH] support for benchmarking FastLed vs. WLED triginometry --- wled00/FX.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 238ce0ac33..01314346a1 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -25,6 +25,16 @@ #define indexToVStrip(index, stripNr) ((index) | (int((stripNr)+1)<<16)) +#if 0 // for benchmarking - change to "#if 1" to use less accurate, but 30% faster FastLed sin8 and cos8 functions +#define sin8_t sin8 +#define cos8_t cos8 +#define sin16_t sin16 +#define cos16_t cos16 +#define beatsin8_t beatsin8 +#define beatsin88_t beatsin88 +#define beatsin16_t beatsin16 +#endif + // WLEDMM replace abs8 by abs, as abs8 does not work for numbers >127 #define abs8(x) abs(x)