O'Reilly logo

Learn Unity 4 for iOS Game Development by Philip Chu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter     16

Optimization

Consistent with Donald Knuth’s much-ballyhooed quote that “premature optimization is the root of all evil,” I’ve left the topic of optimization until nearly the end of this book. In this chapter we'll optimize our bowling app and go over the precursors to that process, establishing the target performance and measuring the current performance. The project for this chapter on http://learnunity4.com/ contains the optimized scripts and optimization helper scripts developed in this chapter.

Choose Your Target

There’s a saying, “Fast, good, or cheap. Pick two.” That’s generally the case with optimization. Among quality, space, and speed, you can often at best achieve two of the three, at the expense of the third.

Frame ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required