this must be inactive ofc

This commit is contained in:
Jupeyy 2018-03-01 08:25:34 +01:00
parent a808ee07d3
commit 089cb1ea44

View file

@ -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;
}