在Unity 3D中shader是何时编译的?Unity 项目中咋快速解压ZIP文件到移动手机

时间:2018-02-01 09:20:02   浏览:次   点击:次   作者:   来源:   立即下载

是某①对象在实例化时,加载其相关的material与shader还是游戏开始时?

你在编辑器里,每次修改、保存的时候就会自动编译(unity是监视Asset文件改动的)

移动平台的话,感觉是载入场景的时候,按需编译、加载的,不过不是⑩分确定

Unity - Scripting API: 这个文档里有①些说明:Usually graphics drivers do not actually prepare shaders until they are first needed. However when some object is first rendered with a previously unused shader, there can be a hiccup because the driver is compiling/optimizing the shader. This can be quite noticeable, especially on mobile platforms.

手机的IO很慢的...当然CPU也没法和PC比,不过这个已经是次要因素了

Lzma

收起

相关推荐

相关应用

平均评分 0人
  • 5星
  • 4星
  • 3星
  • 2星
  • 1星
用户评分:
发表评论

评论

  • 暂无评论信息