Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Kyreal · Jul 14, 2015 at 10:23 AM · buildlinecommandpvrtc

Command line iOS builds taking ages due to PVRTC

I'm currently using jenkins to build an iOS version of our game and the build times are up to 50 minutes compared to 2 minutes on a dev kit.

I've timestamped the build and a large portion of it is spent on PVRTC. Even if I choose not to clean the workspace it still decides to regenerate the PVRTC stuff.

I'm using the following in my CS editor script:

Code (CSharp): BuildPipeline.BuildPlayer(SCENES, "/Users/build/Builds/Output/GameIPA", BuildTarget.iPhone, BuildOptions.None); ScarletPostProcessor.OnPostProcessBuild(BuildTarget.iPhone, "/Users/build/Builds/Output/GameIPA"); I may be being stupid here but I can't seem to find any build option that allows me to disable PVRTC compression via the Command Line build.

Comment
Add comment · Show 10
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image David-Berger ♦♦ · Jul 15, 2015 at 02:18 PM 0
Share

What do you mean by dev kit? Your local developer machine or a actual iOS devkit?

You can try and disable your textures via a script just to test the configuration if you like. http://forum.unity3d.com/threads/turn-off-pvrtc-compression.31524/

You could check if your Jenkins build uses a CPU/GPU sofware emulation or something comparable to build the PVRTC while your local developer machine which would explain the huge difference.

If you have time you should try out the Free Unity Cloud Build Service! $$anonymous$$aybe that's an option to replace your Jenkins system ;-)

avatar image Kyreal · Jul 16, 2015 at 04:45 PM 0
Share

Thanks $$anonymous$$,

Is there a sensible way to disable the textures in a script rather than in the Unity Editor?

By dev kit I mean just a standard windows or mac box. Nothing special.

We'll definitely look into Unity Cloud build at some point :)

avatar image David-Berger ♦♦ · Jul 17, 2015 at 01:20 PM 0
Share

There should be, you can also just replace all textures with a 1px graphic to see the impact. I guess you use a SC$$anonymous$$ tool to so you can revert it easily anyway.

$$anonymous$$ore than that, I just wonder now as you make a build system if you start Unity freshly every build, you need to switch to iOS platform and reimport all images every-time if you don't store the Library folder. $$anonymous$$aybe cache server would help too in this case. Do you use cache server already?

avatar image Kyreal · Jul 17, 2015 at 03:08 PM 0
Share

As it stands I'm using AssetDatabase.ImportAsset with various different compressions prior to our BuildPipeline.buildplayer line in our editorscript.cs but it doesn't seem to make any difference at all. All the PVRTC stuff still seems to be happening.

We don't use a cache server we just bring down the latest version of the code from perforce and call a buildpipeline.buildplayer on it.

avatar image David-Berger ♦♦ · Jul 17, 2015 at 03:52 PM 0
Share

You could swap temporarily a custom executable for Unity's PVRTC compressor, so it takes only a few milliseconds and doesn't actually compress. Or run a custom script before the build which iterates over all textures and changes the compression mode, comparable to http://wiki.unity3d.com/index.php/TextureImportSettings

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

How can I find the line number in flash build error (simple)? 1 Answer

Command Line Compiler in 3.3.0 0 Answers

iOS vs Android build 6 Answers

Stops waiting with Created GICache directory at command line build. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges