Move b3Quickprof.* from Bullet 3.x src folder to btgui/Timing
The Bullet 3.x B3_PROFILE can be customized using b3SetCustomEnterProfileZoneFunc/b3SetCustomLeaveProfileZoneFunc defined in Bullet3Common/b3Logging, so you can hook Bullet 3.x up to your profiler of choice. The Demos3/BasicGpuDemo will show the Bullet 3.x timings inside the Bullet 2.x btQuickprof profiler.
This commit is contained in:
@@ -182,6 +182,10 @@ BasicGpuDemo::~BasicGpuDemo()
|
||||
|
||||
void BasicGpuDemo::initPhysics()
|
||||
{
|
||||
//use the Bullet 2.x btQuickprof for profiling of Bullet 3.x
|
||||
b3SetCustomEnterProfileZoneFunc(CProfileManager::Start_Profile);
|
||||
b3SetCustomLeaveProfileZoneFunc(CProfileManager::Stop_Profile);
|
||||
|
||||
setTexturing(true);
|
||||
setShadows(false);//too slow with many objects
|
||||
|
||||
|
||||
Reference in New Issue
Block a user