[Opal-commits] opal/src Simulator.cpp,1.65,1.66
Status: Inactive
Brought to you by:
tylerstreeter
|
From: tylerstreeter <tyl...@us...> - 2005-07-19 17:53:43
|
Update of /cvsroot/opal/opal/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1099/src Modified Files: Simulator.cpp Log Message: Performance improvement, especially for simulations with a lot of sleeping Solids. (In Simulator::simulate(), we were previously copying an updated transform matrix for each dynamic Solid every time step. Now we only perform this operation for dynamic, awake Solids.) Index: Simulator.cpp =================================================================== RCS file: /cvsroot/opal/opal/src/Simulator.cpp,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** Simulator.cpp 16 May 2005 18:07:29 -0000 1.65 --- Simulator.cpp 19 Jul 2005 17:53:30 -0000 1.66 *************** *** 150,155 **** Solid* solid = *solidIter; ! // Get each Solid's new transform from the physics engine. ! solid->internal_updateOPALTransform(); // Update the sleeping value from the physics engine. This --- 150,159 ---- Solid* solid = *solidIter; ! // Get each dynamic, awake Solid's new transform from the ! // physics engine. ! if (!solid->isStatic() && !solid->isSleeping()) ! { ! solid->internal_updateOPALTransform(); ! } // Update the sleeping value from the physics engine. This |