mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
increased sleep time when tw is minimized and made it adjustable via cputhrottle otherwise
This commit is contained in:
parent
73386fdf0f
commit
07c97822bb
|
@ -1945,10 +1945,10 @@ void CClient::Run()
|
|||
break;
|
||||
|
||||
// beNice
|
||||
if(g_Config.m_DbgStress)
|
||||
if(g_Config.m_ClCpuThrottle)
|
||||
thread_sleep(g_Config.m_ClCpuThrottle);
|
||||
else if(g_Config.m_DbgStress || !m_pGraphics->WindowActive())
|
||||
thread_sleep(5);
|
||||
else if(g_Config.m_ClCpuThrottle || !m_pGraphics->WindowActive())
|
||||
thread_sleep(1);
|
||||
|
||||
if(g_Config.m_DbgHitch)
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ MACRO_CONFIG_STR(Password, password, 32, "", CFGFLAG_CLIENT|CFGFLAG_SERVER, "Pas
|
|||
MACRO_CONFIG_STR(Logfile, logfile, 128, "", CFGFLAG_SAVE|CFGFLAG_CLIENT|CFGFLAG_SERVER, "Filename to log all output to")
|
||||
MACRO_CONFIG_INT(ConsoleOutputLevel, console_output_level, 0, 0, 2, CFGFLAG_CLIENT|CFGFLAG_SERVER, "Adjusts the amount of information in the console")
|
||||
|
||||
MACRO_CONFIG_INT(ClCpuThrottle, cl_cpu_throttle, 0, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "")
|
||||
MACRO_CONFIG_INT(ClCpuThrottle, cl_cpu_throttle, 0, 0, 100, CFGFLAG_SAVE|CFGFLAG_CLIENT, "")
|
||||
MACRO_CONFIG_INT(ClEditor, cl_editor, 0, 0, 1, CFGFLAG_CLIENT, "")
|
||||
MACRO_CONFIG_INT(ClLoadCountryFlags, cl_load_country_flags, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Load and show country flags")
|
||||
|
||||
|
|
Loading…
Reference in a new issue