From 9aaaf705f52fb4fbbad526d40ed74eba71152e1c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 4 Sep 2015 16:37:45 +0100 Subject: actually reduce max number of ode spaces --- OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 8 ++++---- OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/Physics') diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 243a323..812b469 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs @@ -726,14 +726,14 @@ namespace OpenSim.Region.Physics.OdePlugin spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY); // ubit: limit number of spaces - if (spaceGridMaxX > 100) + if (spaceGridMaxX > 24) { - spaceGridMaxX = 100; + spaceGridMaxX = 24; spacesPerMeterX = spaceGridMaxX / WorldExtents.X ; } - if (spaceGridMaxY > 100) + if (spaceGridMaxY > 24) { - spaceGridMaxY = 100; + spaceGridMaxY = 24; spacesPerMeterY = spaceGridMaxY / WorldExtents.Y; } diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs index c688727..e8c219c 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs @@ -552,15 +552,15 @@ namespace OpenSim.Region.Physics.OdePlugin spaceGridMaxX = (int)(WorldExtents.X * spacesPerMeterX); spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY); - if (spaceGridMaxX > 100) + if (spaceGridMaxX > 24) { - spaceGridMaxX = 100; + spaceGridMaxX = 24; spacesPerMeterX = spaceGridMaxX / WorldExtents.X ; } - if (spaceGridMaxY > 100) + if (spaceGridMaxY > 24) { - spaceGridMaxY = 100; + spaceGridMaxY = 24; spacesPerMeterY = spaceGridMaxY / WorldExtents.Y ; } -- cgit v1.1