码迷,mamicode.com
首页 > 编程语言 > 详细

一些Unity基础操作的性能测试

时间:2016-12-18 12:37:44      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:form   border   bsp   内容   style   com   build   editor   进一步   

是从以前一个文章转移过来的内容,以后会进一步进行测试

 

 

 内容  毫秒数(Editor)  毫秒数(Build PC)
加减内部变量 4ms  1ms
new List<int>() 559ms  479ms
str.IndexOf 103ms  40ms
GetComponent<Component>() 261ms  133ms
GetComponent<Transform>() 257ms  130ms
GetComponents<Component>() 871ms  721ms

                                                             

一些Unity基础操作的性能测试

标签:form   border   bsp   内容   style   com   build   editor   进一步   

原文地址:http://www.cnblogs.com/hont/p/6193895.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!