are images loaded once or multiple times?

Good morning!

I am currently “simulating” “image tiling” by creating multiple image elements and positioning them properly - it’s a bit tedious, but it works.

However, now the question arised, how often the basic tile image gets loaded? Its used multiple times, but does every single image element load the underlying image again?

The same question arises, when the same image is used with multiple transformation (rotation, scale) settings in separate image elements.

Thanks in advance for any answer!

Andreas Rozek [import]uid: 4331 topic_id: 454 reply_id: 300454[/import]

Hi, Andreas. An image asset is only loaded once by Corona, even if you re-use it in different contexts. This is important, because the iPhone has a limited texture buffer, and you can run out of that long before you run out of available RAM. [import]uid: 3007 topic_id: 454 reply_id: 893[/import]

Great!

Thanks for this information - as you mentioned, that behaviour is *important*!

Kind regards,

Andreas Rozek [import]uid: 4331 topic_id: 454 reply_id: 912[/import]