Skip to content

PR #5192 (8b6a5718) causes effects to flicker on slider changes in 0.15.4 #5486

Open

Description

@david-hogberg

What happened?

setGeometry() changed fill(BLACK) from conditional to unconditional:

// before 
if (stop && (spc > 0 || m12 != map1D2D)) fill(BLACK);
// after (#5192)
if (stop) fill(BLACK);

deserializeSegment() calls setGeometry() on every JSON update, including slider changes (speed, intensity, custom1-3) where geometry is unchanged. This wipes the pixel buffer to black every time a slider moves. Effects that accumulate or blend with previous frame data (blendPixelColor, addPixelColor, getPixelColor) read black for one frame, producing a visible flicker.

The original condition correctly limited the clear to cases where LED positions actually shift (non-zero spacing or mapping mode change).

Suggested fix maybe something like this:

bool geometryChanged = !boundsUnchanged || m12 != map1D2D || (grp && (grouping != grp || spacing != spc));
if (stop && geometryChanged) fill(BLACK);

To Reproduce Bug

Adjust slider values on any effect using e.g. blendPixelColor, addPixelColor, getPixelColor.

Expected Behavior

No flickering

Install Method

Self-Compiled

What version of WLED?

WLED 0.15.4

Which microcontroller/board are you seeing the problem on?

ESP32-S3

Relevant log/trace output

Anything else?

No response

Code of Conduct

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

Activity

  1. david-hogberg commented on Apr 8, 2026

    @david-hogberg
    Author

    (apologize if this has been adressed already...)

  2. DedeHai commented on Apr 8, 2026

    @DedeHai
    Collaborator

    while the mentioned PR fixes a different bug, it adds the one mentioned here. There were deeper issues being fixed in #5474
    Can you please check if that fixes this?

  3. added this to the 0.15.5 milestone on Apr 9, 2026
  4. linked a pull request that will close this issueClean up setGeometry (for 0.15.x only) #5474on Apr 9, 2026
  5. added
    waiting for feedback
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugwaiting for feedback

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions