New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LedFx lagging with WLED #173
Comments
Thanks for the advice. I tinkered with all these settings for a bunch of time, but nothing really helped. Only thing I noticed was after hitting submit, the reaction was at it best for a very few seconds, but sooner or later the effects were displayed with a huge lag/ delay. Such a pity because the short moments it worked fluently it was damn impressive to watch. In general I think LedFx really is prone to errors, since changing one setting oftentimes fails the light to light up at all, so I got to restart the whole thing again. Even then sometimes it wouldn't start, so I had to clear the config. For example here are some messages that I received, only for changing some things on the web device:
Then it operated quietly until after changing some stuff...
I really have no clue what's going on there I only can guess maybe a clash between WLED and LedFx. Or totally differently the uploading format (e131) simply is not appropriate because with Prismatik and UDP I get about 25 fps consistently. By the way for answering your primarily question: I'm occupying 149 LED's of a 567 pixel long WS2812b strip. |
The error you pointed happens some times to me, but i can just ignore it because i doesn't stops working after that. In WLED configuration, do you have set 567 leds to control? |
Quite frightening to face these errors though. I have set pixel count to 149 same as in WLED settings, albeit more LED's are connected to the strip. I feel like the problem is independent of the count since for lowered pixels the delay happens as well. Maybe it's the way I installed LedFx or WLED? |
Did you check cpu usage on ledfx? How much cores your cpu have? |
I'm equipped with Quad-Core Intel Core i5. Using LedFx around 45% of the Cpu are used and 20% for python beneath. However in the activity monitor it shows about 85% of the whole system are inactive. I dare say the performance of my PC is sufficient, for other applications it's just enough. I insist on some odd connectivity issues. I could try running other sound-reactive projects (like the one of Scott) and see if that works. |
So I checked the project of Scott (it's quite a different setup but fairly comparable) and it worked quite smoothly. Only the scroll effects was lagging a little but not as worse as in LedFx. I inspected the messages sent in the console again and found something strange in my eye:
Is it normal the connected is closed when I'm about to activate an effect? |
Well, python is mostly single-threaded, i dont know the code underneath ledfx deals with this, but FFT is quite a computational hungry task. You could use About the log you pasted, well, i dont know haha, seems to me that wled is aborting the connection, which is quite weird. you could check if there's any other ledfx instance running. do you have any weirdness controlling wled by your phone? |
Yea, I know some computations can grill the entire PC, but I'm sure mine is cool enough (at least I can trace the FFT graph on LedFx in realtime) I rather believe it is indeed an interrupted connection to WLED for whatever reason. WLED itself and other applications accessing on it are running with ease. I guess I'll wait until these programming GOATS will program even better programs that are even easier to use. Thank you for your help |
Try updating WLED. I had the same issue, but it seems that the WLED team recently made some changes which fixed it. |
Thank you for the information. I've installed newest WLED on my esp8266 (ver. 0.13.0-b7) via Web-installer however I am facing the same issues. What's your version and installation method? |
I am using esp32 and compile the software myself. I have no idea which change resolved the issue for me, but they just released new version today (v0.13.1 "Toki"). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
Having a similar lag issue with latest updates too running ledfx and wled currently |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
Working on a new version of LedFx which addresses the performance issues. Slow work to rewrite it from the ground up in a new language, but stay tuned :) |
Hi, I am facing the same issues here....any word on an update? |
I know that what I'm about to describe is not related to this issue, but I'll just drop it here since unfortunately it was the most relevant google result to my problem. LedFx seemed to lag a few ms when reacting to most music/sounds, but not by the same amount every time. The fix was to clamp the frequencies to something like 30Hz to 8kHz. That's all, really love the project guys, appreciate ya! <3 |
What happened?
I have now installed LedFx and I can run the web interface successfully (since you told me how to clear trashed configs). Next problem that has arose:
Lights are eventually bugged only reacting with a huge delay.
For the the first couple of seconds it responds pretty smoothly but after some time the movement becomes really jagged.
It strikes me as LedFx has some connectivity issues because other synchronizations like Prismatik or Hyperion are stable over a long period. Effects send from WLED are passed through immediately anyhow.
In order to fix the issue I tried adding the Esp-device with UDP instead of e131, but by doing so lights are just turned off no matter what effect I choose. Also I experimented with different wifi spots, but no recover there.
I've got no error message that I can present to you guys so yeah.
Install Method
Install via pip
What version of LedFx?
0.10.7
What browsers are you seeing the problem on?
Safari
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: