diff options
| author | oy <Tom_Adams@web.de> | 2013-02-20 15:51:46 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2013-02-24 18:31:23 +0100 |
| commit | 07c97822bba0f7b59c911aab2d6e85f84785b6ed (patch) | |
| tree | a2742c106be7879a255e86d7d0dcc2391854334c /src | |
| parent | 73386fdf0f23563e1c4a92857810f8103407fd6b (diff) | |
| download | zcatch-07c97822bba0f7b59c911aab2d6e85f84785b6ed.tar.gz zcatch-07c97822bba0f7b59c911aab2d6e85f84785b6ed.zip | |
increased sleep time when tw is minimized and made it adjustable via cputhrottle otherwise
Diffstat (limited to 'src')
| -rw-r--r-- | src/engine/client/client.cpp | 6 | ||||
| -rw-r--r-- | src/engine/shared/config_variables.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index c481102b..30f92eb0 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -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) { diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index 659d1087..3215ee0e 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -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") |