Add gfx_backgroundrender to fix crashes on some systems

This commit is contained in:
def 2014-02-12 12:38:57 +01:00
parent 51012d479b
commit 41703cd5b9
2 changed files with 2 additions and 1 deletions

View file

@ -2020,7 +2020,7 @@ void CClient::Run()
Update();
if(m_pGraphics->WindowOpen() && m_pGraphics->IsIdle())
if((g_Config.m_GfxBackgroundRender || m_pGraphics->WindowOpen()) && m_pGraphics->IsIdle())
{
m_RenderFrames++;

View file

@ -74,6 +74,7 @@ MACRO_CONFIG_INT(GfxTextureQuality, gfx_texture_quality, 1, 0, 1, CFGFLAG_SAVE|C
MACRO_CONFIG_INT(GfxFsaaSamples, gfx_fsaa_samples, 0, 0, 16, CFGFLAG_SAVE|CFGFLAG_CLIENT, "FSAA Samples")
MACRO_CONFIG_INT(GfxRefreshRate, gfx_refresh_rate, 0, 0, 0, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Screen refresh rate")
MACRO_CONFIG_INT(GfxFinish, gfx_finish, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "")
MACRO_CONFIG_INT(GfxBackgroundRender, gfx_backgroundrender, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Render graphics when window is in background")
MACRO_CONFIG_INT(InpMousesens, inp_mousesens, 100, 5, 100000, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Mouse sensitivity")