FastLED 3.9.15
Loading...
Searching...
No Matches
chasing_spirals.h
Go to the documentation of this file.
1#pragma once
2
3// Chasing_Spirals visualizer classes — three precision/performance tiers.
4// Included from animartrix_detail.h — do NOT include directly.
5
8
9namespace fl {
10
11// Original floating-point implementation (~210 µs/frame on 32×32).
12// No cached state — all computation is per-frame.
14public:
15 void draw(Context &ctx) override;
16};
17
18// Fixed-point Q31 scalar implementation (~78 µs/frame, 2.7× speedup).
19// Owns the SoA geometry cache; rebuilt only when grid dimensions change.
21public:
22 void draw(Context &ctx) override;
23private:
24 ChasingSpiralState mState;
25};
26
27// Fixed-point Q31 SIMD implementation (4-wide SSE2 vectorisation).
28// Owns the SoA geometry cache; rebuilt only when grid dimensions change.
30public:
31 void draw(Context &ctx) override;
32private:
33 ChasingSpiralState mState;
34};
35
36} // namespace fl
void draw(Context &ctx) override
void draw(Context &ctx) override
void draw(Context &ctx) override
ChasingSpiralState mState
Base definition for an LED controller.
Definition crgb.hpp:179