hedgewars/uLand.pas
Thu, 01 Jul 2010 23:41:10 -0400 nemo Revert prior attempted optimisation. Gridding the land pays in some situations, but not all. Restricting to an upper bound might help, but overall, seems too fuzzy to be worth it. On one side is increased cost of Add/Delete + extra test on collision check, on the other is skipping the list iteration. Perhaps for large lists.
Thu, 01 Jul 2010 19:05:29 -0400 nemo Initialise to 0
Thu, 01 Jul 2010 17:00:14 -0400 nemo Grid the landscape, and shortcircuit checks on the collision array if there are no nearby checked in collisions to be collided with. This is a big win for fire's ammoshove in particular. Also add a +2 that seemed missing in the check, and update fire accordingly.
less more (0) -100 -30 -10 -3 tip