From 471eb3dd267e8c9571a885afea1a2216709da193 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Sun, 16 Oct 2022 22:42:00 +0300 Subject: [PATCH] game/client(android): view optimization --- game/client/view.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/game/client/view.cpp b/game/client/view.cpp index 3aa035b20a..d2f72e8aa7 100644 --- a/game/client/view.cpp +++ b/game/client/view.cpp @@ -118,7 +118,13 @@ ConVar mat_viewportscale( "mat_viewportscale", "1.0", FCVAR_ARCHIVE, "Scale down ConVar mat_viewportupscale( "mat_viewportupscale", "1", FCVAR_ARCHIVE, "Scale the viewport back up" ); ConVar cl_leveloverview( "cl_leveloverview", "0", FCVAR_CHEAT ); -static ConVar r_mapextents( "r_mapextents", "16384", FCVAR_CHEAT, +#ifdef ANDROID +#define MAPEXTENTS_DEFAULT "12288" // small optimization +#else +#define MAPEXTENTS_DEFAULT "16384" +#endif + +static ConVar r_mapextents( "r_mapextents", MAPEXTENTS_DEFAULT, FCVAR_CHEAT, "Set the max dimension for the map. This determines the far clipping plane" ); // UNDONE: Delete this or move to the material system?