+
+ Con_DPrint("========Initialized=========\n");
+
+ if (cls.state != ca_dedicated)
+ {
+ VID_Open();
+ SCR_BeginLoadingPlaque();
+ MR_Init();
+ }
+
+ // stuff it again so the first host frame will execute it again, this time
+ // in its entirety
+ if (gamemode == GAME_TEU)
+ Cbuf_InsertText("exec teu.rc\n");
+ else
+ Cbuf_InsertText("exec quake.rc\n");
+
+ // 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");
+ if (i && i + 1 < com_argc)
+ Cbuf_InsertText(va("timedemo %s\n", com_argv[i + 1]));
+
+ Cbuf_Execute();
+
+ // We must wait for the log_file cvar to be initialized to start the log
+ Log_Start ();