aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/MySceneObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/MySceneObject.cs')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MySceneObject.cs35
1 files changed, 0 insertions, 35 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MySceneObject.cs b/OpenSim/Region/Examples/SimpleApp/MySceneObject.cs
deleted file mode 100644
index 3828b9d..0000000
--- a/OpenSim/Region/Examples/SimpleApp/MySceneObject.cs
+++ /dev/null
@@ -1,35 +0,0 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Region.Environment.Scenes;
5using libsecondlife;
6using OpenSim.Framework.Types;
7using System.Timers;
8using System.Diagnostics;
9
10namespace SimpleApp
11{
12 public class MySceneObject : SceneObject
13 {
14 private PerformanceCounter m_counter;
15
16 public MySceneObject(Scene world, EventManager eventManager, LLUUID ownerID, uint localID, LLVector3 pos, PrimitiveBaseShape shape)
17 : base(world, eventManager, ownerID, localID, pos, shape )
18 {
19 String objectName = "Processor";
20 String counterName = "% Processor Time";
21 String instanceName = "_Total";
22
23 m_counter = new PerformanceCounter(objectName, counterName, instanceName);
24 }
25
26 public override void Update( )
27 {
28 float cpu = m_counter.NextValue() / 40f;
29 LLVector3 size = new LLVector3(cpu, cpu, cpu);
30 rootPrimitive.ResizeGoup( size );
31
32 base.Update();
33 }
34 }
35}