mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Try only to make performant server on non-Windows
This commit is contained in:
parent
91dfe9fd1b
commit
d9e207816e
|
@ -1628,7 +1628,9 @@ int CServer::Run()
|
|||
if(NonActive)
|
||||
PumpNetwork();
|
||||
|
||||
#ifndef CONF_FAMILY_WINDOWS
|
||||
set_new_tick();
|
||||
#endif
|
||||
|
||||
int64 t = time_get();
|
||||
int NewTicks = 0;
|
||||
|
@ -1722,7 +1724,9 @@ int CServer::Run()
|
|||
}
|
||||
else
|
||||
{
|
||||
#ifndef CONF_FAMILY_WINDOWS
|
||||
set_new_tick();
|
||||
#endif
|
||||
int64 t = time_get();
|
||||
int x = (TickStartTime(m_CurrentGameTick+1) - t) * 1000000 / time_freq() + 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue