Chapter     16


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

Get Learn Unity 4 for iOS Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.