Drastic Frame Drop After Adding Meshes

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
UraniumSlug
Posts: 8
Joined: Fri May 11, 2012 7:59 pm

Drastic Frame Drop After Adding Meshes

Post by UraniumSlug »

I seem to have run into another strange difficulty. I'm getting a drastic frame drop after adding 28 models of around 800 vertices each. This and a simple player tick which moves my player mesh side to side are the only things happening in the scene. All models are .obj format exported using MeshLab. Frame rate drops to 1.

I personally don't see why this would happen. Has any experienced something similar?
krom
Posts: 17
Joined: Sun May 17, 2009 5:27 pm

Re: Drastic Frame Drop After Adding Meshes

Post by krom »

I had similar experience when exporting material file with obj meshes,
try delete them and see if framerate gets better.
CuteAlien
Admin
Posts: 9927
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Drastic Frame Drop After Adding Meshes

Post by CuteAlien »

Not enough information - you have a model which we don't see/have using code which we don't see/have, I'm not exactly sure how we're supposed to help with that. Post the code + model so we can reproduce it, then we can start figuring out what's going wrong.

Or maybe you have no hardware acceleration? If you are on Linux call: glxinfo | grep direct
That should result in: direct rendering: Yes
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Drastic Frame Drop After Adding Meshes

Post by Mel »

Store the meshes in the graphics card. 28 meshes fed each time to the graphics card is an important bottleneck.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
UraniumSlug
Posts: 8
Joined: Fri May 11, 2012 7:59 pm

Re: Drastic Frame Drop After Adding Meshes

Post by UraniumSlug »

Mel wrote:Store the meshes in the graphics card. 28 meshes fed each time to the graphics card is an important bottleneck.
Are there any tutorials that cover this by any chance?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Drastic Frame Drop After Adding Meshes

Post by hybrid »

Hmm, not sure, but you simply have to call node->setHardwareMappingHint(EHM_STATIC)
Post Reply