简体   繁体   English

Unity Android平台iOS切换非常慢

[英]Unity Android platform iOS switching is very slow

I have a project in unity which is switched on android platform. 我有一个统一的项目,在android平台上已切换。 After making some changes in android i have to often convert my project into iOS for iOS build. 在android中进行了一些更改后,我不得不经常将项目转换为iOS版本的iOS。 But the conversion process takes so much time.it takes More than one and half hour with a dozens of try again button clicks . 但是转换过程要花费很多时间。点击数十次“重试”按钮需要花费一个半小时以上的时间。 During conversion I came to know that my CPU utilized 100% and the PVRTExTool .exe taking 99% CPU usage. 在转换过程中,我知道我的CPU使用了100%, PVRTExTool .exe占用了99%的CPU使用率。

What I am missing, is this usual time of conversion? 我所缺少的是,这通常是转换时间吗? My project mostly consist of panorama textures and the conversion time is so long. 我的项目主要由全景纹理组成,转换时间很长。 How can make it fast? 如何使其快速? and what will be the impact if i fast it somehow? 如果我以某种方式禁食会产生什么影响?

You can have both project versions on your PC at once. 您可以一次在PC上同时拥有两个项目版本。 So you can duplicate your project folder, convert it to iOS and leave another folder for Android. 因此,您可以复制项目文件夹,将其转换为iOS,并为Android保留另一个文件夹。

But you will need to synchronize changes between projects using some version control tools. 但是您将需要使用某些版本控制工具来同步项目之间的更改。

I'm using GIT for example. 例如,我正在使用GIT。 Just make sure you have .gitignore for your project, to exclude Library, Temp, Obj, Build folders. 只需确保您的项目具有.gitignore,即可排除Library,Temp,Obj,Build文件夹。 Probably somewhere in internet there is example .gitignore file. 可能在互联网上的某个地方有示例.gitignore文件。

Workflow would be: 工作流程为:

You work on iOS project, make some changes. 您在iOS项目上工作,请进行一些更改。 Commit/Push changes to repository (could be local). 提交/推送对存储库的更改(可以是本地的)。 ANd with your Android project version you just pull changes. 与您的Android项目版本一起,您只需进行更改即可。

If you haven't used git before, better read some instructions and make backup of your project. 如果您以前没有使用过git,最好阅读一些说明并备份您的项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM