diff options
author | UbitUmarov | 2015-12-19 17:29:51 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-19 17:29:51 +0000 |
commit | 48f6010a1ccc8470d6324d41de9f934b503a5b84 (patch) | |
tree | a3a36702c08e4b4513cc7569ff054bb10d712204 /OpenSim/Region/Framework/Scenes/Prioritizer.cs | |
parent | update the xmlrpcGroups http keep alive option, and coment (diff) | |
download | opensim-SC_OLD-48f6010a1ccc8470d6324d41de9f934b503a5b84.zip opensim-SC_OLD-48f6010a1ccc8470d6324d41de9f934b503a5b84.tar.gz opensim-SC_OLD-48f6010a1ccc8470d6324d41de9f934b503a5b84.tar.bz2 opensim-SC_OLD-48f6010a1ccc8470d6324d41de9f934b503a5b84.tar.xz |
a more clean enforcement of BestAvatarResponsiveness (others aren't good at moment
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Prioritizer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Prioritizer.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs index bd9d580..c913ec2 100644 --- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs +++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs | |||
@@ -91,14 +91,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
91 | return 0; | 91 | return 0; |
92 | 92 | ||
93 | uint priority; | 93 | uint priority; |
94 | |||
95 | |||
96 | // HACK | ||
97 | return GetPriorityByBestAvatarResponsiveness(client, entity); | ||
98 | |||
99 | 94 | ||
100 | switch (m_scene.UpdatePrioritizationScheme) | 95 | switch (m_scene.UpdatePrioritizationScheme) |
101 | { | 96 | { |
97 | /* | ||
102 | case UpdatePrioritizationSchemes.Time: | 98 | case UpdatePrioritizationSchemes.Time: |
103 | priority = GetPriorityByTime(client, entity); | 99 | priority = GetPriorityByTime(client, entity); |
104 | break; | 100 | break; |
@@ -111,11 +107,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
111 | case UpdatePrioritizationSchemes.FrontBack: | 107 | case UpdatePrioritizationSchemes.FrontBack: |
112 | priority = GetPriorityByFrontBack(client, entity); | 108 | priority = GetPriorityByFrontBack(client, entity); |
113 | break; | 109 | break; |
110 | */ | ||
114 | case UpdatePrioritizationSchemes.BestAvatarResponsiveness: | 111 | case UpdatePrioritizationSchemes.BestAvatarResponsiveness: |
112 | default: | ||
115 | priority = GetPriorityByBestAvatarResponsiveness(client, entity); | 113 | priority = GetPriorityByBestAvatarResponsiveness(client, entity); |
116 | break; | 114 | break; |
117 | default: | ||
118 | throw new InvalidOperationException("UpdatePrioritizationScheme not defined."); | ||
119 | } | 115 | } |
120 | 116 | ||
121 | return priority; | 117 | return priority; |