From: divverent Date: Sun, 24 Jun 2007 15:25:10 +0000 (+0000) Subject: take the time used by the stuff before the server code into account when measuring... X-Git-Tag: xonotic-v0.1.0preview~3014 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f734171865178c643d9076cf4435eeaa0080d186;p=xonotic%2Fdarkplaces.git take the time used by the stuff before the server code into account when measuring the timing offset for server frames git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7450 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index bba739c7..d8201610 100644 --- a/host.c +++ b/host.c @@ -712,7 +712,7 @@ void Host_Main(void) if(advancetime > 0) { - offset = sv_timer; + offset = sv_timer + (Sys_DoubleTime() - realtime); ++svs.perf_acc_offset_samples; svs.perf_acc_offset += offset; svs.perf_acc_offset_squared += offset * offset;