Does anyone know of ways to speed up PVR compression when doing iOS builds on a Mac? It’s incredibly slow for our game - 4-5 hours on a maxed out Mac Pro, 13-15 hours on a MacBook Pro. We’ve got our PVR texture compression already set to 0-Fastest.
Looking at the Engine code, it looks like the work for this all gets farmed out to PVRTexTool. While the build is happening, there’s almost no system resources being used except on one logical core. We haven’t even gotten into final texturing or materials yet and we’re already having to leave it overnight to build.
Any thoughts or ways to speed this up would be greatly welcome.
Thanks!
So, with some feedback from an Epic engineer and some experimentation on our part, we’ve managed to greatly speed up our build times. It sounds like an official fix for this will be coming in a future version of Unreal, but if you’re having problems with long iOS build times using UE4 Mac, here’s a tip that can help (tested only on 4.6.1, but should work on older versions as well)
After you launch an iOS build, open Terminal.app and type [FONT=Courier New]ps -ax | grep UE4. This will give you a list of all the processes that are part of UE4, including the main editor, the compiler (if you have C++) and the second headless instance of the editor used to build the iOS app.
If you [FONT=Courier New]renice all of these processes to [FONT=Courier New]-20, and then bring the headless instance of UE4 to the foreground (the close/zoom/minimize buttons in the editor should be gray if the headless instance is in the foreground). Once you do this, your build will go MUCH faster. Our full build for has gone from 5+ hours on a maxed out Mac Pro to a half hour or less. Incremental builds are often 5-10 minutes using this approach.