- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 121字
- 2021-06-24 12:13:07
Disabling unused scripts and objects
Scenes can get pretty busy sometimes, especially when we're building large, open worlds. The more objects there are invoking code in an Update() callback, the worse it will scale and the slower the game becomes. However, much of what is being processed may be completely unnecessary if it is outside of the player's view or simply too far away to matter. This may not be a possibility in large city-building simulation games, where the entire simulation must be processed at all times, but it is often possible in first-person and racing games since the player is wandering around a large expansive area, where non-visible objects can be temporarily disabled without having any noticeable effect on gameplay.
推薦閱讀
- FuelPHP Application Development Blueprints
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- C++程序設計(第3版)
- 算法基礎:打開程序設計之門
- 編寫高質量代碼:改善C程序代碼的125個建議
- Unity 2D Game Development Cookbook
- Arduino可穿戴設備開發
- Oracle實用教程
- Mastering Bootstrap 4
- Mastering ArcGIS Server Development with JavaScript
- 一覽眾山小:ASP.NET Web開發修行實錄
- JavaScript程序設計實例教程(第2版)
- HTML5+jQuery Mobile移動應用開發
- 微信小程序開發圖解案例教程:附精講視頻(第3版)
- C/C++程序設計教程:面向過程分冊