Introduction.

This document was created with the goal of being used as a reference when you havetrouble with performance tuning of Unity applications.

Performance tuning is an area where past know-how can be utilized, and I feel that it is an area that tends to be highly individualized.Those with no experience in this field may have the impression that it is somewhat difficult.One of the reasons may be that the causes of performance degradation vary widely.

However, the workflow of performance tuning can be molded.By following that flow, it becomes easy to identify the cause of the problem and simply look for a solution that fits the event.Knowledge and experience can help in the search for a solution.Therefore, this document is designed to help you learn mainly about "workflow" and "knowledge from experience".

Although it was intended to be an internal document, we hope that many people will take the time to look at it and brush up on it.We hope that it will be of some help to those who have read it.

About this document

This manual is intended for smartphone applications.Please note that some of the explanations may not be applicable to other platforms.The version of Unity used in this document is Unity 2020.3.24f1 unless otherwise noted.

Organization of this Manual

This manual is divided into three parts.Chapter 2 covers the basics of tuning up to , Chapter 3 covers how to use various measurement tools, and Chapter 4 and beyond cover various tuning practices.The chapters are independent of each other, so you can read only what is necessary for your level.The following is an overview of each chapter.

Chapter 1 "Getting Started with Performance Tuning" describes the performance tuning workflow.First, we will discuss the preparation before starting the process, and then we will explain how to isolate the cause of the problem and proceed with the investigation.The goal is to get you ready to start performance tuning by reading this chapter.

Chapter 2 "Fundamentals" explains the basics you should know about hardware, drawing flow, Unity mechanisms, etc.performance tuning.As you read Chapter 2 and beyond, you may want to read back when you feel your knowledge is lacking.

At Chapter 3 "Profiling Tools", you will learn how to use the various tools used for cause investigation.It is recommended to use it as a reference when using measurement tools for the first time.

The "Tuning Practice" section from Chapter 4 onward is packed with a variety of practices, from assets to scripts.Many of the contents described here can be used immediately in the field, so we encourage you to read through them.

GitHub

The repository for this book, *1, is open to the public. Additions and corrections will be made as needed.You can also point out corrections or suggest additions using PR or Issue.Please use it if you like.

Disclaimer

The information in this document is provided for informational purposes only.Therefore, any development, production, or operation using this document must be done at your own risk and discretion.We assume no responsibility whatsoever for the results of development, production, or operation based on this information.