From a6a00929962638798c5b8c6862b6b9d3713a4be9 Mon Sep 17 00:00:00 2001 From: def Date: Mon, 20 Dec 2021 17:26:48 +0100 Subject: [PATCH] Actually remove gfx_asyncrender_old --- src/engine/client/client.cpp | 7 ++++++- src/engine/shared/config_variables.h | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 4d20299e6..b5ddb5c7a 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -3295,8 +3295,13 @@ void CClient::Run() bool IsRenderActive = (g_Config.m_GfxBackgroundRender || m_pGraphics->WindowOpen()); + bool AsyncRenderOld = false; +#if !defined(CONF_PLATFORM_MACOS) + AsyncRenderOld = g_Config.m_GfxAsyncRenderOld; +#endif + if(IsRenderActive && - (!g_Config.m_GfxAsyncRenderOld || m_pGraphics->IsIdle()) && + (!AsyncRenderOld || m_pGraphics->IsIdle()) && (!g_Config.m_GfxRefreshRate || (time_freq() / (int64_t)g_Config.m_GfxRefreshRate) <= Now - LastRenderTime)) { m_RenderFrames++; diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index 6ae0fc217..8ce05e513 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -122,8 +122,6 @@ MACRO_CONFIG_INT(GfxBackgroundRender, gfx_backgroundrender, 1, 0, 1, CFGFLAG_SAV MACRO_CONFIG_INT(GfxTextOverlay, gfx_text_overlay, 10, 1, 100, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Stop rendering textoverlay in editor or with entities: high value = less details = more speed") #if !defined(CONF_PLATFORM_MACOS) MACRO_CONFIG_INT(GfxAsyncRenderOld, gfx_asyncrender_old, 1, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Do rendering async from the the update") -#else -MACRO_CONFIG_INT(GfxAsyncRenderOld, gfx_asyncrender_old, 0, 0, 0, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Do rendering async from the the update") #endif MACRO_CONFIG_INT(GfxTuneOverlay, gfx_tune_overlay, 20, 1, 100, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Stop rendering text overlay in tuning zone in editor: high value = less details = more speed") MACRO_CONFIG_INT(GfxQuadAsTriangle, gfx_quad_as_triangle, 0, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Render quads as triangles (fixes quad coloring on some GPUs)")