Triggers decrement performance in exponencial way?

toglia

17-10-2009 22:53:25

Hi, I'm developing a pinball game as I stated in my last post, and I'm still using version 0.9 cause it has all I need and it has proven to be very stable.

Now, in my game I need to know when the ball pases through certain areas, so I have decided to put some triggers for this. To my surprise I started experiencing a horrible lag with only 20 triggers, and the game is not even finished.

I know it gets way better If I put my 900 convex shapes as static, but I wont be able to move them afterwards right?

PD: I'm using a geforce 9600 GT and the latest nvidia drivers.

betajaen

17-10-2009 22:57:20

Are you getting reports from the pinball table parts? I imagine all those convexes in the triggers would cause a bit of a slow down.

I'm not completely sure, but if you put the triggers in a separate group, then the table parts in another, and make PhysX ignore collisions between those two - they may not be reported.