# Reduce packaging/cooking time for Mac and Linux?

**URL:** <https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686>\
**Category:** Platform & Builds\
**Tags:** Cooking, Linux, MAC, unreal-engine, packaging-projects, question\
**Created:** [October 18, 2015, 8:48am UTC](https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686 "2015-10-18T08:48:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![piinecone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@piinecone](https://forums.unrealengine.com/u/piinecone)\
**Post date:** [October 18, 2015, 8:48am UTC](https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686/1 "2015-10-18T08:48:18Z")

</div>

Engine source build at SHA 5fd5754.

I was able to cook/package for Win64 in about 30 minutes (I develop in a Win64 environment). Packaging from the same machine for Linux took ~15 hours. Packaging for Mac has been going for 10 hours already.

Is it possible to reduce the content cook time for Linux and Mac? I can see that certain textures and levels take 1-2 hours; is it known why this happens? Is there any way to use the cooked content for a Windows build in the Linux or Mac builds?

I’m currently packaging through the editor on Windows and the command line on Mac. Happy to provide an archive of my project if you need a repro case.

UPDATE: I killed the in-editor Mac packaging process and ran it from the command line and it took about 15 minutes.

---

<div class="post-metadata">

**Author:** ![Cypher2012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cypher2012](https://forums.unrealengine.com/u/Cypher2012)\
**Post date:** [December 14, 2015, 2:32pm UTC](https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686/2 "2015-12-14T14:32:50Z")

</div>

Did you hear anything back about this? I’m having the same issue!

---

<div class="post-metadata">

**Author:** ![piinecone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@piinecone](https://forums.unrealengine.com/u/piinecone)\
**Post date:** [December 14, 2015, 5:13pm UTC](https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686/3 "2015-12-14T17:13:49Z")

</div>

For whatever reason, packaging from the command line takes a reasonable amount of time, so that’s how I do it now. Happy to share the win/linux/osx commands if you want them.

I didn’t look into what was happening with the editor so my knowledge of the packaging process is still very shallow, so I don’t even have a good guess as to why this happens.

---

<div class="post-metadata">

**Author:** ![Cypher2012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cypher2012](https://forums.unrealengine.com/u/Cypher2012)\
**Post date:** [December 14, 2015, 7:46pm UTC](https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686/4 "2015-12-14T19:46:50Z")

</div>

and just like that, Linux distribution compiled and packed in less than an hour!

Thank you sir!! 😃

I was thinking it had something to do with my CPU as it runs at 100% when compiling, so being free of having the actual editor open at the same time I guess helps a lot and stops the computer choking!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a776ed18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a776ed18](https://forums.unrealengine.com/u/anonymous_user_a776ed18)\
**Post date:** [January 5, 2016, 2:03pm UTC](https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686/5 "2016-01-05T14:03:40Z")

</div>

If it’s possible, please, share the win/linux/osx commands, which you have used.

---

<div class="post-metadata">

**Author:** ![Cypher2012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cypher2012](https://forums.unrealengine.com/u/Cypher2012)\
**Post date:** [January 6, 2016, 12:52am UTC](https://forums.unrealengine.com/t/reduce-packaging-cooking-time-for-mac-and-linux/335686/6 "2016-01-06T00:52:53Z")

</div>

I can’t remember exactly, but I think I literally just used the very first command found on this page:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

(Change the bold!)

So:  
RunUAT BuildCookRun -project=“ **full\_project\_path\_and\_project\_name.uproject** ” -noP4 -platform=Win64 -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archivedirectory=“ **Output Directory** ”

I ran this from cmd. You first must get cmd to the correct directory first where the cook tool is located. I used absolute paths for project and archive path.

I was pleasantly surprised how it ‘just worked’ 🙂

I think being able to compile without my weak CPU having to struggle with having UE4 open at the same time must of helped a lot.
