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/engine/client | |
| 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/engine/client')
| -rw-r--r-- | src/engine/client/client.cpp | 6 |
1 files changed, 3 insertions, 3 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) { |