Does display.newImage() still cache the image if used later?

I would like a final comment on the latest Corona SDK and Game Edition about display.newImage().

If I do:

bob = display.newImage(“bob.png”)

And later do

sam = display.newImage(“bob.png”)

Is sam going to read bob.png again from the filesystem, and cause a slight lag in performance? Or will Corona use the previously called bob.png to load sam faster?

This is, of course, in the case that bob has not had :removeSelf() called on it, as in, it still exists.

Thanks!
[import]uid: 8541 topic_id: 2711 reply_id: 302711[/import]

To my knowledge, as long as one instance from this image is alive your app will use the cached file and is not reading from the device when you create a new object. [import]uid: 5712 topic_id: 2711 reply_id: 8057[/import]