Skip to content

feat(gfx): drawPolygon Exact at 16x16 overflows the stack on Uno #5328

Closed

Description

@zackees

On an Arduino Uno, drawPolygon with the Exact kernel on a 16x16 CRGB canvas overflows the stack: Exact needs about 1.2 KB and the sketch leaves about 950 B free, which was verified in simavr. ABuffer, or Exact at 16x8, works. fl::scratch doesn't help, because SRAM is the same either way.

To do: explore a smaller Exact working set at the 8/16 tier, an automatic fall back to ABuffer when the canvas is large on 2 KB parts, or a static check or warning. At minimum, keep the limit documented in canvas.h and the Polygon example.

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