aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-09-04 15:47:21 +0100
committerUbitUmarov2015-09-04 15:47:21 +0100
commitce1c5de793e95134a0844e69e175dd0da4e6ceee (patch)
treef4693991aadd95eed147525e8a164f3eadd5b848 /OpenSim/Region/Physics/OdePlugin/OdeScene.cs
parentremove a forgotten 1000.9 factor on physics fps (diff)
downloadopensim-SC-ce1c5de793e95134a0844e69e175dd0da4e6ceee.zip
opensim-SC-ce1c5de793e95134a0844e69e175dd0da4e6ceee.tar.gz
opensim-SC-ce1c5de793e95134a0844e69e175dd0da4e6ceee.tar.bz2
opensim-SC-ce1c5de793e95134a0844e69e175dd0da4e6ceee.tar.xz
bug fix on ode spaces and allow more of them on large regions
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/OdeScene.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdeScene.cs12
1 files changed, 6 insertions, 6 deletions
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
726 spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY); 726 spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY);
727 727
728 // ubit: limit number of spaces 728 // ubit: limit number of spaces
729 if (spaceGridMaxX > 40) 729 if (spaceGridMaxX > 100)
730 { 730 {
731 spaceGridMaxX = 40; 731 spaceGridMaxX = 100;
732 spacesPerMeterX = WorldExtents.X / spaceGridMaxX; 732 spacesPerMeterX = spaceGridMaxX / WorldExtents.X ;
733 } 733 }
734 if (spaceGridMaxY > 40) 734 if (spaceGridMaxY > 100)
735 { 735 {
736 spaceGridMaxY = 40; 736 spaceGridMaxY = 100;
737 spacesPerMeterY = WorldExtents.X / spaceGridMaxY; 737 spacesPerMeterY = spaceGridMaxY / WorldExtents.Y;
738 } 738 }
739 739
740 staticPrimspace = new IntPtr[spaceGridMaxX, spaceGridMaxY]; 740 staticPrimspace = new IntPtr[spaceGridMaxX, spaceGridMaxY];