aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorDan Lake2010-06-08 16:30:51 -0700
committerJohn Hurliman2010-06-08 16:44:18 -0700
commitca2abc43ad440a99f17b43d32de89e77fdeef00e (patch)
treeac8787b8db9c38d4875cc4123245006084e35609 /OpenSim/Region/CoreModules
parentMerge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-ca2abc43ad440a99f17b43d32de89e77fdeef00e.zip
opensim-SC_OLD-ca2abc43ad440a99f17b43d32de89e77fdeef00e.tar.gz
opensim-SC_OLD-ca2abc43ad440a99f17b43d32de89e77fdeef00e.tar.bz2
opensim-SC_OLD-ca2abc43ad440a99f17b43d32de89e77fdeef00e.tar.xz
Refactor SendCoarseLocations for better performance. Instead of computing list of all locations fresh for every scene presence on every frame, we will instead compute the list once every 50 frames and send to all connected presences at that time. Also, we only add 60 items to the list when there are more than 60 presences in the scene. For 1000 users, this change yields a 99.8% reduction in list processing and a 98% reduction in network bandwidth for coarse locations.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs3
1 files changed, 0 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 1e3e0c9..0707119 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -865,9 +865,6 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
865 865
866 CrossAttachmentsIntoNewRegion(neighbourRegion, agent, true); 866 CrossAttachmentsIntoNewRegion(neighbourRegion, agent, true);
867 867
868 // m_scene.SendKillObject(m_localId);
869
870 agent.Scene.NotifyMyCoarseLocationChange();
871 // the user may change their profile information in other region, 868 // the user may change their profile information in other region,
872 // so the userinfo in UserProfileCache is not reliable any more, delete it 869 // so the userinfo in UserProfileCache is not reliable any more, delete it
873 // REFACTORING PROBLEM. Well, not a problem, but this method is HORRIBLE! 870 // REFACTORING PROBLEM. Well, not a problem, but this method is HORRIBLE!