Every one should write code that performs well. Do you use loops in your code? This is a simple trick everyone could apply to his loops.
Posts tagged with optimalisation
While working on a game, I created a function spawner. The idea was to make a function which would call a function like createEnemy() a hundred times with an interval. So I quickly created a static function. Read the full post to see that the setTimeout function should be handled with care.