createCollisionResponseAnimator kills framerate

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
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

createCollisionResponseAnimator kills framerate

Post by pera »

createCollisionResponseAnimator kills my framerate, I add all static models on my level (their triangle selectors) to this animator and my FrameRate drops from 200fps to 30fps.
should I use simplified models for this collision detection and make them invisible in the scene? is that how this is done?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: createCollisionResponseAnimator kills framerate

Post by hybrid »

Most people use a physics library to speed up things. The triangle selectors are not developed for heavy use. Also depends on the types of selectors you use, and the actual geometry of course.
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Re: createCollisionResponseAnimator kills framerate

Post by pera »

thanks!
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: createCollisionResponseAnimator kills framerate

Post by Mel »

Use simplified meshes for level collision, and use octree triangle selectors to optimize the access to the level geometry. Normally that gives enough boost for a relatively decent amount of level-player collision detection (for quake III levels is enough). If you want more complex feedbacks, like ballistics, or intense object-object interactions, a physics lib is your best friend.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Post Reply