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?
Drastic Frame Drop After Adding Meshes
Re: Drastic Frame Drop After Adding Meshes
I had similar experience when exporting material file with obj meshes,
try delete them and see if framerate gets better.
try delete them and see if framerate gets better.
Re: Drastic Frame Drop After Adding Meshes
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
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Drastic Frame Drop After Adding Meshes
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
Are there any tutorials that cover this by any chance?Mel wrote:Store the meshes in the graphics card. 28 meshes fed each time to the graphics card is an important bottleneck.
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Drastic Frame Drop After Adding Meshes
Hmm, not sure, but you simply have to call node->setHardwareMappingHint(EHM_STATIC)