jasoncoon / esp8266-fastled-webserver

GNU General Public License v3.0
712 stars 360 forks source link

Querying /all and /fieldsWithoutOptions endpoints freezes animation #250

Open balloob opened 2 years ago

balloob commented 2 years ago

For the Home Assistant integration we query the /all endpoint to get the state of the Fibonacci device. I just updated my Fibonacci256 to the latest version and now notice that the animation pauses between 0.5-3s when I query /all and /fieldsWithoutOptions.

Update That was not the latest version I updated to. I accidentally updated to https://github.com/jasoncoon/esp8266-fastled-webserver/tree/jcoon/hack-fix-all-json-truncation

See video for an example querying /all:

https://user-images.githubusercontent.com/1444314/163524920-8e4bfed4-7171-42a5-9abe-22cdafa31cf7.mov

For /fieldsWithoutOptions it feels the timeout is more often short than long but still can experience long freezes.

balloob commented 2 years ago

Now updated to 27d560d (builds)

I actually notice now that hitting /all does cause a tiny freeze, but maybe 0.2s. Definitely not as noticeable as on the hack-fix-all-json-truncation branch