| 27 | // These functions are named so callgrind --toggle-collect can target them. |
| 28 | |
| 29 | __attribute__((noinline)) |
| 30 | void renderFloat(Animartrix &fx, CRGB *leds, int frames, int start_frame) { |
| 31 | for (int i = 0; i < frames; i++) { |
| 32 | uint32_t t = static_cast<uint32_t>((start_frame + i) * 16); |
| 33 | Fx::DrawContext ctx(t, leds); |
| 34 | fx.draw(ctx); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // Direct class renderers for benchmarking specific implementations |
| 39 | __attribute__((noinline)) |