Which is faster and more efficient? (Flip or import)
Posted on 2005-05-13
I am developing a 2D game at the moment (Street Fighter! :-) ).
I have a "game sprite", which I have manually cropped into over 100 frames (but for the sake of this question, we'll just round it to 100).
The thing is: All of these frames are facing to the right (whereas I need both right *and* left). Now, my question is: Which one of the following 2 options would be quickest?:
(1) Read in 100 images, and then flip each image (and assign the flipped versions to a new Image instance); or
(2) Read in 200 images (as I would have flipped all of the images previously).