- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 120字
- 2021-07-02 23:21:10
Disable unused scripts and objects
Scenes can get pretty busy sometimes, especially when we're building large, open worlds. The more objects invoking code in an Update() callback, the worse things 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.
推薦閱讀
- Instant Apache Stanbol
- Vue.js入門與商城開發實戰
- DevOps入門與實踐
- 從0到1:HTML+CSS快速上手
- 實戰低代碼
- GitLab Repository Management
- HTML5游戲開發案例教程
- 差分進化算法及其高維多目標優化應用
- Yocto for Raspberry Pi
- PhoneGap:Beginner's Guide(Third Edition)
- 青少年學Python(第1冊)
- Swift 4從零到精通iOS開發
- C++ Application Development with Code:Blocks
- 快樂編程:青少年思維訓練
- JavaScript Concurrency