nice post torbenratzlaff, my game is 98% complete and implementing your code, although excellent, would cause too much of a restructure.
However, you did get me to think about this idea of reusing things - and because I’m mostly using text, I ran a test to generate text and use display.save ONLY the first time a character (letter or punctuation mark) is used. The result is a 99% savings in rendering. So thanks again. I will try your code out for my next game, though.
Interestingly, when there are only 36 or so images to load into thousands of objects, performance is lightning fast as Corona appears to cache the images. And therefore, flattening the entire board with thousands of objects made from these 36 or so images results in flattening a 10 screen high board in about a second. Once I have the final working in my game for sure, I’ll post the end result here for the benefit of others.
But credit goes to you for brainstorming a solution with me for this.