Hello Epic and Friends!
Today I am going to be starting a post all about cooking content with the UE4 Project Launcher, what I have learned (if anything) and what is to be learned from my current mishap. It should be noted that I am packaging a Server and WindowsNoEditor version.
There is a whole mess of options available to us inside the Project Launcher, as well as in Unreal Frontend. However, not all of their functions are terribly clear and a few combinations of options don’t really work, the most important thing to remember is that we should not always have to cook every single thing in our projects. In recent history I had my project cook time down to approximately 1 minute. This is huge as it allows for super fast iteration and testing on blueprints as well as c++ code.
Just to make this clear, as this is important. My team’s entire project was finishing its cook command and testing successfully at 1 minute iterations. The content folder of this project is currently about 16 GB in size and…
The cook time was down to one minute.
The attached image shows the options I had selected to achieve this. If you think about it, they totally make sense as to why they cook out so fast and allow for fast iteration. At the time I had this working I was testing some client login/disconnect code and it worked wonderfullyl.
I don’t cook maps that I have already cooked, because they haven’t changed. This makes sense and should provide a huge speed increase to cook iterations.
Next, I opt to only cook changed content, which means all of those Static Meshes, Textures, Materials, and un-edited Blueprints don’t waste any of my time. Only what I change needs cooking.
These are some simple options that I feel are on top of the reasons why cooking goes so slow for most people. I am hoping if anyone else has any tips or tricks on how to improve this process they will throw in some comments here.
Now we get to my confusion about the state of my cooker: Cooking everything, my cook results in around a 30 minute cook time. I follow up with a cook of un-edited Blueprints and remove all the maps from the maps to cook list… and the time increases to around 40 minutes… What could be causing this atrocity? Someone from Epic, or someone knowledgable, please help me get back the good old days of 1 minute iterations!