Game Development Community

Collision callback and performance

by Gavin Beard · in Torque Game Builder · 02/26/2009 (9:13 am) · 2 replies

Hi all,

If i have a behaviour attached to a larger number of objects (looking possible 80 to 100 + objects) with Collision callbacks being used on each, is this likely to create a BIG performance drop in the application, if so what would be a better way other than having each behaviour managing its own callback?

thanks

#1
02/27/2009 (12:20 pm)
I have similar situation to yours where I use collision behavior on many objects. at first I used class with collision callback and I believe it was a bit faster but I can't tell you for a fact. right now I'm considering going back to class and get rid of the behavior.
#2
02/27/2009 (12:38 pm)
After several tests, i notice a slight slow down in the game, but very slight FPS drop, i'm sure the performance drop seen so far shouldnt have massive overall effect but i shall keep you posted