InteractiveMind
asked on
Which is faster and more efficient? (Flip or import)
Hi,
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).
Cheers.
Rob.
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).
Cheers.
Rob.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)
ASKER
Thank you :-)