actually reduce max number of ode spaces
parent
ce1c5de793
commit
9aaaf705f5
|
@ -726,14 +726,14 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY);
|
spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY);
|
||||||
|
|
||||||
// ubit: limit number of spaces
|
// ubit: limit number of spaces
|
||||||
if (spaceGridMaxX > 100)
|
if (spaceGridMaxX > 24)
|
||||||
{
|
{
|
||||||
spaceGridMaxX = 100;
|
spaceGridMaxX = 24;
|
||||||
spacesPerMeterX = spaceGridMaxX / WorldExtents.X ;
|
spacesPerMeterX = spaceGridMaxX / WorldExtents.X ;
|
||||||
}
|
}
|
||||||
if (spaceGridMaxY > 100)
|
if (spaceGridMaxY > 24)
|
||||||
{
|
{
|
||||||
spaceGridMaxY = 100;
|
spaceGridMaxY = 24;
|
||||||
spacesPerMeterY = spaceGridMaxY / WorldExtents.Y;
|
spacesPerMeterY = spaceGridMaxY / WorldExtents.Y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -552,15 +552,15 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
spaceGridMaxX = (int)(WorldExtents.X * spacesPerMeterX);
|
spaceGridMaxX = (int)(WorldExtents.X * spacesPerMeterX);
|
||||||
spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY);
|
spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY);
|
||||||
|
|
||||||
if (spaceGridMaxX > 100)
|
if (spaceGridMaxX > 24)
|
||||||
{
|
{
|
||||||
spaceGridMaxX = 100;
|
spaceGridMaxX = 24;
|
||||||
spacesPerMeterX = spaceGridMaxX / WorldExtents.X ;
|
spacesPerMeterX = spaceGridMaxX / WorldExtents.X ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spaceGridMaxY > 100)
|
if (spaceGridMaxY > 24)
|
||||||
{
|
{
|
||||||
spaceGridMaxY = 100;
|
spaceGridMaxY = 24;
|
||||||
spacesPerMeterY = spaceGridMaxY / WorldExtents.Y ;
|
spacesPerMeterY = spaceGridMaxY / WorldExtents.Y ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue