[quake3] Python performance report

Tony J. White tjw at webteam.net
Thu Dec 14 13:04:30 EST 2006


On Wed, Dec 13, 2006 at 06:33:30PM -0700, Neil Toronto wrote:
> 1) I've implemented cg_latentSnaps (from Unlagged), and it was way easier than 
> in 1.27. Somebody seriously cleaned up cg_snapshot.c. This cvar allows you to 
> simulate lag. The client game simply requests snapshot number "current - 
> cg_latentSnaps".

Is this necessary now that cl_packetdelay and sv_packetdelay are in the
engine?

> 2) I've added com_laptop, which, if 1, causes Sys_Sleep(0) to be called at the 
> end of the (busy-wait) rendering loop. It makes Quake 3 a little more 
> laptop-friendly, and also lets you see the *real* amount of CPU Quake 3 takes 
> on your performance meter. (Otherwise it's always 100%.)

Is Sys_Sleep() just a wrapper for win32 Sleep() and posix usleep()?
Does calling it with 0 just help in process scheduling?

-Tony




More information about the quake3 mailing list