From ce1c5de793e95134a0844e69e175dd0da4e6ceee Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 4 Sep 2015 15:47:21 +0100 Subject: bug fix on ode spaces and allow more of them on large regions --- OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Physics/OdePlugin') diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 0e71e7f..243a323 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs @@ -726,15 +726,15 @@ namespace OpenSim.Region.Physics.OdePlugin spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY); // ubit: limit number of spaces - if (spaceGridMaxX > 40) + if (spaceGridMaxX > 100) { - spaceGridMaxX = 40; - spacesPerMeterX = WorldExtents.X / spaceGridMaxX; + spaceGridMaxX = 100; + spacesPerMeterX = spaceGridMaxX / WorldExtents.X ; } - if (spaceGridMaxY > 40) + if (spaceGridMaxY > 100) { - spaceGridMaxY = 40; - spacesPerMeterY = WorldExtents.X / spaceGridMaxY; + spaceGridMaxY = 100; + spacesPerMeterY = spaceGridMaxY / WorldExtents.Y; } staticPrimspace = new IntPtr[spaceGridMaxX, spaceGridMaxY]; -- cgit v1.1