Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
15k stars 3.24k forks source link

Playlist duration time < 0.2 second needed #4164

Open Cryghast opened 1 month ago

Cryghast commented 1 month ago

image

Version: 0.15.0 b5

Can‘t set duration time to 0.1s,the limit is 0.2s

Currently I‘m using esp8266

Recently I’m working on a project that needs very smooth color change,should change the color every 0.1s or smaller scale, but playlist seems not support that

softhack007 commented 1 month ago

Hi,

Playlist minimal time is 0.2 seconds for technical reasons - especially for 8266 which is easily overloaded (and crashing) when frequently changing presets.

FYI preset parsing and activation currently takes between 50ms and 300ms, depending on flash speed, chip (8266 or esp32) and content of a preset. The interlock (semaphore) for the global JSON buffer - need when applying a preset - has a timeout of ~250ms. So changing presets more often than 5 times per second will usually not work, or even lead to crashes.

Did you try with "crossfade" and "palette transition" (LED prefereces) enabled? This should lead to smooth changing of colors. You might also need to switch on "off refresh" (led settings) to make the static color effect react smoothly.

Cryghast commented 1 month ago

If this is a hardware limit, then I guess it is hard to solve.