From c4f66e7c6c38fe5325d8ba49141c27a1a20ff5be Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Fri, 6 Apr 2018 16:21:53 +0200 Subject: [PATCH] Keep sync between landing sequence time and Benson text while landing --- src/mercenary/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mercenary/main.c b/src/mercenary/main.c index 38c7b83..f6d3707 100644 --- a/src/mercenary/main.c +++ b/src/mercenary/main.c @@ -45,7 +45,6 @@ static int config_ctrl_c = 0; static int config_amiga_speed = 1; -#warning fixme: make use of 10 for intro, then be as fast as given static double config_fps = 16.0; #if !defined(_WIN32) static const char *config_gamesave_dir = ".mercenary"; @@ -314,12 +313,13 @@ static void main_loop(void) /* render result on window */ while (!quit) { -#warning oder ganz anders: bevor landung machen wir amiga-rate als interpolation /* if we are in interstellar fligt, we use 50 Hz */ /* if we are approaching to Eris Space Port, we use 10 Hz */ /* else we use whatever frame rate the user wants */ if (render_capture_is_interstellar()) frame_step = vbl_duration * 50.0; + else if (!intro_skipped) + frame_step = vbl_duration * 10.0; else frame_step = vbl_duration * config_fps; if (frame_step > 1.0) @@ -385,7 +385,6 @@ static void main_loop(void) render_improved_rc = -1; /* advance frame time, if we are not in help view */ if (!(had_first_irq && help_view)) { -//printf("frame rate: %.6f, frame-step=%.5f frame-time=%.5f\n", 1.0 / vbl_duration, frame_step,frame_time); frame_time += frame_step; if (frame_time >= 1.0) { frame_time -= 1.0; -- 2.13.6