Added btSoftBodyHelpers::ReoptimizeLinkOrder(btSoftBody* softBody) method, to help improve performance for modern out-of-core CPUs.

It is tested in Aero2 demo (13) of AppSoftBodyDemo. Note that the cloth in Areo2 is not expensive enough to see benefits. Increase segments to see benefits.
Thanks a lot for the contribution.
This commit is contained in:
erwincoumans
2014-04-08 09:45:09 -07:00
parent 84693c2384
commit aa76b88936
4 changed files with 177 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ ENDIF (OPENGL_FOUND)
OPTION(BUILD_OBSOLETE_DEMOS "Set when you want to build the obsolete Bullet 2 demos" OFF)
OPTION(BUILD_OBSOLETE_DEMOS "Set when you want to build the obsolete Bullet 2 demos" ON)
IF(BUILD_OBSOLETE_DEMOS)
IF (USE_GLUT)