Hopefully this is an easy question, but I was curious to see which scenario is better for performance. The objects are sprites.
In scenario 1, I have 60 sprite objects, with 80 animation frames each, and each sprite object is used once and then the animation frame is set.
In scenario 2, I have 1 sprite, 80 frames, but the same object is used 60 times. Each animation frame is set per sprite instance.
I'm thinking that they draw the same either way, right? Meaning, it's still 60 objects being drawn. I just wasn't sure if it's more efficient to draw 1 object 60 times and set the animation frame, or have 60 objects drawn once and then the frame is set. I think the only performance benefit here is maybe not having to increase the file size for the 59 other sprites.
Just curious to see what others think.
Thanks!!