aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-05-31 01:52:26 +0100
committerJustin Clark-Casey (justincc)2012-05-31 01:52:26 +0100
commit0b02a4d42e989609a4e1ba39d2aee9a7f9655613 (patch)
tree353e05997fb8478cb6b3691edc943604e5dd78ff /bin
parentAdd console command "teleport user" to allow teleport from the region console (diff)
downloadopensim-SC_OLD-0b02a4d42e989609a4e1ba39d2aee9a7f9655613.zip
opensim-SC_OLD-0b02a4d42e989609a4e1ba39d2aee9a7f9655613.tar.gz
opensim-SC_OLD-0b02a4d42e989609a4e1ba39d2aee9a7f9655613.tar.bz2
opensim-SC_OLD-0b02a4d42e989609a4e1ba39d2aee9a7f9655613.tar.xz
Add an optional mechanism for physics modules to collect and return arbitrary stats.
If active, the physics module can return arbitrary stat counters that can be seen via the MonitoringModule (http://opensimulator.org/wiki/Monitoring_Module) This is only active in OdeScene if collect_stats = true in [ODEPhysicsSettings]. This patch allows OdeScene to collect elapsed time information for calls to the ODE native collision methods to assess what proportion of time this takes compared to total physics processing. This data is returned as ODENativeCollisionFrameMS in the monitoring module, updated every 3 seconds. The performance effect of collecting stats is probably extremely minor, dwarfed by the rest of the physics code.
Diffstat (limited to 'bin')
-rw-r--r--bin/OpenSimDefaults.ini30
1 files changed, 19 insertions, 11 deletions
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini
index 5da3ba2..27d86e8 100644
--- a/bin/OpenSimDefaults.ini
+++ b/bin/OpenSimDefaults.ini
@@ -675,6 +675,25 @@
675 675
676 676
677[ODEPhysicsSettings] 677[ODEPhysicsSettings]
678 ; ##
679 ; ## Physics stats settings
680 ;
681
682 ; If collect_stats is enabled, then extra stat information is collected which is accessible via the MonitorModule
683 ; (see http://opensimulator.org/wiki/Monitoring_Module for more details).
684 collect_stats = false
685
686 ; ##
687 ; ## Physics logging settings - logfiles are saved to *.DIF files
688 ; ##
689
690 ; default is false
691 ;physics_logging = true
692 ;; every n simulation iterations, the physics snapshot file is updated
693 ;physics_logging_interval = 50
694 ;; append to existing physics logfile, or overwrite existing logfiles?
695 ;physics_logging_append_existing_logfile = true
696
678 ;## 697 ;##
679 ;## World Settings 698 ;## World Settings
680 ;## 699 ;##
@@ -824,17 +843,6 @@
824 mesh_physical_lod = 16 843 mesh_physical_lod = 16
825 844
826 ; ## 845 ; ##
827 ; ## Physics logging settings - logfiles are saved to *.DIF files
828 ; ##
829
830 ; default is false
831 ;physics_logging = true
832 ;; every n simulation iterations, the physics snapshot file is updated
833 ;physics_logging_interval = 50
834 ;; append to existing physics logfile, or overwrite existing logfiles?
835 ;physics_logging_append_existing_logfile = true
836
837 ; ##
838 ; ## Joint support 846 ; ## Joint support
839 ; ## 847 ; ##
840 848