- Make sure at least one round of download packets and packet queues gets sent each frame

- Fix timeVal select timeout value for case of unlimited data rate and now downloads are active
This commit is contained in:
Thilo Schulz 2011-07-13 18:57:32 +00:00
parent d827447da8
commit 1c3ecb3d3c

View file

@ -3103,11 +3103,6 @@ void Com_Frame( void ) {
timeVal = 0;
do
{
// Busy sleep the last millisecond for better timeout precision
if(timeVal < 2)
NET_Sleep(0);
else
{
if(com_sv_running->integer)
{
@ -3167,7 +3162,7 @@ void Com_Frame( void ) {
}
else
{
SV_SendDownloadMessages();
if(SV_SendDownloadMessages())
timeVal = 1;
}
}
@ -3179,7 +3174,6 @@ void Com_Frame( void ) {
NET_Sleep(0);
else
NET_Sleep(timeVal - 1);
}
msec = Sys_Milliseconds() - com_frameTime;