diff options
author | Robert Adams | 2013-01-01 17:25:41 -0800 |
---|---|---|
committer | Robert Adams | 2013-01-01 17:27:34 -0800 |
commit | aa236b2020a16c464a854be2b02ca49ea637cb27 (patch) | |
tree | dfa2173e0ac4f1b66a88352557c3846e9d02eae9 /OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |
parent | BulletSim: move selection of the unmanaged Bullet DLL from BSPlugin (diff) | |
download | opensim-SC_OLD-aa236b2020a16c464a854be2b02ca49ea637cb27.zip opensim-SC_OLD-aa236b2020a16c464a854be2b02ca49ea637cb27.tar.gz opensim-SC_OLD-aa236b2020a16c464a854be2b02ca49ea637cb27.tar.bz2 opensim-SC_OLD-aa236b2020a16c464a854be2b02ca49ea637cb27.tar.xz |
BulletSim: add parameter to have Bullet output performance statistics
every so many frames. Default to off.
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs index 339722e..69ac8cd 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |||
@@ -492,11 +492,11 @@ public static class BSParam | |||
492 | (s) => { return LinkConstraintSolverIterations; }, | 492 | (s) => { return LinkConstraintSolverIterations; }, |
493 | (s,p,l,v) => { LinkConstraintSolverIterations = v; } ), | 493 | (s,p,l,v) => { LinkConstraintSolverIterations = v; } ), |
494 | 494 | ||
495 | new ParameterDefn("LogPhysicsStatisticsFrames", "Frames between outputting detailed phys stats. (0 is off)", | 495 | new ParameterDefn("PhysicsMetricFrames", "Frames between outputting detailed phys metrics. (0 is off)", |
496 | 0f, | 496 | 0f, |
497 | (s,cf,p,v) => { s.UnmanagedParams[0].physicsLoggingFrames = cf.GetInt(p, (int)v); }, | 497 | (s,cf,p,v) => { s.PhysicsMetricDumpFrames = cf.GetFloat(p, (int)v); }, |
498 | (s) => { return (float)s.UnmanagedParams[0].physicsLoggingFrames; }, | 498 | (s) => { return (float)s.PhysicsMetricDumpFrames; }, |
499 | (s,p,l,v) => { s.UnmanagedParams[0].physicsLoggingFrames = (int)v; } ), | 499 | (s,p,l,v) => { s.PhysicsMetricDumpFrames = (int)v; } ), |
500 | }; | 500 | }; |
501 | 501 | ||
502 | // Convert a boolean to our numeric true and false values | 502 | // Convert a boolean to our numeric true and false values |