diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 23 |
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 | { |