Performance comparisons on device.

Test 1

Map Size: 15 tiles by 10 tiles; pixel size of 480x320 (no tiles off-screen).

FPS: 17 - 21 (with random drops).

Test 2

Map Size: 30 tiles by 20 tiles; pixel size of 960 x 640 (3/4 of map off screen).

FPS: 2 - 7.

* These tests were done on what I’d consider average iOS hardware (iPhone 3GS 32GB).

What this has shown is that there is obviously an issue with display objects being off-screen (still consuming large amounts of memory); as Graham originally suspected. In regards to when there are no objects off-screen; performance is still pretty low for a differing reason. [import]uid: 13089 topic_id: 5066 reply_id: 305066[/import]

Following up on my last post, there are currently 4 layers on the map. The background layer generally fills every tile (grass, floor, e.t.c), there’s then two collision layers, which has a certain amount of tiles which can be collided with (boundary detection). The rest of the tiles on these two layers are filled with a transparent tile (otherwise Lime yells at me).

The foreground layer has differing amounts of tiles, but in this test, had none.

No physics were used in this test, no music/sound was playing. There was an additional layer which contained the player sprite (spritesheet, animated). [import]uid: 13089 topic_id: 5066 reply_id: 16621[/import]

one thing i noticed (only on the simulator and not using Lime) is that you need to allow the map to render fully before starting to interact with it, otherwise the framerate drops and doesn’t always recover. (don’t know why)

try putting in a delay after displaying the map before adding in any animation/interaction etc and see if that makes any difference?

again, not tested on a device or Lime, just something i noticed in performance tests eg here http://developer.anscamobile.com/forum/2010/12/11/another-scrolling-performance-test

j

[import]uid: 6645 topic_id: 5066 reply_id: 16652[/import]

I have tested on:

  1. iTouch (not sure which generation)
  2. HTC Evo Froyo 2.2 Stock ROM
  3. iPhone 3G

Here is the result on xCode simulator vs Corona simulator (the devices’ performance are the same as on xCode’s simulator)

http://screencast.com/t/2OzMHFfqCj [import]uid: 11334 topic_id: 5066 reply_id: 16870[/import]

Newbie,

For the record, that game looks great! Reminds me of the old Theme games :). [import]uid: 13089 topic_id: 5066 reply_id: 16889[/import]

That’s exactly what I was thinking :slight_smile:

I have passed this thread and jmp909’s other performance tests along to Carlos who also has sent a bunch of test maps and Lime to the engineering team to see what they think of it all. [import]uid: 5833 topic_id: 5066 reply_id: 16910[/import]

Gam looks amazing! Can’t wait to see how it turns out. Thanks for sharing. [import]uid: 11904 topic_id: 5066 reply_id: 16933[/import]

thanks all for the kind words, I have a very very talented artist with me :stuck_out_tongue: (a very big asset)
It’s a musically themed tower defense :slight_smile: [import]uid: 11334 topic_id: 5066 reply_id: 16955[/import]