Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

are images loaded once or multiple times?
Started by Rozek Feb 05 2010 02:37 PM

- - - - -
2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Rozek

[GLOBAL: userInfoPane.html]
Rozek
  • Contributor

  • 124 posts
  • Guests

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
uid: 4331 topic_id: 454 reply_id: 300454


[TOPIC: post.html]
#2

evank

[GLOBAL: userInfoPane.html]
evank
  • Contributor

  • 317 posts
  • Alumni

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.
uid: 3007 topic_id: 454 reply_id: 893


[TOPIC: post.html]
#3

Rozek

[GLOBAL: userInfoPane.html]
Rozek
  • Contributor

  • 124 posts
  • Guests

Great!

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

Kind regards,

Andreas Rozek
uid: 4331 topic_id: 454 reply_id: 912



[topic_controls]
[/topic_controls]