delet this
This commit is contained in:
1 parent
6661d98e5f
commit
18352ff6d8
1 file changed
+16
-28
+16
-28
@@ -113,8 +113,6 @@ tic_t lowest_lag;
|
||||
tic_t simulated_lag;
|
||||
boolean server_lagless;
|
||||
|
||||
tic_t netticbuffer = 0;
|
||||
|
||||
static void Lagless_OnChange(void)
|
||||
{
|
||||
/* don't back out of dishonesty, or go lagless after playing honestly */
|
||||
@@ -6482,7 +6480,7 @@ boolean TryRunTics(tic_t realtics)
|
||||
}
|
||||
|
||||
// Leave a certain amount of tics present in the net buffer as long as we've ran at least one tic this frame.
|
||||
if (client && gamestate == GS_LEVEL && leveltime > 3 && neededtic <= gametic + netticbuffer)
|
||||
if (client && gamestate == GS_LEVEL && leveltime > 3 && neededtic <= gametic + cv_netticbuffer.value)
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -6755,13 +6753,11 @@ void NetUpdate(void)
|
||||
nowtime = I_GetTime();
|
||||
realtics = nowtime - gametime;
|
||||
|
||||
const boolean noupdate = (realtics <= 0); // nothing new to update
|
||||
|
||||
Net_GetNetStat();
|
||||
netticbuffer = (((gamelostpercent > 1.f) || (playerpingtable[consoleplayer] == 1)) ? CLAMP(cv_netticbuffer.value, 1, 3) : cv_netticbuffer.value);
|
||||
if (realtics <= 0) // nothing new to update
|
||||
return;
|
||||
|
||||
#ifdef DEDICATEDIDLETIME
|
||||
if (server && dedicated && gamestate == GS_LEVEL && !noupdate)
|
||||
if (server && dedicated && gamestate == GS_LEVEL)
|
||||
{
|
||||
static tic_t dedicatedidle = 0;
|
||||
|
||||
@@ -6818,14 +6814,12 @@ void NetUpdate(void)
|
||||
|
||||
gametime = nowtime;
|
||||
|
||||
if (!noupdate)
|
||||
UpdatePingTable();
|
||||
UpdatePingTable();
|
||||
|
||||
if (client)
|
||||
maketic = neededtic;
|
||||
|
||||
if (!noupdate)
|
||||
Local_Maketic(realtics); // make local tic, and call menu?
|
||||
Local_Maketic(realtics); // make local tic, and call menu?
|
||||
|
||||
if (server)
|
||||
CL_SendClientCmd(); // send it
|
||||
@@ -6836,12 +6830,11 @@ void NetUpdate(void)
|
||||
// the server send before because in single player is beter
|
||||
|
||||
#ifdef MASTERSERVER
|
||||
if (!noupdate)
|
||||
MasterClient_Ticker(); // Acking the Master Server
|
||||
MasterClient_Ticker(); // Acking the Master Server
|
||||
#endif
|
||||
|
||||
#ifdef HOLEPUNCH
|
||||
if (netgame && serverrunning && !noupdate)
|
||||
if (netgame && serverrunning)
|
||||
{
|
||||
RenewHolePunch();
|
||||
}
|
||||
@@ -6915,26 +6908,21 @@ void NetUpdate(void)
|
||||
}
|
||||
}
|
||||
Net_AckTicker();
|
||||
HandleNodeTimeouts();
|
||||
|
||||
if (!noupdate)
|
||||
if (nowtime > resptime)
|
||||
{
|
||||
HandleNodeTimeouts();
|
||||
|
||||
if (nowtime > resptime)
|
||||
{
|
||||
resptime = nowtime;
|
||||
resptime = nowtime;
|
||||
#ifdef HAVE_THREADS
|
||||
I_lock_mutex(&m_menu_mutex);
|
||||
I_lock_mutex(&m_menu_mutex);
|
||||
#endif
|
||||
M_Ticker();
|
||||
M_Ticker();
|
||||
#ifdef HAVE_THREADS
|
||||
I_unlock_mutex(m_menu_mutex);
|
||||
I_unlock_mutex(m_menu_mutex);
|
||||
#endif
|
||||
CON_Ticker();
|
||||
}
|
||||
|
||||
SV_FileSendTicker();
|
||||
CON_Ticker();
|
||||
}
|
||||
SV_FileSendTicker();
|
||||
}
|
||||
|
||||
/** Returns the number of players playing.
|
||||
|
||||
Reference in new issue
Block a user