How can I get the the time used for collision detection?
-
- Posts: 19
- Joined: Mon Jul 14, 2014 9:05 pm
How can I get the the time used for collision detection?
How can I get the the time used for collision detection? I notice in the stepSimulation() function, there is a "startprofiling()". How can I retrieve the time used for collision detection?
-
- Posts: 5
- Joined: Sun Mar 08, 2015 2:31 pm
Re: How can I get the the time used for collision detection?
If you want to get how much time stepSimulation took you can just use WinAPI functions:
http://stackoverflow.com/questions/1739 ... ncecounter
http://stackoverflow.com/questions/1739 ... ncecounter
-
- Posts: 849
- Joined: Tue Sep 30, 2014 6:03 pm
- Location: San Francisco
Re: How can I get the the time used for collision detection?
After looking at the code it appears that they way to get the profiling information is to call CProfileManager::dumpAll() and it will print to stdout the times spent in the various "scopeName" instances of the BT_PROFILE("scopeName") macros that are sprinkled about in the btDiscreteDynamicsWorld and btCollisionWorld implementations.