aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-01-27 03:18:10 +0000
committerTeravus Ovares2008-01-27 03:18:10 +0000
commit205001ab8d1a53338c3d98f52f381269124db928 (patch)
treebaf7106595cb580f4069276186d9a45a20c250b1 /OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
parent* Shifted strategy of detecting specific *nix distributions to detecting *nix. (diff)
downloadopensim-SC-205001ab8d1a53338c3d98f52f381269124db928.zip
opensim-SC-205001ab8d1a53338c3d98f52f381269124db928.tar.gz
opensim-SC-205001ab8d1a53338c3d98f52f381269124db928.tar.bz2
opensim-SC-205001ab8d1a53338c3d98f52f381269124db928.tar.xz
* Highly experimental ODE_STEPSIZE = 0.025f - 1000 / 25 = 40fps - 10 substeps with fallback to 5 substeps when things get slow
* Just to give you an idea of the difference .. previous ODE_STEPSIZE was 0.005f - 1000/5 = 200fps - 10 substeps with fallback to 5 substeps when things get slow * *nix avatar may fall over again, *sorry*
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 0563992..e22b2a1 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -80,7 +80,7 @@ namespace OpenSim.Region.Physics.OdePlugin
80 private const uint m_regionWidth = 256; 80 private const uint m_regionWidth = 256;
81 private const uint m_regionHeight = 256; 81 private const uint m_regionHeight = 256;
82 82
83 private static float ODE_STEPSIZE = 0.004f; 83 private static float ODE_STEPSIZE = 0.025f;
84 private static bool RENDER_FLAG = false; 84 private static bool RENDER_FLAG = false;
85 private static float metersInSpace = 29.9f; 85 private static float metersInSpace = 29.9f;
86 private IntPtr contactgroup; 86 private IntPtr contactgroup;
@@ -1087,7 +1087,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1087 1087
1088 // Figure out the Frames Per Second we're going at. 1088 // Figure out the Frames Per Second we're going at.
1089 //(step_time == 0.004f, there's 250 of those per second. Times the step time/step size 1089 //(step_time == 0.004f, there's 250 of those per second. Times the step time/step size
1090 fps = ((step_time/ODE_STEPSIZE)*(m_physicsiterations*250)); 1090 fps = (step_time/ODE_STEPSIZE) * 1000;
1091 1091
1092 1092
1093 while (step_time > 0.0f) 1093 while (step_time > 0.0f)