From b12224bdcee4781c77d3e8540b50a27b9b4022f5 Mon Sep 17 00:00:00 2001 From: Wintermute Date: Sun, 13 Oct 2013 00:32:20 +0200 Subject: [PATCH] Speed etwas runter (13.3 ms pro Tick) --- badge/jumpnrun/jumpnrun.c | 2 +- badge/ui/event.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/badge/jumpnrun/jumpnrun.c b/badge/jumpnrun/jumpnrun.c index 3b7a4c6..9f4df56 100644 --- a/badge/jumpnrun/jumpnrun.c +++ b/badge/jumpnrun/jumpnrun.c @@ -244,7 +244,7 @@ void jumpnrun_level_tick(jumpnrun_level *lv, } state->inertia = state->inertia_mod; - state->tick_minor = (state->tick_minor + 1) % 4; + state->tick_minor = (state->tick_minor + 1) % 3; } uint8_t jumpnrun_play(char const *lvname) { diff --git a/badge/ui/event.c b/badge/ui/event.c index 9c504be..779398f 100644 --- a/badge/ui/event.c +++ b/badge/ui/event.c @@ -77,7 +77,7 @@ badge_event_t badge_event_wait(void) { } void badge_event_start(void) { - timer32Init(0, TIMER32_CCLK_10MS); + timer32Init(0, TIMER32_CCLK_10MS / 100 * 133); timer32SetIntHandler(badge_event_irq); timer32Enable(0); } -- 2.20.1