Skip to content

perf(noise): fill_2dnoise/fill_noise 2*W*H stack VLAs #5330

Closed

Description

@zackees

The fill_2dnoise8/16 and fill_noise8/16 functions (src/noise.cpp.hpp) still allocate 2·W·H bytes on the stack via FASTLED_STACK_ARRAY, which is 512 B at 16x16. #5307 kept them because both buffers are live at once: the hue buffer is read rotated by 180°.

To do: investigate a row-pair or streaming formulation that produces identical output, or a runtime-sized fl::scratch variant for large boards.

Activity

  1. added
    sanitized
    on Nov 21, 2026
  2. added a commit that references this issue on Nov 21, 2026
    fb1a41b
  3. moved this from Triage to Done in FastLED Trackeron Nov 21, 2026
  4. added a commit that references this issue on Nov 21, 2026
    3c9db81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions