
Unity Game Optimization - Third Edition
Subscription
Free Trial for 7 days
$12.99/m after trial
eBook + Subscription
$12.99
eBook
$22.99
Print + eBook
$32.99
What do you get with a Packt Subscription?
What do you get with a Packt Subscription?
What do you get with eBook + Subscription?
What do you get with a Packt Subscription?
What do you get with eBook?
What do I get with Print?
What do you get with video?
What do you get with Audiobook?
Subscription
Free Trial for 7 days
$12.99/m after trial
eBook + Subscription
$12.99
eBook
$22.99
Print + eBook
$32.99
What do you get with a Packt Subscription?
What do you get with a Packt Subscription?
What do you get with eBook + Subscription?
What do you get with a Packt Subscription?
What do you get with eBook?
What do I get with Print?
What do you get with video?
What do you get with Audiobook?
-
Free ChapterSection 1: Base Scripting Optimization
-
Evaluating Performance Problems
-
Scripting Strategies
- Scripting Strategies
- Obtaining components using the fastest method
- Removing empty callback definitions
- Caching component references
- Sharing calculation output
- Update, coroutines, and InvokeRepeating
- Faster GameObject null reference checks
- Avoid retrieving string properties from GameObjects
- Using appropriate data structures
- Avoiding re-parenting transforms at runtime
- Considering caching transform changes
- Avoiding Find() and SendMessage() at runtime
- Disabling unused scripts and objects
- Using distance-squared over distance
- Minimizing deserialization behavior
- Loading scenes additively and asynchronously
- Creating a custom Update() layer
- Summary
-
Section 2: Graphical Optimizations
-
The Benefits of Batching
-
Optimizing Your Art Assets
-
Faster Physics
-
Dynamic Graphics
-
Section 3: Advance Optimizations
-
Optimizations for Virtual and Augmented Reality
-
Masterful Memory Management
-
The Data-Oriented Technology Stack
-
Tactical Tips and Tricks
-
Other Books You May Enjoy
About this book
Unity engine comes with a great set of features to help you build high-performance games. This Unity book is your guide to optimizing various aspects of your game development, from game characters and scripts, right through to animations.
You’ll explore techniques for writing better game scripts and learn how to optimize a game using Unity technologies such as ECS and the Burst compiler. The book will also help you manage third-party tooling used with the Unity ecosystem. You’ll also focus on the problems in the performance of large games and virtual reality (VR) projects in Unity, gaining insights into detecting performance issues and performing root cause analysis. As you progress, you’ll discover best practices for your Unity C# script code and get to grips with usage patterns. Later, you’ll be able to optimize audio resources and texture files, along with effectively storing and using resource files. You’ll then delve into the Rendering Pipeline and learn how to identify performance problems in the pipeline. In addition to this, you’ll learn how to optimize the memory and processing unit of Unity. Finally, you’ll cover tips and tricks used by Unity professionals to improve the project workflow.
By the end of this book, you’ll have developed the skills you need to build interactive games using Unity and its components.
- Publication date:
- November 2019
- Publisher
- Packt
- Pages
- 404
- ISBN
- 9781838556518