From 3f073ddee13b08941467c98f4c46698eee7a1f43 Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 11 Feb 2021 17:18:37 -0700 Subject: optimise --- 01-rwalk/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '01-rwalk/src/main.c') diff --git a/01-rwalk/src/main.c b/01-rwalk/src/main.c index 28592e4..98ede82 100644 --- a/01-rwalk/src/main.c +++ b/01-rwalk/src/main.c @@ -66,7 +66,7 @@ int main(int argc, char **argv) DO_INIT(al_init_primitives_addon(), "primitives"); DO_INIT(al_install_keyboard(), "keyboard"); - DO_INIT(t = al_create_timer(1.0 / 30.0), "timer"); + DO_INIT(t = al_create_timer(1.0 / 60.0), "timer"); DO_INIT(eq = al_create_event_queue(), "event queue"); al_set_new_display_option(ALLEGRO_SINGLE_BUFFER, 1, ALLEGRO_REQUIRE); @@ -127,7 +127,7 @@ int main(int argc, char **argv) break; } - al_draw_filled_rectangle(x, y, x + 1.0, y + 1.0, al_map_rgb(255, 255, 255)); + al_put_pixel(x, y, al_map_rgb(255, 255, 255)); randbytes = randombytes_random(); -- cgit v1.2.3