| 23 | static const int PROFILE_FRAMES = 200; |
| 24 | |
| 25 | __attribute__((noinline)) |
| 26 | void renderFloat(FlowFieldFloat &fx, CRGB *leds, int frames, int start_frame) { |
| 27 | for (int i = 0; i < frames; i++) { |
| 28 | uint32_t t = static_cast<uint32_t>((start_frame + i) * 33); |
| 29 | Fx::DrawContext ctx(t, leds); |
| 30 | fx.draw(ctx); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | __attribute__((noinline)) |
| 35 | void renderFP(FlowFieldFP &fx, CRGB *leds, int frames, int start_frame) { |