git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6269
d7cf8633-e32d-0410-b094-
e92efae38249
timeleft = timecap - (realtime - oldrealtime);
if (timeleft > 0)
{
timeleft = timecap - (realtime - oldrealtime);
if (timeleft > 0)
{
if (timeleft * 1000 >= 10)
Sys_Sleep(1);
#else
if (timeleft * 1000 >= 10)
Sys_Sleep(1);
#else
// try to hit exactly a steady framerate by not sleeping the full amount
msleft = (int)floor(timeleft * 1000);
if (msleft >= 10)
// try to hit exactly a steady framerate by not sleeping the full amount
msleft = (int)floor(timeleft * 1000);
if (msleft >= 10)