diff options
author | Teravus Ovares | 2007-12-12 06:58:55 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-12 06:58:55 +0000 |
commit | 081f4403ea2a2f8352d480910052bf5032e2e4a5 (patch) | |
tree | 9eeda0d127f84b1e0538ac834e7921a074b6503e /OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | |
parent | * Patch from justincc to fix Inconsistent automatic mysql table creation - se... (diff) | |
download | opensim-SC-081f4403ea2a2f8352d480910052bf5032e2e4a5.zip opensim-SC-081f4403ea2a2f8352d480910052bf5032e2e4a5.tar.gz opensim-SC-081f4403ea2a2f8352d480910052bf5032e2e4a5.tar.bz2 opensim-SC-081f4403ea2a2f8352d480910052bf5032e2e4a5.tar.xz |
* 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.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |||
169 | 169 | ||
170 | } | 170 | } |
171 | 171 | ||
172 | public override void Simulate(float timeStep) | 172 | public override float Simulate(float timeStep) |
173 | { | 173 | { |
174 | float fps = 0; | ||
174 | for (int i = 0; i < _characters.Count; ++i) | 175 | for (int i = 0; i < _characters.Count; ++i) |
175 | { | 176 | { |
177 | fps++; | ||
176 | POSCharacter character = _characters[i]; | 178 | POSCharacter character = _characters[i]; |
177 | 179 | ||
178 | float oldposX = character.Position.X; | 180 | float oldposX = character.Position.X; |
@@ -286,6 +288,7 @@ namespace OpenSim.Region.Physics.POSPlugin | |||
286 | character._velocity.Z = (character.Position.Z - oldposZ) / timeStep; | 288 | character._velocity.Z = (character.Position.Z - oldposZ) / timeStep; |
287 | } | 289 | } |
288 | } | 290 | } |
291 | return fps; | ||
289 | } | 292 | } |
290 | 293 | ||
291 | public override void GetResults() | 294 | public override void GetResults() |