cache SEGMENT

actually its just a minor speedup, at least with -O2
This commit is contained in:
Frank
2024-10-20 01:06:18 +02:00
parent 7c6178418a
commit a99a54c9fa
3 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,13 @@
#include "FX.h"
#include "fcn_declare.h"
#ifdef WLEDMM_FASTPATH
#undef SEGMENT
#undef SEGENV
#define SEGMENT (*strip._currentSeg) // saves us many calls to strip._segments[strip.getCurrSegmentId()]
#define SEGENV SEGMENT
#endif
#define IBN 5100
// paletteBlend: 0 - wrap when moving, 1 - always wrap, 2 - never wrap, 3 - none (undefined)