mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +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)
|
if(NonActive)
|
||||||
PumpNetwork();
|
PumpNetwork();
|
||||||
|
|
||||||
|
#ifndef CONF_FAMILY_WINDOWS
|
||||||
set_new_tick();
|
set_new_tick();
|
||||||
|
#endif
|
||||||
|
|
||||||
int64 t = time_get();
|
int64 t = time_get();
|
||||||
int NewTicks = 0;
|
int NewTicks = 0;
|
||||||
|
@ -1722,7 +1724,9 @@ int CServer::Run()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifndef CONF_FAMILY_WINDOWS
|
||||||
set_new_tick();
|
set_new_tick();
|
||||||
|
#endif
|
||||||
int64 t = time_get();
|
int64 t = time_get();
|
||||||
int x = (TickStartTime(m_CurrentGameTick+1) - t) * 1000000 / time_freq() + 1;
|
int x = (TickStartTime(m_CurrentGameTick+1) - t) * 1000000 / time_freq() + 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue