Index: binaries/data/config/default.cfg =================================================================== --- binaries/data/config/default.cfg +++ binaries/data/config/default.cfg @@ -458,6 +458,7 @@ icons.enabled = "true" icons.opacity = 1.0 icons.sizescale = 1.0 +entityradiusscale = 1.0 blinkduration = 1.7 ; The blink duration while pinging pingduration = 50.0 ; The duration for which an entity will be pinged after an attack notification Index: source/graphics/MiniMapTexture.cpp =================================================================== --- source/graphics/MiniMapTexture.cpp +++ source/graphics/MiniMapTexture.cpp @@ -511,8 +511,12 @@ // We might scale entities properly in the vertex shader but it requires // additional space in the vertex buffer. So we assume that we don't need // to change an entity size so often. + float entityRadiusScale = 1.0f; + CFG_GET_VAL("gui.session.minimap.entityradiusscale", entityRadiusScale); + // Compensate circular maps for being rendered closer than square maps. + entityRadiusScale /= std::sqrt(2.0f); // Radius with instancing is lower because an entity has a more round shape. - const float entityRadius = static_cast(m_MapSize) / 128.0f * (m_UseInstancing ? 5.0 : 6.0f); + const float entityRadius = static_cast(m_MapSize) / 128.0f * (m_UseInstancing ? 5.0 : 6.0f) * entityRadiusScale; UpdateAndUploadEntities(deviceCommandContext, entityRadius, currentTime);