- 57
- 0
- 约6.84千字
- 约 7页
- 2016-08-15 发布于安徽
- 举报
unity3D技术之PerformanceOptimization性能优化.docx
1. Use Static Typing使用静态类型When using JavaScript the most important optimization is to use static typing instead of dynamic typing. Unity uses a technique called type inference to automatically convert JavaScript constructs to statically typed code without you having to do any work.使用JavaScript很重要的优化是使用静态类型替代动态类型。Unity使用一种叫做类型推理的技术来自动转换JavaScript为静态类型而无需你做任何工作。【/狗刨学习网】C# JavaScript var foo = 5;In the above example foo will automatically be inferred to be an integer value. Thus Unity can apply a lot of compile time optimizations, without costly dynamic name variable lookups etc. This is one of t
原创力文档

文档评论(0)