From ee3ca06b204ee64649e2935e6a96bb4eaea0d05f Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Thu, 17 Aug 2006 09:41:56 +0000 Subject: [PATCH] added additional quickprof timer for rendering --- Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp index 826c35e22..271963ee1 100644 --- a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp +++ b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp @@ -731,8 +731,15 @@ void clientMoveAndDisplay() physicsEnvironmentPtr->proceedDeltaTime(0.f,deltaTime); - renderme(); +#ifdef USE_QUICKPROF + Profiler::beginBlock("render"); +#endif //USE_QUICKPROF + + renderme(); +#ifdef USE_QUICKPROF + Profiler::endBlock("render"); +#endif glFlush(); glutSwapBuffers();