aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2012-10-28 14:32:55 +0000
committerUbitUmarov2012-10-28 14:32:55 +0000
commitfbe4ec8ee0b56ca4490f5a7439aa287ff37e2e9d (patch)
treedf3f8284a9ad3b5f5b47a146eb2674063707cdbb /OpenSim/Region
parentminor change (diff)
downloadopensim-SC-fbe4ec8ee0b56ca4490f5a7439aa287ff37e2e9d.zip
opensim-SC-fbe4ec8ee0b56ca4490f5a7439aa287ff37e2e9d.tar.gz
opensim-SC-fbe4ec8ee0b56ca4490f5a7439aa287ff37e2e9d.tar.bz2
opensim-SC-fbe4ec8ee0b56ca4490f5a7439aa287ff37e2e9d.tar.xz
fix ode timing
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
index 0194c21..eb0a514 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
@@ -1692,7 +1692,6 @@ namespace OpenSim.Region.Physics.OdePlugin
1692 1692
1693 DateTime now = DateTime.UtcNow; 1693 DateTime now = DateTime.UtcNow;
1694 TimeSpan timedif = now - m_lastframe; 1694 TimeSpan timedif = now - m_lastframe;
1695 m_lastframe = now;
1696 timeStep = (float)timedif.TotalSeconds; 1695 timeStep = (float)timedif.TotalSeconds;
1697 1696
1698 // acumulate time so we can reduce error 1697 // acumulate time so we can reduce error
@@ -1704,6 +1703,8 @@ namespace OpenSim.Region.Physics.OdePlugin
1704 if (framecount < 0) 1703 if (framecount < 0)
1705 framecount = 0; 1704 framecount = 0;
1706 1705
1706 m_lastframe = now;
1707
1707 framecount++; 1708 framecount++;
1708 1709
1709 int curphysiteractions; 1710 int curphysiteractions;