From f8efd00775566f4e9628374102be64b3dfe13dca Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 5 Nov 2015 16:57:48 +0000 Subject: add a console/log warning about large physics meshs on ubOde that can have negative impact on region load --- OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs index 7d57cb4..6e2f877 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs @@ -1479,6 +1479,12 @@ namespace OpenSim.Region.PhysicsModule.ubOde return false; } + if (vertexCount > 64000 || indexCount > 64000) + { + m_log.WarnFormat("[PHYSICS]: large mesh data on OdePrim {0}, mesh {1} at {2}, {3} vertices, {4} indexes", + Name, _pbs.SculptEntry ? _pbs.SculptTexture.ToString() : "primMesh", + _position.ToString() ,vertexCount , indexCount ); + } IntPtr geo = IntPtr.Zero; try -- cgit v1.1