- 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:
parent
d827447da8
commit
1c3ecb3d3c
1 changed files with 60 additions and 66 deletions
|
@ -3103,11 +3103,6 @@ void Com_Frame( void ) {
|
||||||
timeVal = 0;
|
timeVal = 0;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
|
||||||
// Busy sleep the last millisecond for better timeout precision
|
|
||||||
if(timeVal < 2)
|
|
||||||
NET_Sleep(0);
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if(com_sv_running->integer)
|
if(com_sv_running->integer)
|
||||||
{
|
{
|
||||||
|
@ -3167,7 +3162,7 @@ void Com_Frame( void ) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SV_SendDownloadMessages();
|
if(SV_SendDownloadMessages())
|
||||||
timeVal = 1;
|
timeVal = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3179,7 +3174,6 @@ void Com_Frame( void ) {
|
||||||
NET_Sleep(0);
|
NET_Sleep(0);
|
||||||
else
|
else
|
||||||
NET_Sleep(timeVal - 1);
|
NET_Sleep(timeVal - 1);
|
||||||
}
|
|
||||||
|
|
||||||
msec = Sys_Milliseconds() - com_frameTime;
|
msec = Sys_Milliseconds() - com_frameTime;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue