From 62eeb19311ecdf47ab6431420debd4fb13ef756b Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 15 Dec 2004 19:54:09 +0000 Subject: [PATCH] Profiling code and mvdsv-breakage-limitation stuff git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@655 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 8de1094fd..4cad16eaa 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -1282,7 +1282,7 @@ void CL_Packet_f (void) int i, l; char *in, *out; netadr_t adr; - + if (Cmd_Argc() != 3) { Con_TPrintf (TLC_PACKET_SYNTAX); @@ -1309,6 +1309,7 @@ void CL_Packet_f (void) Con_Printf ("Sending realip packet\n"); } + cls.lastarbiatarypackettime = Sys_DoubleTime(); //prevent the packet command from causing a reconnect on badly configured mvdsv servers. in = Cmd_Argv(2); out = send+4; @@ -2417,6 +2418,9 @@ void Host_Frame (float time) static double time3 = 0; int pass1, pass2, pass3; // float fps; + + RSpeedLocals(); + if (setjmp (host_abort) ) return; // something bad happened, or the server disconnected @@ -2426,7 +2430,9 @@ void Host_Frame (float time) #endif #ifndef CLIENTONLY + RSpeedRemark(); SV_Frame(time); + RSpeedEnd(RSPEED_SERVER); #endif #ifdef WEBCLIENT @@ -2508,6 +2514,8 @@ void Host_Frame (float time) NET_Poll(); #endif + RSpeedRemark(); + if (cls.downloadtype == dl_none && !*cls.downloadname && cl.downloadlist) { CL_RequestNextDownload(); @@ -2546,6 +2554,8 @@ CL_RequestNextDownload(); } } + RSpeedEnd(RSPEED_CLIENT); + // update video if (host_speeds.value) time1 = Sys_DoubleTime ();