A different slow program

BlitzPlus Forums/BlitzPlus Beginners Area/A different slow program

If I have the possibility of having a lot of bullets onscreen at once, which would be faster:

1. Testing for each bullet type. If a bullet is created, create it. If a bullet is deleted, nuke it. The usual.

2. Do the above, but if there are too many bullets (above a certain limit), create them but call them something else. Like this:

If numberofbullets > bulletlimit

     bullet2.bullet2 = new bullet2

     etc.

Else

     bullet1.bullet1 = new bullet1

Endif

I would suspect that the first would be faster because that way you only have to check each of the bullets once, instead of the bullet1 type and then the bullet2 type.

Please respond, though.