mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
this must be inactive ofc
This commit is contained in:
parent
a808ee07d3
commit
089cb1ea44
|
@ -2870,7 +2870,7 @@ void CClient::Run()
|
|||
{
|
||||
int64 TimeNowInMicroSeconds = (Now * 1000000ll) / time_freq();
|
||||
int64 TimeLastInMicroSeconds = (LastTime * 1000000ll) / time_freq();
|
||||
SleepTimeInMicroSeconds = (1000000ll / g_Config.m_ClRefreshRate) - (TimeNowInMicroSeconds - TimeLastInMicroSeconds);
|
||||
SleepTimeInMicroSeconds = (1000000ll / g_Config.m_ClRefreshRateInactive) - (TimeNowInMicroSeconds - TimeLastInMicroSeconds);
|
||||
thread_sleep(max(SleepTimeInMicroSeconds / 1000ll, (int64)0));
|
||||
Slept = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue