static inline void Host_Sleep(double time)
{
- double time0, delta;
+ static double delta;
+ double time0;
if(host_maxwait.value <= 0)
time = min(time, 1000000.0);
if (!vid_opened && cls.state != ca_dedicated)
{
vid_opened = true;
+#ifdef WIN32
// make sure we open sockets before opening video because the Windows Firewall "unblock?" dialog can screw up the graphics context on some graphics drivers
NetConn_UpdateSockets();
+#endif
VID_Start();
CDAudio_Startup();
}
// put up the loading image so the user doesn't stare at a black screen...
SCR_BeginLoadingPlaque(true);
-
+
// check for special benchmark mode
// COMMANDLINEOPTION: Client: -benchmark <demoname> runs a timedemo and quits, results of any timedemo can be found in gamedir/benchmark.log (for example id1/benchmark.log)
i = COM_CheckParm("-benchmark");