Falcon Christmas

The Lab (Technical Talk) => Designer Troubleshooting and Help => Topic started by: austrisv on December 18, 2021, 02:39:30 PM

Title: help needed - effect lagging when played from fpp or xlights
Post by: austrisv on December 18, 2021, 02:39:30 PM
The Bar effect sometimes freezes, then runs faster. Similar behavior from both -  FPP on Raspberry Pi 3B+ or Xlights on laptop. 
though the subjective feeling the freeze is 'more' freezing when running from FPP.  
https://share.icloud.com/photos/0dc4t1JkjE6P7x4oQ9IU2mK8A (https://share.icloud.com/photos/0dc4t1JkjE6P7x4oQ9IU2mK8A)
Don't recall seeing the lag on spirals or few of other effects (but others might be less "animated").

About the setup
ws2811 leds connected to WLED on esp32. Wled says wifi signal strength >55%
In total 720 leds configured (during the candy cane bars only 4x100 are used).

20fps sequence at xLights side (though wled info is showing as 30-40fps(depending on effect)).

Will appreciate any hints or directions on how to debug. 
Does it look more like wifi/network issue (or clearly network)? Or two many leds on wled/esp? Any configuration tweaks I can try?  Have ordered esp32-poe from olimex for experiment, but will take some time before I get it.

Thank You in advance!
Title: Re: help needed - effect lagging when played from fpp or xlights
Post by: JonD on December 21, 2021, 05:37:47 PM
The Wifi feature is designed for management and master/remote solutions where you copy the programming to a SD card on the controller.  Trying to play a show directly from xlights or FPP from a wireless connection will usually lag.  Try connecting with a copper ethernet connection if you are not already and that should resolve your problem.
Title: Re: help needed - effect lagging when played from fpp or xlights
Post by: pixelpuppy on December 24, 2021, 05:51:48 PM
Quote from: austrisv on December 18, 2021, 02:39:30 PM20fps sequence at xLights side (though wled info is showing as 30-40fps(depending on effect)).
Something seems very fishy there. If the sequence it really set for 20fps (50ms) then WLED should not be getting data at 30-40fps

Are you sure the sequence is not set for 40 FPS?   I don't think WLED can keep up at that rate and that would explains seeing variable 30-40fps rates and also lagging
Title: Re: help needed - effect lagging when played from fpp or xlights
Post by: austrisv on December 30, 2021, 02:23:49 AM
Quote from: JonD on December 21, 2021, 05:37:47 PMThe Wifi feature is designed for management and master/remote solutions where you copy the programming to a SD card on the controller.  Trying to play a show directly from xlights or FPP from a wireless connection will usually lag.  Try connecting with a copper ethernet connection if you are not already and that should resolve your problem.
ha, this is a good point and easy to fix. I was somehow so concentrated on thinking of how to make my ESP32 wired that forgot of RPi beeing wifi as well. Will give it a try tonight and report back. Thank You!
Title: Re: help needed - effect lagging when played from fpp or xlights
Post by: Spottedbb on December 30, 2021, 12:46:44 PM
Also check that Disable Wifi sleep is checked under Wifi Setup. I was having the same problem with the show and this was not checked.
I am running 9 WLED ESP32s and after checking this, they all run pretty smoothly now.
Title: Re: help needed - effect lagging when played from fpp or xlights
Post by: austrisv on December 31, 2021, 01:23:27 PM
@Spottedbb disable Wifi is checked, that I found&tried as first thing.

I lost y-day night trying to figure out why FPP is not playing when I disable wlan0 and leave it on eth0 only ... was considering looking for firewall rules or smtg ... took a while before I spotted the "source interface" dropdown in the channel outputs screen. ha :D
Had a spare Mikrotik hap ac lite. RPi connected over LAN. WLED's over WiFi interface.
The effect lag is still there - both, on 4x100 pixel candy canes with 'bar' and on 126px snowman with 'fan'.
Maybe it's more noticeable on the snowman (in past those were canes). Will attribute it to routers position and thus wifi network coverage ("snowman" has the lowest signal strength). Can't await olimex esp32-poe to try out wired wled.
Title: Re: help needed - effect lagging when played from fpp or xlights
Post by: austrisv on December 31, 2021, 01:25:34 PM
@pixelpuppy your comment about fps don't let me sleep. It is set per sequence (entire .fseq file) and not effect by effect, right? Here are screenshots from four wled instances. Three are around 19-22 frames/second while one (the one with canes) is always at higher numbers, 35-45. All played from the same .fseq (xLights->Sequence Settings->Sequence Timing=50ms). Gut feeling says it's not the cause for the lag (as "snowman" shows ~20fps and does the same), but nevertheless would love to understand what's different.
Powered by SMFPacks Menu Editor Mod