From 563fe826be7390bf243a99259d681ddc0c179315 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Fri, 12 Jan 2007 16:58:00 +0000 Subject: [PATCH] removed timer_delay from DoJasonInterpolate - caused slowdowns in some demos --- dxx-changelog.txt | 1 + main/newdemo.c | 14 +------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/dxx-changelog.txt b/dxx-changelog.txt index a3c679b70..a5066044b 100755 --- a/dxx-changelog.txt +++ b/dxx-changelog.txt @@ -4,6 +4,7 @@ D2X-Rebirth Changelog -------- main/kmatrix.c: fixed canvas stuff to show summary correctly in OGL, added new strings for CTF and HOARD, code cleanup SConstruct: added NATIVE_IPX and KALINIX to build +main/newmenu.c: removed timer_delay from DoJasonInterpolate - caused slowdowns in some demos 20070110 -------- diff --git a/main/newdemo.c b/main/newdemo.c index bec343fdd..fa67b8c45 100755 --- a/main/newdemo.c +++ b/main/newdemo.c @@ -3357,13 +3357,7 @@ void DoJasonInterpolate (fix recorded_time) // get the difference between the recorded time and the playback time the_delay=(recorded_time - FrameTime); //mprintf ((0,"The delay=%d\n", f2i(the_delay))); - if (the_delay >= f0_0) - { - stop_time(); - timer_delay(the_delay); - start_time(); - } - else + if (!the_delay >= f0_0) { while (JasonPlaybackTotal > nd_recorded_total) if (newdemo_read_frame_information() == -1) @@ -3371,14 +3365,8 @@ void DoJasonInterpolate (fix recorded_time) newdemo_stop_playback(); return; } - - //the_delay = nd_recorded_total - JasonPlaybackTotal; - //if (the_delay > f0_0) - // timer_delay(the_delay); } - } - First_time_playback=0; }