if (cmd == -1)
{
- R_TimeReport("END OF MESSAGE");
+// R_TimeReport("END OF MESSAGE");
SHOWNET("END OF MESSAGE");
break; // end of message
}
CL_ParsePointParticles1();
break;
}
- R_TimeReport(svc_strings[cmd]);
+// R_TimeReport(svc_strings[cmd]);
}
}
if (cls.signon == SIGNONS)
CL_UpdateItemsAndWeapon();
- R_TimeReport("UpdateItems");
+// R_TimeReport("UpdateItems");
EntityFrameQuake_ISeeDeadEntities();
- R_TimeReport("ISeeDeadEntities");
+// R_TimeReport("ISeeDeadEntities");
CL_UpdateMoveVars();
- R_TimeReport("UpdateMoveVars");
+// R_TimeReport("UpdateMoveVars");
parsingerror = false;
if (cls.demorecording)
{
CL_WriteDemoMessage (&net_message);
- R_TimeReport("WriteDemo");
+// R_TimeReport("WriteDemo");
}
}
int move, svent;
prvm_edict_t *ent;
- R_TimeReport("pretraceline");
+// R_TimeReport("pretraceline");
VM_SAFEPARMCOUNTRANGE(4, 4, VM_CL_traceline);
trace = CL_TraceLine(v1, v2, move, ent, CL_GenericHitSuperContentsMask(ent), CL_HitNetworkBrushModels(move), CL_HitNetworkPlayers(move), &svent, true);
CL_VM_SetTraceGlobals(&trace, svent);
- R_TimeReport("traceline");
+// R_TimeReport("traceline");
}
/*
int move, svent;
prvm_edict_t *ent;
- R_TimeReport("pretracebox");
+// R_TimeReport("pretracebox");
VM_SAFEPARMCOUNTRANGE(6, 8, VM_CL_tracebox); // allow more parameters for future expansion
prog->xfunction->builtinsprofile += 30;
trace = CL_TraceBox(v1, m1, m2, v2, move, ent, CL_GenericHitSuperContentsMask(ent), CL_HitNetworkBrushModels(move), CL_HitNetworkPlayers(move), &svent, true);
CL_VM_SetTraceGlobals(&trace, svent);
- R_TimeReport("tracebox");
+// R_TimeReport("tracebox");
}
trace_t CL_Trace_Toss (prvm_edict_t *tossent, prvm_edict_t *ignore, int *svent)
{
qboolean shadowmapping = false;
+ if (r_timereport_active)
+ R_TimeReport("beginscene");
+
r_refdef.stats.renders++;
R_UpdateFogColor();
Matrix4x4_CreateTranslate(&r_waterscrollmatrix, sin(r_refdef.scene.time) * 0.025 * r_waterscroll.value, sin(r_refdef.scene.time * 0.8f) * 0.025 * r_waterscroll.value, 0);
+ if (r_timereport_active)
+ R_TimeReport("skystartframe");
+
if (cl.csqc_vidvars.drawworld)
{
// don't let sound skip if going slow
if (sv.active ? sv_timer > 0 : cl_timer > 0)
{
// process console commands
- R_TimeReport("preconsole");
+// R_TimeReport("preconsole");
CL_VM_PreventInformationLeaks();
Cbuf_Execute();
- R_TimeReport("console");
+// R_TimeReport("console");
}
//Con_Printf("%6.0f %6.0f\n", cl_timer * 1000000.0, sv_timer * 1000000.0);
else
Sys_Sleep((int)wait);
svs.perf_acc_sleeptime += Sys_DoubleTime() - time0;
- R_TimeReport("sleep");
+// R_TimeReport("sleep");
continue;
}
+ R_TimeReport("---");
+
//-------------------
//
// server operations
NetConn_Heartbeat(0);
R_TimeReport("servernetwork");
}
+ else
+ {
+ // don't let r_speeds display jump around
+ R_TimeReport("serverphysics");
+ R_TimeReport("servernetwork");
+ }
//-------------------
//
R_TimeReport("client");
CL_UpdateScreen();
+ R_TimeReport("render");
if (host_speeds.integer)
time2 = Sys_DoubleTime();
{
while (cl_sockets[i] && (length = NetConn_Read(cl_sockets[i], readbuffer, sizeof(readbuffer), &peeraddress)) > 0)
{
- R_TimeReport("clientreadnetwork");
+// R_TimeReport("clientreadnetwork");
NetConn_ClientParsePacket(cl_sockets[i], readbuffer, length, &peeraddress);
- R_TimeReport("clientparsepacket");
+// R_TimeReport("clientparsepacket");
}
}
NetConn_QueryQueueFrame();
oldsoundtime = soundtime;
cls.soundstats.latency_milliseconds = (snd_renderbuffer->endframe - snd_renderbuffer->startframe) * 1000 / snd_renderbuffer->format.speed;
+ R_TimeReport("audiomix");
}
/*
S_UpdateAmbientSounds ();
combine = NULL;
+ R_TimeReport("audioprep");
// update spatialization for static and dynamic sounds
cls.soundstats.totalsounds = 0;
if (k < SND_LISTENERS)
cls.soundstats.mixedsounds++;
}
+ R_TimeReport("audiospatialize");
sound_spatialized = true;
{
if (snd_completed == snd_sent)
{
- Con_DPrint("Sound overrun\n");
+ // Con_DPrint("Sound overrun\n");
break;
}