diff options
author | UbitUmarov | 2015-11-05 16:57:48 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-05 16:57:48 +0000 |
commit | f8efd00775566f4e9628374102be64b3dfe13dca (patch) | |
tree | 860c667d63f604e204b5ad05e1ab9ef6337dd65b | |
parent | fix get/set parameters on avatars (diff) | |
download | opensim-SC_OLD-f8efd00775566f4e9628374102be64b3dfe13dca.zip opensim-SC_OLD-f8efd00775566f4e9628374102be64b3dfe13dca.tar.gz opensim-SC_OLD-f8efd00775566f4e9628374102be64b3dfe13dca.tar.bz2 opensim-SC_OLD-f8efd00775566f4e9628374102be64b3dfe13dca.tar.xz |
add a console/log warning about large physics meshs on ubOde that can have negative impact on region load
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
1479 | return false; | 1479 | return false; |
1480 | } | 1480 | } |
1481 | 1481 | ||
1482 | if (vertexCount > 64000 || indexCount > 64000) | ||
1483 | { | ||
1484 | m_log.WarnFormat("[PHYSICS]: large mesh data on OdePrim {0}, mesh {1} at {2}, {3} vertices, {4} indexes", | ||
1485 | Name, _pbs.SculptEntry ? _pbs.SculptTexture.ToString() : "primMesh", | ||
1486 | _position.ToString() ,vertexCount , indexCount ); | ||
1487 | } | ||
1482 | IntPtr geo = IntPtr.Zero; | 1488 | IntPtr geo = IntPtr.Zero; |
1483 | 1489 | ||
1484 | try | 1490 | try |