From 081f4403ea2a2f8352d480910052bf5032e2e4a5 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 12 Dec 2007 06:58:55 +0000 Subject: * Added some simstats to fill the simulator pane of the Statistics monitor. * I stress, this is an initial implementation and the Agents(Child and Root) are definately obviously incorrect. --- OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Physics/POSPlugin') diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs index 4355c5e..efc30fe 100644 --- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs +++ b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs @@ -169,10 +169,12 @@ namespace OpenSim.Region.Physics.POSPlugin } - public override void Simulate(float timeStep) + public override float Simulate(float timeStep) { + float fps = 0; for (int i = 0; i < _characters.Count; ++i) { + fps++; POSCharacter character = _characters[i]; float oldposX = character.Position.X; @@ -286,6 +288,7 @@ namespace OpenSim.Region.Physics.POSPlugin character._velocity.Z = (character.Position.Z - oldposZ) / timeStep; } } + return fps; } public override void GetResults() -- cgit v1.1