Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualwarnexus

Posted 31 March 2013 - 01:47 PM

Put lasers and ships to separate list. No need for checking type of object at inner loop. Can lasers collide with other lasers? If not then you are checking way too many units against each other.

True. I should put the lasers and ship separately. Definitely would clean up some unnecessary object searching in the list as well as eliminating the instance checks. Lasers won't be collide with other lasers. Thanks for the heads-up.


#1warnexus

Posted 31 March 2013 - 01:47 PM

Put lasers and ships to separate list. No need for checking type of object at inner loop. Can lasers collide with other lasers? If not then you are checking way too many units against each other.

True. I should put the lasers and ship separately. Definitely would clean up some unnecessary object searching in the list as well as eliminating the instance checks. Lasers won't be collide with other lasers. 


PARTNERS