- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 208字
- 2021-06-24 12:13:02
Scripting Strategies
Since scripting will consume a great deal of our development time, it will be enormously beneficial to learn some best practices. Scripting is a very broad term, so we will try to limit our exposure in this chapter to situations that are very Unity-specific, focusing on problems surrounding MonoBehaviours, GameObjects, and related functionality.
In this chapter, we will explore ways of applying performance enhancements for the following:
- Obtaining components in other game objects
- Optimizing component callbacks (Update(), Awake(), and so on)
- Using coroutines
- Using GameObject and Transform efficiently
- Exchanging messages between different objects
- Optimizing mathematical calculations
- Serializing/deserializing during scene and Prefab loading
Whether you have some specific problems in mind that you wish to solve or you just want to learn some techniques for future reference, this chapter will introduce you to a wide array of methods that you can use to improve your scripting efforts now and in the future. In each case, we will explore how and why the performance issue arises, an example situation in which the problem occurs, and one or more solutions to combat the issue.
- Android應(yīng)用程序開發(fā)與典型案例
- MATLAB圖像處理超級學(xué)習(xí)手冊
- Learning C++ Functional Programming
- Python程序設(shè)計(第3版)
- Vue.js快跑:構(gòu)建觸手可及的高性能Web應(yīng)用
- Architecting the Industrial Internet
- Implementing Cisco Networking Solutions
- jQuery Mobile移動應(yīng)用開發(fā)實戰(zhàn)(第3版)
- INSTANT Sinatra Starter
- OpenCV 4計算機視覺項目實戰(zhàn)(原書第2版)
- Spring Boot+MVC實戰(zhàn)指南
- Scala Functional Programming Patterns
- Python 3 Object:oriented Programming(Second Edition)
- Modernizing Legacy Applications in PHP
- HTML5移動Web開發(fā)