- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 199字
- 2021-07-02 23:21:06
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.
We will discuss the nuances and advanced topics of the C# language, .NET library, and Mono Framework in Chapter 8, Masterful Memory Management.
In this chapter, we will explore ways of applying performance enhancements to the following areas:
- Accessing Components
- Component callbacks (Update(), Awake(), and so on)
- Coroutines
- GameObject and Transform usage
- Interobject communication
- Mathematical calculations
- Deserialization such as 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 is occurring, and one or more solutions to combat the issue.
- 微信公眾平臺與小程序開發:從零搭建整套系統
- Beginning C++ Game Programming
- Android開發精要
- Vue.js前端開發基礎與項目實戰
- HoloLens Beginner's Guide
- Vue.js快跑:構建觸手可及的高性能Web應用
- Web交互界面設計與制作(微課版)
- Offer來了:Java面試核心知識點精講(原理篇)
- 青少年學Python(第1冊)
- Swift語言實戰精講
- MongoDB,Express,Angular,and Node.js Fundamentals
- Node.js:來一打 C++ 擴展
- Service Mesh實戰:基于Linkerd和Kubernetes的微服務實踐
- Web性能實戰
- GitHub入門與實踐