From 3a1e065a57cbff72445fa24a824f9b2bf84f2dce Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 8 Jun 2012 20:06:32 +0900 Subject: [PATCH] Use Sys_DoubleTime instead of realtime for timedemos. Currently, realtime is not really real time thanks to demo_speed. --- nq/source/cl_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nq/source/cl_demo.c b/nq/source/cl_demo.c index f73cb28d0..815a89578 100644 --- a/nq/source/cl_demo.c +++ b/nq/source/cl_demo.c @@ -162,7 +162,7 @@ check_next_demopacket (void) // if this is the second frame, grab the real td_starttime // so the bogus time on the first frame doesn't count if (host_framecount == cls.td_startframe + 1) - cls.td_starttime = realtime; + cls.td_starttime = Sys_DoubleTime (); } else if (cl.time <= cl.mtime[0]) { return 0; // don't need another message yet } @@ -552,7 +552,7 @@ CL_FinishTimeDemo (void) // the first frame didn't count frames = (host_framecount - cls.td_startframe) - 1; - time = realtime - cls.td_starttime; + time = Sys_DoubleTime () - cls.td_starttime; if (!time) time = 1; Sys_Printf ("%i frame%s %.4g seconds %.4g fps\n", frames,