(experimental) loop2 to get fresh audio just before drawing
* introducing usermod::loop2() - runs just before strip.service() --> expecting to reduce lagging between audio and visual to an absolute minimum.
This commit is contained in:
@@ -213,6 +213,19 @@ void WLED::loop()
|
||||
handlePresets();
|
||||
yield();
|
||||
|
||||
#if defined(_MoonModules_WLED_) && defined(WLEDMM_FASTPATH)
|
||||
#ifdef WLED_DEBUG
|
||||
unsigned long usermod2Millis = millis();
|
||||
#endif
|
||||
usermods.loop2();
|
||||
#ifdef WLED_DEBUG
|
||||
usermod2Millis = millis() - usermod2Millis;
|
||||
avgUsermodMillis += usermod2Millis;
|
||||
if (usermod2Millis > maxUsermodMillis) maxUsermodMillis = usermod2Millis;
|
||||
#endif
|
||||
yield();
|
||||
#endif
|
||||
|
||||
#ifdef WLED_DEBUG
|
||||
unsigned long stripMillis = millis();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user