I remember reading somewhere that creating another copy of an image that’s already being displayed doesn’t add to the amount of texture memory used.
I’m making a 2D side scroller and my background is made up of five or so interchangeable 320 x 320 images that I randomly select at the start of each level. Each level can be up to 20 background images wide.
Right now, I just create all the background images at the start of each level and draw all but one of them off screen. This works fine, but I still worry about memory use,
Should I instead be creating them just before I need them and then deleting them once they’ve scrolled off the screen? (My game can scroll in both directions)
Thanks
