Book Image

Corona SDK Mobile Game Development: Beginner's Guide

By : Michelle M Fernandez
Book Image

Corona SDK Mobile Game Development: Beginner's Guide

By: Michelle M Fernandez

Overview of this book

Table of Contents (19 chapters)
Corona SDK Mobile Game Development Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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...