#include #include #include void draw() { extern image_t img_battlefield1; extern image_t img_battlefield2; extern image_t img_battlefield3; extern image_t img_bullet3_2; prof_clear(0); prof_enter(0); dclear(C_BLACK); // dimage(0, 0, &img_battlefield1); // dimage(0, 0, &img_battlefield2); dimage(0, 0, &img_battlefield3); for(int i = 0; i < 2000; i++) { dimage((i*79) % 216, (i*41) % 216, &img_bullet3_2); } prof_leave(0); dprint(300, 10, C_NONE, C_NONE, "%i us", prof_time(0)); dprint(300, 40, C_WHITE, C_NONE, "%i us", prof_time(0)); dprint(300, 70, C_BLACK, C_NONE, "%i us", prof_time(0)); dupdate(); } int main(void) { extern font_t font_touhou; prof_init(1, 0); // dfont(&font_touhou); for(int i = 0; i < 100; i++) { draw(); } getkey(); prof_quit(); return 1; }