mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
- 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;
|
||||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue