I am interested how can enlarge performance of application
or it`s trouble only with irr-engine?
My programm show me 5 FPS and
PrimitiveCountDrawn(0) return me 232873
But only my terrain use 262144 vertexes
and 26214 pyramid with 5 vertex each.
irrlicht does not assume the optimization rendering?
even 24 thousand primitives and 5 fps is very little
http://rapidshare.com/files/305726142/FPS_DEMO.rar.html
in my demo im use cycle
Code: Select all
IMeshBuffer* mb = terrain->getMesh()->getMeshBuffer(0);
for(int i=0; i<mb->getVertexCount();i+=10)
{
//core::vector3df pos = mb->getNormal(i); //mb->getTCoords(i);
core::vector3df pos = mb->getPosition(i); //mb->getTCoords(i);
pos.X *=5; // terrain was scaled
pos.Y+= 5;
pos.Z *=5;
gameModel* tmp = new Test1(this->device,this->player.node,pos,core::vector3df(0,0,0));
}
printf("VERTEX COUNT: %d\n", mb->getVertexCount());
i load model with GetMesh(MODEL_NAME) and use simple animator
Code: Select all
scene::ISceneNodeAnimator* anim = 0;
core::vector3df end_pos = obj_pos;
end_pos.Y += 200;
anim = smgr->createFlyStraightAnimator(obj_pos,end_pos,1200,true,true);
node->addAnimator(anim);
anim->drop();