Performance - single texture of a circle, or display.newCircle?

I am looking for some input and thoughts from those who know. In my current prototype, I am going to need a large number of objects, and I can use either a single texture of a circle, instantiated multiple times, which will reuse the image bits (good) or I can use the built in vector object display.newCircle.

Which is going to be better in terms of performance? Is the fact that display.newCircle is a vector object going to outweigh the reused image bits of the texture?

Alternatively, instead of writing a huge reply, if someone could point me to a method in the API that would allow me to display info about the app, that would work to, and I could figure it all out on my own. I would like to see the number of draw calls on the device, as well as the vram used. That should give me enough info to make an informed decision.

Mike Hovland
Blue Rocket Labs [import]uid: 5317 topic_id: 7590 reply_id: 307590[/import]

From my experience go with textures without any hesitation. If you have several sizes go with spritesheets specifically. This will result in a single (1) draw call for all the objects that use textures from the same spritesheet.

To get an estimation of Texture Memory and Lua Memory search for the “FPS module” in the code exchange section.

You may also be interested in this:
http://developer.anscamobile.com/forum/2010/06/08/my-app-crashing-device-only-not-simulator#comment-3057

Draw calls info is not accessible from within the Corona framework.

[import]uid: 7356 topic_id: 7590 reply_id: 26919[/import]

Thanks for that Magenda.

I found the FPS module, and it is giving me the info I need.

Thanks for the thread, I’m glad I got that info before I ran into the same issue.

Mike Hovland
Blue Rocket Labs [import]uid: 5317 topic_id: 7590 reply_id: 26946[/import]

The second link points to the steps for having xcode Profiler to work with Corona. You can use the tools provided for profiling your app beyond leaks, in your situation to measure cpu performance etc. [import]uid: 7356 topic_id: 7590 reply_id: 26947[/import]

Yeah, I was more interested in the problem of not removing listeners correctly causing leaks…

[import]uid: 5317 topic_id: 7590 reply_id: 26965[/import]