]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
take the time used by the stuff before the server code into account when measuring...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Jun 2007 15:25:10 +0000 (15:25 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Jun 2007 15:25:10 +0000 (15:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7450 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index bba739c7070bf0c23603274594a057aa8deabf50..d8201610cba9d9436acda80cfa8023084689583c 100644 (file)
--- 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;