Reader small image

You're reading from  Corona SDK Mobile Game Development: Beginner's Guide

Product typeBook
Published inMar 2015
Publisher
ISBN-139781783559343
Edition1st Edition
Tools
Right arrow
Author (1)
Michelle M Fernandez
Michelle M Fernandez
Right arrow

Optimize your display images


It's important to optimize your image file size as much as you can. Using full-screen images can impact the performance of your application. They require more time to load on a device and consume a lot of texture memory. When a lot of memory is consumed in an application, in most cases it'll be forced to quit.

The iOS devices vary in the size of their available memory, depending on which one you have out of the following:

  • iPhone 3GS, iPad, and iTouch 3G/4G of 256 MB RAM

  • iPhone 4/4S, iPad 2, iPad Mini, and iTouch 5G of 512 MB RAM

  • iPhone 5/5S/6, 6 Plus, iPad 3G, and iPad 4G of 1 GB RAM

For example, texture memory on the iPhone 3GS should be kept under 25 MB before performance issues start occurring by slowing down your app or even forcing it to quit. An iPad 2 would have no problem going farther down that boundary since it has more memory available.

Note

Refer to http://docs.coronalabs.com/api/event/memoryWarning/index.html to apply memory warnings for iOS devices.

For...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Corona SDK Mobile Game Development: Beginner's Guide
Published in: Mar 2015Publisher: ISBN-13: 9781783559343

Author (1)