aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-10-21 17:58:17 +0100
committerUbitUmarov2016-10-21 17:58:17 +0100
commit2ce0673af25901564060edab9e9ce67bbcc7c914 (patch)
treeeae37a850319184ea16c30ffb8b62cf950423f1b
parentMerge branch 'master' into httptests (diff)
parentignore prims with shape type none on max size check for physics (diff)
downloadopensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.zip
opensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.tar.gz
opensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.tar.bz2
opensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.tar.xz
Merge branch 'master' into httptests
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs9
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs20
-rw-r--r--bin/OpenSim.ini.example8
-rw-r--r--bin/OpenSimDefaults.ini11
4 files changed, 28 insertions, 20 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 2650be4..fd3f997 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -6173,8 +6173,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6173 6173
6174 // Threshold for body rotation to be a significant agent update 6174 // Threshold for body rotation to be a significant agent update
6175 // use the abs of cos 6175 // use the abs of cos
6176 private const float QDELTABody = 1.0f - 0.0001f; 6176 private const float QDELTABody = 1.0f - 0.00005f;
6177 private const float QDELTAHead = 1.0f - 0.0001f; 6177 private const float QDELTAHead = 1.0f - 0.00005f;
6178 // Threshold for camera rotation to be a significant agent update 6178 // Threshold for camera rotation to be a significant agent update
6179 private const float VDELTA = 0.01f; 6179 private const float VDELTA = 0.01f;
6180 6180
@@ -6199,8 +6199,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6199 { 6199 {
6200 if( 6200 if(
6201 (x.ControlFlags != m_thisAgentUpdateArgs.ControlFlags) // significant if control flags changed 6201 (x.ControlFlags != m_thisAgentUpdateArgs.ControlFlags) // significant if control flags changed
6202 || ((x.ControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0 && 6202// || ((x.ControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0 &&
6203 (x.ControlFlags & 0x3f8dfff) != 0) // we need to rotate the av on fly 6203// (x.ControlFlags & 0x3f8dfff) != 0) // we need to rotate the av on fly
6204 || x.ControlFlags != (byte)AgentManager.ControlFlags.NONE// actually all movement controls need to pass
6204 || (x.Flags != m_thisAgentUpdateArgs.Flags) // significant if Flags changed 6205 || (x.Flags != m_thisAgentUpdateArgs.Flags) // significant if Flags changed
6205 || (x.State != m_thisAgentUpdateArgs.State) // significant if Stats changed 6206 || (x.State != m_thisAgentUpdateArgs.State) // significant if Stats changed
6206 || (Math.Abs(x.Far - m_thisAgentUpdateArgs.Far) >= 32) // significant if far distance changed 6207 || (Math.Abs(x.Far - m_thisAgentUpdateArgs.Far) >= 32) // significant if far distance changed
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 53a9441..e643db7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -3869,15 +3869,11 @@ namespace OpenSim.Region.Framework.Scenes
3869 for (int i = 0; i < parts.Length; i++) 3869 for (int i = 0; i < parts.Length; i++)
3870 { 3870 {
3871 SceneObjectPart part = parts[i]; 3871 SceneObjectPart part = parts[i];
3872 if (part.Scale.X > m_scene.m_maxPhys ||
3873 part.Scale.Y > m_scene.m_maxPhys ||
3874 part.Scale.Z > m_scene.m_maxPhys )
3875 {
3876 UsePhysics = false; // Reset physics
3877 break;
3878 }
3879 3872
3880 if (checkShape && part.PhysicsShapeType != (byte)PhysicsShapeType.None) 3873 if(part.PhysicsShapeType == (byte)PhysicsShapeType.None)
3874 continue; // assuming root type was checked elsewhere
3875
3876 if (checkShape)
3881 { 3877 {
3882 if (--maxprims < 0) 3878 if (--maxprims < 0)
3883 { 3879 {
@@ -3885,6 +3881,14 @@ namespace OpenSim.Region.Framework.Scenes
3885 break; 3881 break;
3886 } 3882 }
3887 } 3883 }
3884
3885 if (part.Scale.X > m_scene.m_maxPhys ||
3886 part.Scale.Y > m_scene.m_maxPhys ||
3887 part.Scale.Z > m_scene.m_maxPhys )
3888 {
3889 UsePhysics = false; // Reset physics
3890 break;
3891 }
3888 } 3892 }
3889 } 3893 }
3890 3894
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example
index 36dae35..1d90469 100644
--- a/bin/OpenSim.ini.example
+++ b/bin/OpenSim.ini.example
@@ -927,7 +927,7 @@
927 ;; The trade-off may be increased memory usage by the script engine. 927 ;; The trade-off may be increased memory usage by the script engine.
928 ; ThreadStackSize = 262144 928 ; ThreadStackSize = 262144
929 929
930 ;; Set this to true (the default) to load each script into a separate 930 ;; Set this to true to load each script into a separate
931 ;; AppDomain. 931 ;; AppDomain.
932 ;; 932 ;;
933 ;; Setting this to false will load all script assemblies into the 933 ;; Setting this to false will load all script assemblies into the
@@ -936,8 +936,10 @@
936 ;; 936 ;;
937 ;; However, setting this to false will also prevent script DLLs from being unloaded from memory if the script is deleted. 937 ;; However, setting this to false will also prevent script DLLs from being unloaded from memory if the script is deleted.
938 ;; This may cause an OutOfMemory problem over time when avatars with scripted attachments move in and out of the region. 938 ;; This may cause an OutOfMemory problem over time when avatars with scripted attachments move in and out of the region.
939 ;; Some Windows users have also reported script loading problems when AppDomainLoading = false 939 ;; at this time some mono versions seem to have problems with the true option
940 ; AppDomainLoading = true 940 ;; so default is now false until a fix is found, to simply life of less technical skilled users.
941 ;; this should only be a issue if regions stay alive for a long time with lots of scripts added or edited.
942 ; AppDomainLoading = false
941 943
942 ;; Controls whether scripts are stopped by aborting their threads externally (abort) or by co-operative checks from the compiled script (co-op) 944 ;; Controls whether scripts are stopped by aborting their threads externally (abort) or by co-operative checks from the compiled script (co-op)
943 ;; co-op will be more stable but this option is currently experimental. 945 ;; co-op will be more stable but this option is currently experimental.
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini
index bd37748..f10596e 100644
--- a/bin/OpenSimDefaults.ini
+++ b/bin/OpenSimDefaults.ini
@@ -1693,12 +1693,13 @@
1693 ; Stack size per thread created 1693 ; Stack size per thread created
1694 ThreadStackSize = 262144 1694 ThreadStackSize = 262144
1695 1695
1696 ; Set this to true (the default) to load each script into a separate 1696 ; Set this to true to load each script into a separate
1697 ; AppDomain. Setting this to false will load all script assemblies into the 1697 ; AppDomain. Setting this to false will load all script assemblies into the
1698 ; current AppDomain, which will reduce the per-script overhead at the 1698 ; current AppDomain, which will reduce the per-script overhead but deleted scripts stay inactive using memory
1699 ; expense of reduced security and the inability to garbage collect the 1699 ; this may only be a problem if regions stay alive for a long time with lots of scripts added or edited.
1700 ; script assemblies 1700 ; at this time some mono versions seem to have problems with the true option
1701 AppDomainLoading = true 1701 ; so default is now false until a fix is found
1702 AppDomainLoading = false
1702 1703
1703 ; Controls whether previously compiled scripts DLLs are deleted on sim restart. If you set this to false 1704 ; Controls whether previously compiled scripts DLLs are deleted on sim restart. If you set this to false
1704 ; then startup will be considerably faster since scripts won't need to be recompiled. However, then it becomes your responsibility to delete the 1705 ; then startup will be considerably faster since scripts won't need to be recompiled. However, then it becomes your responsibility to delete the