Example:i make 30 alien for a shoot-em-up....is better that every alien calculate the route when is onscreen or is better that every alien read the data stored in array when onscreen??
(It's simplier to make my code work on the fly rather than pre calculate everything....).
(It's simplier to make my code work on the fly rather than pre calculate everything....).
The maths ability of modern cpu are much faster then reading pre stored data in memory. I promise you that the delay in your program is not caused by this aspect.