mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
increased sleep time when tw is minimized and made it adjustable via cputhrottle otherwise
This commit is contained in:
parent
717162a9a2
commit
d8a7eb6863
|
@ -1933,10 +1933,10 @@ void CClient::Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
// beNice
|
// 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);
|
thread_sleep(5);
|
||||||
else if(g_Config.m_ClCpuThrottle || !m_pGraphics->WindowActive())
|
|
||||||
thread_sleep(1);
|
|
||||||
|
|
||||||
if(g_Config.m_DbgHitch)
|
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_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(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(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")
|
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