aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
diff options
context:
space:
mode:
authorRobert Adams2013-01-01 17:25:41 -0800
committerRobert Adams2013-01-01 17:27:34 -0800
commitaa236b2020a16c464a854be2b02ca49ea637cb27 (patch)
treedfa2173e0ac4f1b66a88352557c3846e9d02eae9 /OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
parentBulletSim: move selection of the unmanaged Bullet DLL from BSPlugin (diff)
downloadopensim-SC-aa236b2020a16c464a854be2b02ca49ea637cb27.zip
opensim-SC-aa236b2020a16c464a854be2b02ca49ea637cb27.tar.gz
opensim-SC-aa236b2020a16c464a854be2b02ca49ea637cb27.tar.bz2
opensim-SC-aa236b2020a16c464a854be2b02ca49ea637cb27.tar.xz
BulletSim: add parameter to have Bullet output performance statistics
every so many frames. Default to off.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSScene.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
index 3340cda..7017194 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
@@ -161,6 +161,7 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
161 private int m_physicsLoggingFileMinutes; 161 private int m_physicsLoggingFileMinutes;
162 private bool m_physicsLoggingDoFlush; 162 private bool m_physicsLoggingDoFlush;
163 private bool m_physicsPhysicalDumpEnabled; 163 private bool m_physicsPhysicalDumpEnabled;
164 public float PhysicsMetricDumpFrames { get; set; }
164 // 'true' of the vehicle code is to log lots of details 165 // 'true' of the vehicle code is to log lots of details
165 public bool VehicleLoggingEnabled { get; private set; } 166 public bool VehicleLoggingEnabled { get; private set; }
166 public bool VehiclePhysicalLoggingEnabled { get; private set; } 167 public bool VehiclePhysicalLoggingEnabled { get; private set; }
@@ -526,6 +527,9 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
526 collidersCount = 0; 527 collidersCount = 0;
527 } 528 }
528 529
530 if ((m_simulationStep % PhysicsMetricDumpFrames) == 0)
531 PE.DumpPhysicsStatistics(World);
532
529 // Get a value for 'now' so all the collision and update routines don't have to get their own. 533 // Get a value for 'now' so all the collision and update routines don't have to get their own.
530 SimulationNowTime = Util.EnvironmentTickCount(); 534 SimulationNowTime = Util.EnvironmentTickCount();
531 535