0.6 to 0.9-34 speed issues

jchmack

26-09-2007 03:31:56

Ive just finished my new revamped engine. Its has all the same features of my old engine but it seems to run a bit.... slower(when i am creating a lot of actors). The new one is a lot cleaner and more optimized.

my old engine uses:
-> PhysX SDK 2.7.0
-> Hardware None installed or none found.
-> NxOgre NxOgre 0.6 (Compatible: yes)
-> Ogre 1.4.0 'Eihort'

and my new one uses:
NxOgre 0.9-34
PhysX SDK 2.7.2
Ogre 1.4.0 'Eihort'

ive read this thread considering load times:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5325

I'm wondering if NxOgre 0.9-34 loads objects slower than 0.6.

It seems 0.9 loads objects slower but processes them faster than 0.6.

Has anybody else had similar problems when upgrading?

jchmack

26-09-2007 03:35:25

i create my bodies like this:
mBody = mScene->createBody(GraphicMaterial, new SphereShape(0.1f), NxOgre::Pose(InitialPosition+KinematicOffset,InitialDirection), Params);

The same way I did in 0.6

I was thinking you could also create those cubes using the batching functions in Scene, or if you wanted to, you can share shapes between Actors (just make sure you make the shape shared).

How do i do this?

betajaen

26-09-2007 09:19:01

mScene::batchCreateActor
mScene::batchCreateBody

You can only use BT_NOW as a time frame though.