Unity export slow and cloud computing

Unity is sometimes very slow when exporting project projects, and sometimes it is very slow (seven or eight hours or more), especially for URP pipeline projects, which spend a lot of time on shader processing, although for game optimization It is very important, but sometimes it is really time-consuming, and the system resources are fully occupied during the process, and other work cannot be done at all.

Generally, URP will take several hours when building the project for the first time, but it will usually be within tens of minutes afterwards, because Unity will use the previous cache to accelerate and only reprocess the changed parts. If the time is still too long after that, there is probably a problem in all likelihood. .

One of the workarounds falls into two cases:

  • Very long export time (more than 5 hours): Generally speaking, this situation may be a problem with the project file. Try to delete or re-import the materials and packages that may cause the problem; The file is deleted, in other words, a new project is regenerated, only the Asset file is kept, and Unity will recompile and maybe repair it.
    If you still can’t solve the problem, the most direct way is to go back to the furnace and rebuild, create a new project, copy the original project files and scenes to the new project step by step, and build regularly to check the time. This method can find problems on the one hand On the other hand, it can also rearrange the project thinking and inspiration. Although it is still time-consuming and troublesome, who told it to go wrong.
  • Long export time (tens of minutes or even more): Unity BuiltIn pipelines generally export very fast, the main slow ones are URP and HDRP pipelines. At this time, it is very troublesome to build projects on your own computer. Being squeezed dry, I can't do anything else but wait.
    At this time, on the one hand, you can try the official solution ​​​​​​Official
    - Shader Stripping Improvements in URP - Unity Forum On the other hand, you can try Unity cloud computing power, use other people's computers to suffer, continue to work by yourself, or do it yourself For other things, you can directly download and run them after the cloud runs, and you can understand the specific steps by yourself.
  • Build in the cloud for higher quality | Unity Cloud Buildhttps://unity.com/products/cloud-build

There may be a fee for cloud construction, but students and organizations generally have the opportunity to subscribe for free or directly, so partners who have the conditions, why not go for free? It supports the construction of multiple platforms, and can directly read the cloud files of GitHub and other platform projects, which is convenient for version control. Isn't it a joy? Moreover, cloud computers generally have strong computing power, so the speed is often faster.
 

Guess you like

Origin blog.csdn.net/weixin_46146935/article/details/125609229