Generic Battle System - early version available

Miscellaneous Forums/Blitz Showcase/Generic Battle System - early version available

I think I can speed up the targeting in a few other ways...but I have designed the game to run on my old system..a 500 Mhz AMD K-6. Perchance my algorithm should be changed for selecting the targets. Currently each unit that does not have a target will iterate through all enemy units (over the course of a few frames) in order to find any targets within range. If I increase the number of targets cycled through per frame then the game really slows down. I would be more than happy to find out about a better targeting algorithm. However because of the way that multiplayer works (recently uploaded a patch which fixes a problem when playing against someone with a slow internet connection - MAV occurred due to one PC going ahead with something before it was ready..) it is essential that each player's simulation runs exactly the same on both PCs which I manage by writing the code in such a way that the same path is taken through the code on both PCs...and therefore if I were to adjust the "targets per frame" variable based on game frame rates then the simulations would differ.

If you can let me know a better way I would be interested to hear.