Your argument "only bums spend <$500 on a computer" is incredibly flawed and malignant
That's not an argument, it's just a statement. If you disagree that's fine, I was not really being serious when I said that. I would not have feelings either way. If you're going to take it literally though, a bum doesn't really buy a computer now does he? The amount of $500 is obviously something which a bum does not have as disposable cash. How could you take this seriously?
You have just been testing on the wrong computer to notice this.
Well it's not the
wrong computer. It's a computer with slightly better than average specs. There are people out there who consider my computer below average. Though this is not the first computer I've tested this on. When I made the projectiles system, I was using my MacBook Pro from 2006. I did not notice a few array look-ups being any more problematic on either computer.
Then the user can use vectors for their own operations, but you don't have to make your system use them internally because arrays add a lot of weight. You have just been testing on the wrong computer to notice this.
Yea that's true they could do their own vector operations and pass real variables to the function/method. I just like the interface of using 2 vectors instead of 6 real variables. If you look at the system, there really isn't any use of the vector library other than the type itself; I included it because I liked the idea of correlating projectiles and vectors.
What I should do is have projectile settings where more complicated projectile patterns are used, rather than simply the standard speed/arc. It makes more sense to do this kind of thing with a physics system though. I suppose as a simple projectiles library there isn't really any need to delve into vectors whatsoever.
Perhaps I will try removing the vector requirement and replacing the vectors with an onslaught of real members. If you insist that doing a
FirstOfGroup
loop is faster, perhaps I will also give that a shot and see if it aids projectile/unit collision at all. If not then I would rather utilize the creation of the extra threads as a surefire way of preventing operation limits (being hit).
Haha you have got me confused about these threads now, Projectile Utilities and Custom Projectiles.