diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 10:04:46 +0100 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 10:04:46 +0100 |
| commit | 7a36a103aec1c0aafc89a45a4c7fb82944e6baba (patch) | |
| tree | e698f27932240b7b6d7ddc357be02cf4f498d9d5 /src/engine/client/client.cpp | |
| parent | 8a91bfa1ddff0c99d65375b8b5c57e710169543a (diff) | |
| download | zcatch-7a36a103aec1c0aafc89a45a4c7fb82944e6baba.tar.gz zcatch-7a36a103aec1c0aafc89a45a4c7fb82944e6baba.zip | |
fixed so that the rendering can be done async from the input, network and update
Diffstat (limited to 'src/engine/client/client.cpp')
| -rw-r--r-- | src/engine/client/client.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index bb888c60..53f60fa8 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -1853,19 +1853,22 @@ void CClient::Run() Update(); - if(g_Config.m_DbgStress) + if(!g_Config.m_GfxAsyncRender || m_pGraphics->IsIdle()) { - if((m_Frames%10) == 0) + if(g_Config.m_DbgStress) + { + if((m_Frames%10) == 0) + { + Render(); + m_pGraphics->Swap(); + } + } + else { Render(); m_pGraphics->Swap(); } } - else - { - Render(); - m_pGraphics->Swap(); - } } AutoScreenshot_Cleanup(); |