- 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 Wearable Programming
- Docker and Kubernetes for Java Developers
- GeoServer Cookbook
- 自己動手實現Lua:虛擬機、編譯器和標準庫
- Python網絡爬蟲從入門到實踐(第2版)
- ASP.NET動態網頁設計教程(第三版)
- 小程序,巧運營:微信小程序運營招式大全
- 你不知道的JavaScript(中卷)
- 零基礎學單片機C語言程序設計
- 自制編程語言
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- LabVIEW虛擬儀器入門與測控應用100例
- 信息學奧林匹克競賽初賽精講精練