aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-07 08:15:38 +0000
committerTeravus Ovares2008-02-07 08:15:38 +0000
commit3674257095f0c511b1f5810fdc034c2d49bb73a8 (patch)
treea9b4cda92de5ef51d7626b526aa19cd5a563089d /OpenSim/Region/Environment/Scenes/Scene.cs
parent* didn't save :P so, this is the other half to my last commit (diff)
downloadopensim-SC_OLD-3674257095f0c511b1f5810fdc034c2d49bb73a8.zip
opensim-SC_OLD-3674257095f0c511b1f5810fdc034c2d49bb73a8.tar.gz
opensim-SC_OLD-3674257095f0c511b1f5810fdc034c2d49bb73a8.tar.bz2
opensim-SC_OLD-3674257095f0c511b1f5810fdc034c2d49bb73a8.tar.xz
* This update contains a bucket-full of network optimizations.
* ParcelProperties are sent only when needed instead of on any movement * Terse Updates and other temporary data packets are marked unreliable * After a certain amount of users, the sim actually sends updates on things less * Experimental * Tested to 68 avatar with pCampBot (And it's surprising what actually causes the most lag.. the text chat!)
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs23
1 files changed, 22 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 6b891fd..a62e6c6 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -626,7 +626,28 @@ namespace OpenSim.Region.Environment.Scenes
626 // Aquire a lock so only one update call happens at once 626 // Aquire a lock so only one update call happens at once
627 updateLock.WaitOne(); 627 updateLock.WaitOne();
628 float physicsFPS = 0; 628 float physicsFPS = 0;
629 629 int agentsInScene = m_innerScene.GetRootAgentCount() + m_innerScene.GetChildAgentCount();
630
631 if (agentsInScene > 21)
632 {
633 if (m_update_entities == 1)
634 {
635 m_update_avatars = 5;
636 m_update_entities = 5;
637 m_statsReporter.SetUpdateMS(6000);
638 }
639 }
640 else
641 {
642 if (m_update_entities == 5)
643 {
644 m_update_avatars = 1;
645 m_update_entities = 1;
646 m_statsReporter.SetUpdateMS(3000);
647 }
648 }
649
650
630 frameMS = System.Environment.TickCount; 651 frameMS = System.Environment.TickCount;
631 try 652 try
632 { 653 {