Unity Cache Server了解和常见问题

Unity Cache Server通过资源的GUID和Hash加速导入步骤,但不处理资产依赖。在切换平台时,它会根据新Hash从服务器下载或导入资源。使用Cache Server时,避免修改已存在材质,以防导入结果不一致。资源后处理和依赖处理需谨慎,以确保与Cache Server良好配合。
摘要由CSDN通过智能技术生成

Cache Server做什么

The cache server accelerates the import step. It does not touch source data. The cache server is independent of version control. It is even independent of your current project.

Instead of actually importing an asset Unity will re-use an imported asset another team member or yourself has previously imported and uploaded to the cache server. The Cache Server is completely automatic and happens as part of the import pipeline. How much benefit you get from the cache server depends on the type of assets. Textures and large model files usually take the most time to import thus the speed up will be greatest there. Anything from 2x-100x can be expected!

The first thing Unity does when it is about to import an asset is to generate an MD5 hash of all source data.

For a texture this consists of:

  • The source asset: “myTexture.psd” file.
  • The meta file: “myTexture.psd.meta” (stores all importer settings).
  • The internal version number of the texture importer.
  • A hash of all version numbers of all Asset Postprocessors.

Anything that can affect the resulting imported data will be hashed. The Cache Server is a very simple file server that looks up assets by the GUID & Hash of that asset. On the cache server you might have many cached files for the same texture. The cache s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值