actually reduce max number of ode spaces

avinationmerge
UbitUmarov 2015-09-04 16:37:45 +01:00
parent ce1c5de793
commit 9aaaf705f5
2 changed files with 8 additions and 8 deletions

View File

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

View File

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