Direct class renderers for benchmarking specific implementations
| 37 | |
| 38 | // Direct class renderers for benchmarking specific implementations |
| 39 | __attribute__((noinline)) |
| 40 | void renderQ31_Direct(IAnimartrix2Viz &viz, |
| 41 | Context &ctx, |
| 42 | int frames, int start_frame) { |
| 43 | for (int i = 0; i < frames; i++) { |
| 44 | uint32_t t = static_cast<uint32_t>((start_frame + i) * 16); |
| 45 | setTime(ctx, t); |
| 46 | viz.draw(ctx); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | int main(int argc, char *argv[]) { |
| 51 | bool do_float = true; |