aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorJohn Hurliman2010-05-21 14:04:10 -0700
committerJohn Hurliman2010-05-21 14:04:10 -0700
commitabd5d1f7470ba07b784c6dbad4cdcdeaedc58d37 (patch)
treef955198e2723b6faef4fc6bc8d241a28c8d15fab /OpenSim/Region/Framework
parent* Moving all of the prioritization/reprioritization code into a new file Prio... (diff)
downloadopensim-SC_OLD-abd5d1f7470ba07b784c6dbad4cdcdeaedc58d37.zip
opensim-SC_OLD-abd5d1f7470ba07b784c6dbad4cdcdeaedc58d37.tar.gz
opensim-SC_OLD-abd5d1f7470ba07b784c6dbad4cdcdeaedc58d37.tar.bz2
opensim-SC_OLD-abd5d1f7470ba07b784c6dbad4cdcdeaedc58d37.tar.xz
* Added code comments to Prioritizer.cs that document how to add a new update priority policy
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Prioritizer.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
index af25014..e6a4642 100644
--- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs
+++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
@@ -5,6 +5,18 @@ using Nini.Config;
5using OpenSim.Framework; 5using OpenSim.Framework;
6using OpenMetaverse; 6using OpenMetaverse;
7 7
8/*
9 * Steps to add a new prioritization policy:
10 *
11 * - Add a new value to the UpdatePrioritizationSchemes enum.
12 * - Specify this new value in the [InterestManagement] section of your
13 * OpenSim.ini. The name in the config file must match the enum value name
14 * (although it is not case sensitive).
15 * - Write a new GetPriorityBy*() method in this class.
16 * - Add a new entry to the switch statement in GetUpdatePriority() that calls
17 * your method.
18 */
19
8namespace OpenSim.Region.Framework.Scenes 20namespace OpenSim.Region.Framework.Scenes
9{ 21{
10 public enum UpdatePrioritizationSchemes 22 public enum UpdatePrioritizationSchemes
@@ -35,7 +47,7 @@ namespace OpenSim.Region.Framework.Scenes
35 case UpdatePrioritizationSchemes.Distance: 47 case UpdatePrioritizationSchemes.Distance:
36 return GetPriorityByDistance(client, entity); 48 return GetPriorityByDistance(client, entity);
37 case UpdatePrioritizationSchemes.SimpleAngularDistance: 49 case UpdatePrioritizationSchemes.SimpleAngularDistance:
38 return GetPriorityByDistance(client, entity); 50 return GetPriorityByDistance(client, entity); // TODO: Reimplement SimpleAngularDistance
39 case UpdatePrioritizationSchemes.FrontBack: 51 case UpdatePrioritizationSchemes.FrontBack:
40 return GetPriorityByFrontBack(client, entity); 52 return GetPriorityByFrontBack(client, entity);
41 default: 53 default: