Summary

We've covered a humungous amount of theory and language concepts in this chapter, which have hopefully shed some light on how the internals of the Unity Engine and C# language work. These tools try their best to spare us from the burden of complex memory management, but there is still a whole host of concerns we need to keep in mind as we develop our game. Between the compilation processes, multiple memory domains, the complexities of Value types versus Reference types, passing by value versus passing by reference, boxing, object pooling, and various quirks within the Unity API, we have a lot of things to worry about. But, with enough practice, we will learn to overcome them without needing to keep referring to giant tomes such as this! ...

Get Unity 5 Game Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.