mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add gfx_backgroundrender to fix crashes on some systems
This commit is contained in:
parent
51012d479b
commit
41703cd5b9
|
@ -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++;
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue