- 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.
推薦閱讀
- Learning Scala Programming
- R語言數(shù)據(jù)分析從入門到精通
- 程序設(shè)計與實踐(VB.NET)
- 劍指JVM:虛擬機(jī)實踐與性能調(diào)優(yōu)
- Interactive Data Visualization with Python
- PHP基礎(chǔ)案例教程
- Spring Boot企業(yè)級項目開發(fā)實戰(zhàn)
- 時空數(shù)據(jù)建模及其應(yīng)用
- 從零學(xué)Java設(shè)計模式
- Web前端開發(fā)技術(shù):HTML、CSS、JavaScript
- SEO教程:搜索引擎優(yōu)化入門與進(jìn)階(第3版)
- UML基礎(chǔ)與Rose建模實用教程(第三版)
- Android高級開發(fā)實戰(zhàn):UI、NDK與安全
- C語言程序設(shè)計與應(yīng)用實驗指導(dǎo)書(第2版)
- Learning D3.js 5 Mapping(Second Edition)