add a console/log warning about large physics meshs on ubOde that can have negative impact on region load

avinationmerge
UbitUmarov 2015-11-05 16:57:48 +00:00
parent dc752e8d82
commit f8efd00775
1 changed files with 6 additions and 0 deletions

View File

@ -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