Softbody performance issue

qtsohg
Posts: 14
Joined: Fri Oct 24, 2008 3:32 pm

Softbody performance issue

Post by qtsohg »

Hi all,

I am using a softbody cloth (using CreatePatch) and seem to have performance issues.

We use defines for all our units. For example we have:

Code: Select all

#define meters			*100.0f

#define	Yards			*(SDFRAC(0.9144) meters)
#define	yards			*(SDFRAC(0.9144) meters)
#define	miles			*(SDFRAC(1760) Yards)
#define	feet			*(SDFRAC(0.3048) meters)
#define	inches			*(SDFRAC(0.0254) meters)
#define	mm				meters/SDFRAC(1000)
#define	cm				meters/SDFRAC(100)
#define km				meters*SDFRAC(1000)

Now I need to create a cloth object that is 7 by 3 meters. When I pass these dimensions to the CreatePatch method it correctly creates my object.

The only problem is that this creates major performance issues.

Any ideas? I have tried to work the physics on a smaller scale, i.e. 1 meter is simply 1 for BT, but this prevents me from using mm etc...

Any help or ideas would be welcome!

Thanks
Pierre