WLED: PS effects do not work on large setups

What happened?

Configuration 3936 LEDs, 3x Dig-Quads

Two of the ESP32s are directly connected to roughly half the LEDs each. The third is the master controller that does nothing but run the effects via DDP to the slave controllers. (This configuration yields by far the highest frame rate of the many I tried.)

I have no way of identifying which version of WLED is currently working, but it was the latest nightly on 5/2/25. This version is of course buggy and will constantly reboot if I change PS effects a lot, and it virtually always says “Error 8: Effect RAM depleted!” in the UI.

That said, it will run a playlist of mostly PS effects all day without crashing.

Issue Nightly 20250630 will not run any PS effects at all. The LEDs do not light up. Regular effects do work.

There was another nightly (I think it might have been 5/28?) that did run PS effects, but they were extremely unstable to the point where I had to roll back.

Please let me know if there are any debugging steps and I can take and report back.

To Reproduce Bug

.

Expected Behavior

.

Install Method

Binary from WLED.me

What version of WLED?

WLED_0.16.0-alpha_ESP32_Ethernet.bin Nightly Release 20250630

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output


Anything else?

No response

Code of Conduct

  • I agree to follow this project’s Code of Conduct

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

If you make PS a friend of Segment class then you get direct access to pixels via getPixels() (as it is protected). However you can also use setPixelColorRaw() or getPixelColorRaw() which are wrappers for direct array access without any overhead.

The only change needed is the addition of friend class ParticleSystem1D; and friend class ParticleSystem2D; into Segment class declaration. Just be careful what you do with pixels (do bounds check).