diff options
author | UbitUmarov | 2018-12-28 13:52:59 +0000 |
---|---|---|
committer | UbitUmarov | 2018-12-28 13:52:59 +0000 |
commit | 4a73cc81dc4e03b2b7c46829cecfc0627c3fddb4 (patch) | |
tree | 6e8200b3b7a3c0465853e42bbd790a59ccd4e312 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | update pbs (diff) | |
download | opensim-SC-4a73cc81dc4e03b2b7c46829cecfc0627c3fddb4.zip opensim-SC-4a73cc81dc4e03b2b7c46829cecfc0627c3fddb4.tar.gz opensim-SC-4a73cc81dc4e03b2b7c46829cecfc0627c3fddb4.tar.bz2 opensim-SC-4a73cc81dc4e03b2b7c46829cecfc0627c3fddb4.tar.xz |
now break several things at same time... sog/sop updates, threads options,...
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 502bbda..e5aa21e 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -62,9 +62,23 @@ namespace OpenSim.Region.Framework.Scenes | |||
62 | private const long DEFAULT_MIN_TIME_FOR_PERSISTENCE = 60L; | 62 | private const long DEFAULT_MIN_TIME_FOR_PERSISTENCE = 60L; |
63 | private const long DEFAULT_MAX_TIME_FOR_PERSISTENCE = 600L; | 63 | private const long DEFAULT_MAX_TIME_FOR_PERSISTENCE = 600L; |
64 | 64 | ||
65 | |||
66 | public delegate void SynchronizeSceneHandler(Scene scene); | 65 | public delegate void SynchronizeSceneHandler(Scene scene); |
67 | 66 | ||
67 | protected static int m_animationSequenceNumber = (int)(Util.GetTimeStampTicks() & 0x5fffafL); | ||
68 | |||
69 | public int NextObjectAnimationSequenceNumber | ||
70 | { | ||
71 | get | ||
72 | { | ||
73 | int ret = Interlocked.Increment(ref m_animationSequenceNumber); | ||
74 | if (ret <= 0 ) | ||
75 | { | ||
76 | m_animationSequenceNumber = (int)(Util.GetTimeStampTicks() & 0xafff5fL); | ||
77 | ret = Interlocked.Increment(ref m_animationSequenceNumber); | ||
78 | } | ||
79 | return ret; | ||
80 | } | ||
81 | } | ||
68 | #region Fields | 82 | #region Fields |
69 | 83 | ||
70 | /// <summary> | 84 | /// <summary> |
@@ -945,6 +959,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
945 | 959 | ||
946 | PhysicalPrims = startupConfig.GetBoolean("physical_prim", true); | 960 | PhysicalPrims = startupConfig.GetBoolean("physical_prim", true); |
947 | CollidablePrims = startupConfig.GetBoolean("collidable_prim", true); | 961 | CollidablePrims = startupConfig.GetBoolean("collidable_prim", true); |
962 | |||
948 | m_minNonphys = startupConfig.GetFloat("NonPhysicalPrimMin", m_minNonphys); | 963 | m_minNonphys = startupConfig.GetFloat("NonPhysicalPrimMin", m_minNonphys); |
949 | if (RegionInfo.NonphysPrimMin > 0) | 964 | if (RegionInfo.NonphysPrimMin > 0) |
950 | { | 965 | { |
@@ -1547,10 +1562,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1547 | // tell physics to finish building actor | 1562 | // tell physics to finish building actor |
1548 | m_sceneGraph.ProcessPhysicsPreSimulation(); | 1563 | m_sceneGraph.ProcessPhysicsPreSimulation(); |
1549 | 1564 | ||
1550 | m_heartbeatThread | 1565 | m_heartbeatThread = WorkManager.StartThread( |
1551 | = WorkManager.StartThread( | 1566 | Heartbeat, string.Format("Heartbeat-({0})", RegionInfo.RegionName.Replace(" ", "_")), ThreadPriority.Normal, false, |
1552 | Heartbeat, string.Format("Heartbeat-({0})", RegionInfo.RegionName.Replace(" ", "_")), ThreadPriority.Normal, false, false); | 1567 | false, null, 20000, false); |
1553 | |||
1554 | StartScripts(); | 1568 | StartScripts(); |
1555 | } | 1569 | } |
1556 | 1570 | ||
@@ -1943,7 +1957,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1943 | { | 1957 | { |
1944 | if (!m_backingup) | 1958 | if (!m_backingup) |
1945 | { | 1959 | { |
1946 | WorkManager.RunInThreadPool(o => Backup(false), null, string.Format("BackupWorker ({0}", Name), false); | 1960 | WorkManager.RunInThreadPool(o => Backup(false), null, string.Format("BackupWorker ({0})", Name), false); |
1947 | } | 1961 | } |
1948 | } | 1962 | } |
1949 | 1963 | ||