Performance question

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
grantkrieger
Posts: 25
Joined: Fri Jul 27, 2007 10:02 am

Performance question

Post by grantkrieger »

Hello,

I am adding a shelf model like 9000 times in a warehouse witha loop. This model does not move and is just stationary. I am currently using the following to load this model. Is this the most optimized way to load a model that is static and never moves? I am created an animated mesh then added an animated mesh node

AnimatedMesh mesh = smgr.GetMesh(path + "shelfV5.X");
node = smgr.AddAnimatedMeshSceneNode(mesh);

Thanks

Grant
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, currently animatedmesh and mesh are basically handled the same. You can avoid a little overhead by just choosing the first Mesh and add it to a MeshSceneNode via node = smgr.AddMeshSceneNode(mesh.getMesh(0));
Post Reply